EncryptionError

public enum EncryptionError : Error

Exception raised when the encryption fails at any point.

Values

invalidPublicKey Error during PEM public string parsing.

invalidRSAEncryption Error when trying to encrypt with the RSA algorithm.

malformedJson Error when creating JSON strings for the Visa payloads.

invalidAESEncryption Error when trying to encrypt with the AES algorithm. Only used for Visa.

requiredUid Error when the user id is required for encryption. Only used for Visa.

  • Error during PEM public string parsing.

    Declaration

    Swift

    case invalidPublicKey(String)
  • Error when trying to encrypt with the RSA algorithm.

    Declaration

    Swift

    case invalidRSAEncryption(String)
  • Error when creating JSON strings for the Visa payloads.

    Declaration

    Swift

    case malformedJson(String?)
  • Error when trying to encrypt with the AES algorithm. Only used for Visa.

    Declaration

    Swift

    case invalidAESEncryption(String)
  • Error when the UID is required for encryption. Only used for Visa.

    Declaration

    Swift

    case requiredUid(String)
  • Human readable exception message.

    Declaration

    Swift

    public var message: String { get }

    Return Value

    Exception message