PublicKeyCreator

class PublicKeyCreator : IPublicKeyCreator

Manages public key creation

  • Creates public key

    Declaration

    Swift

    func createPublicKey(modulus: String, exponent: String) -> SecKey?

    Parameters

    modulus

    String value obtained from the jwks url.

    exponent

    String value obtained from the jwks url.

    Return Value

    Public key is returned on success or nil on failure.

  • Undocumented

    Declaration

    Swift

    private func lengthField(of valueField: [UInt8]) -> [UInt8]