IPublicKeyCreator

protocol IPublicKeyCreator

Protocol specifies method which should be implemented by object which creates public key.

  • 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.