Class ApplicationPinDeviceAuthenticator
-
- 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, Attestation attestation)generate the public and private KeyPair with Challenge DeviceBindingStatusauthenticate(Context context)Authenticate the user to access the Unitprompt(Prompt prompt)Set the Authentication Prompt BooleanisSupported(Context context, Attestation attestation)check if supported device binding final UnitsetKey(CryptoKey cryptoKey)final DeviceBindingAuthenticationTypetype()UnitdeleteKeys(Context context)InputStreamgetInputStream(Context context)OutputStreamgetOutputStream(Context context)StringgetKeystoreType()Booleanexist(Context context)Unitdelete(Context context)-
Methods inherited from class org.forgerock.android.auth.devicebind.DeviceAuthenticator
getAlgorithm, getIssueTime, getNotBeforeTime, sign, sign, validateCustomClaims -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ApplicationPinDeviceAuthenticator
ApplicationPinDeviceAuthenticator(PinCollector pinCollector)
-
-
Method Detail
-
generateKeys
KeyPair generateKeys(Context context, Attestation attestation)
generate the public and private KeyPair with Challenge
-
authenticate
DeviceBindingStatus authenticate(Context context)
Authenticate the user to access the
-
isSupported
Boolean isSupported(Context context, Attestation attestation)
check if supported device binding
-
type
final DeviceBindingAuthenticationType type()
-
deleteKeys
Unit deleteKeys(Context context)
-
getInputStream
InputStream getInputStream(Context context)
-
getOutputStream
OutputStream getOutputStream(Context context)
-
getKeystoreType
String getKeystoreType()
-
-
-
-