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
DeviceBindingStatusif any error occurs while signingDeclaration
Swift
public override func sign(userKey: UserKey, challenge: String, expiration: Date, customClaims: [String : Any] = [:]) throws -> StringParameters
userKeyuser Information
challengechallenge received from server
expirationexperation Date of jws
customClaimsA dictionary of custom claims to be added to the jws payload
Return Value
compact serialized jws
View on GitHub