CryptoError

public enum CryptoError : FRError
extension CryptoError: CustomNSError

CryptoError represents an error captured or created by FRAuthenticator SDK for any operation related to cryptographic process; such as HMAC, base64 encoding/decoding, and etc

  • Declaration

    Swift

    case invalidParam(String)
  • Declaration

    Swift

    case failToConvertData
  • Declaration

    Swift

    case invalidJWT
  • Declaration

    Swift

    case unsupportedJWTType
  • Unique error code for given error

    Declaration

    Swift

    var code: Int { get }
  • Parses CryptoError value into integer error code

    Declaration

    Swift

    func parseErrorCode() -> Int

    Return Value

    Int value of unique error code

CustomNSError protocols

  • An error domain for CryptoError

    Declaration

    Swift

    public static var errorDomain: String { get }
  • Error codes for each error enum

    Declaration

    Swift

    public var errorCode: Int { get }
  • Error UserInfo

    Declaration

    Swift

    public var errorUserInfo: [String : Any] { get }