-
- All Implemented Interfaces:
-
org.forgerock.android.auth.KeyStoreRepository,org.forgerock.android.auth.devicebind.CryptoAware,org.forgerock.android.auth.devicebind.DeviceAuthenticator
public class ApplicationPinDeviceAuthenticator implements CryptoAware, DeviceAuthenticator, KeyStoreRepository
Device Authenticator which use Application PIN to secure device cryptography keys
-
-
Constructor Summary
Constructors Constructor Description ApplicationPinDeviceAuthenticator(PinCollector pinCollector)
-
Method Summary
Modifier and Type Method Description KeyPairgenerateKeys(Context context)generate the public and private KeyPair DeviceBindingStatusauthenticate(Context context)Authenticate the user to access the Unitprompt(Prompt prompt)Set the Authentication Prompt BooleanisSupported(Context context)check biometric is supported final UnitsetKey(CryptoKey cryptoKey)final DeviceBindingAuthenticationTypetype()UnitdeleteKeys(Context context)InputStreamgetInputStream(Context context)OutputStreamgetOutputStream(Context context)StringgetKeystoreType()Booleanexist(Context context)Unitdelete(Context context)-
-
Constructor Detail
-
ApplicationPinDeviceAuthenticator
ApplicationPinDeviceAuthenticator(PinCollector pinCollector)
-
-
Method Detail
-
generateKeys
KeyPair generateKeys(Context context)
generate the public and private KeyPair
-
authenticate
DeviceBindingStatus authenticate(Context context)
Authenticate the user to access the
-
isSupported
Boolean isSupported(Context context)
check biometric is supported
-
type
final DeviceBindingAuthenticationType type()
-
deleteKeys
Unit deleteKeys(Context context)
-
getInputStream
InputStream getInputStream(Context context)
-
getOutputStream
OutputStream getOutputStream(Context context)
-
getKeystoreType
String getKeystoreType()
-
-
-
-