Structure
Insecure.RSA.PublicKey
A structure representing a public RSA key.
struct PublicKey
Overview
In JWT, RSA public keys are used to verify JWTs. They consist of a modulus and an exponent.
Topics
Operators
==(_:_:)Returns a Boolean value indicating whether two values are equal.
Initializers
init(backing:)Creates anRSA.PublicKeyfrom a SwiftCrypto public key.init(certificatePEM:)Creates anRSA.PublicKeyfrom public certificate PEM file.init(modulus:exponent:)Initializes a new RSA key instance with modulus and exponentinit(pem:)Creates anRSA.PublicKeyfrom public key PEM file.
Instance Properties
derRepresentationExports the current public key as a DER encoded data.pemRepresentation
Instance Methods
Relationships
Conforms To
RSAKeySwift.EquatableSwift.SendableSwift.SendableMetatype