CredentialSet

@objc public class CredentialSet : SignedData

CredentialSet holds the data which pertains to an authentication request for the user. The class contains the DER encoded certificate in base64 form.

Additionally, to validate that the user is in posession of the private key, the dataToSign is a base64 encoded string, in the format of {CURRENT_DATE}|{RANDOM_IDENTIFIER}. This allows for the date to be validated and the identifier to be stored to prevent replay attacks. The signedData field provides the means to validate the dataToSign aligns with the public key.

  • The RSA public key that corresponds to certificate in PEM format

    Declaration

    Swift

    public var publicKey: String?;
  • Base64 encoded DER certificate without private key

    Declaration

    Swift

    public var certificate: String?;
  • Possible errors from the process

    Declaration

    Swift

    public var error: String?;