ApplicationPinDeviceAuthenticator

open class ApplicationPinDeviceAuthenticator : DefaultDeviceAuthenticator, CryptoAware

DeviceAuthenticator adoption for Application Pin authentication

  • PinCollector for collecting the Pin

    Declaration

    Swift

    public var pinCollector: PinCollector
  • Declaration

    Swift

    public init(pinCollector: PinCollector = DefaultPinCollector())
  • Generate public and private key pair

    Declaration

    Swift

    open override func generateKeys() throws -> KeyPair
  • Check if authentication is supported

    Declaration

    Swift

    open override func isSupported() -> Bool
  • Access Control for the authetication type

    Declaration

    Swift

    open override func accessControl() -> SecAccessControl?
  • Declaration

    Swift

    open override func type() -> DeviceBindingAuthenticationType
  • Declaration

    Swift

    open func setKey(cryptoKey: CryptoKey)
  • Declaration

    Swift

    open override func setPrompt(_ prompt: Prompt)
  • Declaration

    Swift

    public override func deleteKeys()
  • Sign the challenge sent from the server and generate signed JWT

    Throws

    DeviceBindingStatus if any error occurs while signing

    Declaration

    Swift

    public override func sign(userKey: UserKey, challenge: String, expiration: Date, customClaims: [String : Any] = [:]) throws -> String

    Parameters

    userKey

    user Information

    challenge

    challenge received from server

    expiration

    experation Date of jws

    customClaims

    A dictionary of custom claims to be added to the jws payload

    Return Value

    compact serialized jws