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
static func == (Insecure.RSA.PublicKey, Insecure.RSA.PublicKey) -> BoolReturns a Boolean value indicating whether two values are equal.
Initializers
init(backing: _RSA.Signing.PublicKey) throwsCreates anRSA.PublicKeyfrom a SwiftCrypto public key.init(certificatePEM:)Creates anRSA.PublicKeyfrom public certificate PEM file.init(modulus: String, exponent: String) throwsInitializes a new RSA key instance with modulus and exponentinit(pem:)Creates anRSA.PublicKeyfrom public key PEM file.
Instance Properties
var derRepresentation: DataExports the current public key as a DER encoded data.var pemRepresentation: String
Instance Methods
Relationships
Conforms To
RSAKeySwift.EquatableSwift.SendableSwift.SendableMetatype