NoneAuthenticator

A device authenticator implementation that requires no user authentication.

This authenticator provides the most convenient but least secure authentication method. Keys are accessible without any user verification, making it suitable for scenarios where convenience is prioritized over security, such as development environments or applications with minimal security requirements.

The authenticator manages cryptographic keys through the Android KeyStore but does not require biometric authentication, PIN, or any other user verification to access them.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open lateinit override var cryptoKey: CryptoKey

The cryptographic key instance used for key generation and management. This property is injected and manages the underlying Android KeyStore operations.

Link copied to clipboard

The authentication type for this authenticator, which is NONE indicating no user authentication is required to access cryptographic keys.

Functions

Link copied to clipboard
open suspend override fun authenticate(context: Context): Result<Pair<PrivateKey, BiometricPrompt.CryptoObject?>>

Authenticates and retrieves the private key without requiring user verification.

Link copied to clipboard
open suspend override fun deleteKeys()

Deletes all cryptographic keys associated with this authenticator.

Link copied to clipboard
open suspend override fun register(context: Context, attestation: Attestation): Result<KeyPair>

Registers a new key pair for device binding without requiring user authentication.