NoneAuthenticator

public class NoneAuthenticator : DefaultDeviceAuthenticator

An authenticator that does not require any user interaction. This authenticator is used when the authentication type is none.

  • The type of authenticator, which is .none.

    Declaration

    Swift

    public override func type() -> DeviceBindingAuthenticationType
  • register() Asynchronous

    Generates a new key pair without any specific access control.

    Throws

    A CryptoKeyError if key generation fails.

    Declaration

    Swift

    public override func register() async throws -> KeyPair

    Return Value

    A new KeyPair.

  • authenticate(keyTag:) Asynchronous

    Declaration

    Swift

    public override func authenticate(keyTag: String) async -> Result<SecKey, Error>

    Return Value

    A Result containing the SecKey on success, or an Error on failure.

  • Checks if the authenticator is supported. Since this authenticator has no special requirements, it is always supported.

    Declaration

    Swift

    public override func isSupported(attestation: Attestation) -> Bool

    Return Value

    true

  • deleteKeys() Asynchronous

    Deletes all keys associated with this authenticator.

    Declaration

    Swift

    public override func deleteKeys() async throws