-
- All Implemented Interfaces:
public interface DeviceAuthenticatorDevice Authenticator Interface
-
-
Method Summary
Modifier and Type Method Description abstract KeyPairgenerateKeys(Context context)generate the public and private KeyPair abstract DeviceBindingStatusauthenticate(Context context)Authenticate the user to access the Unitprompt(Prompt prompt)Set the Authentication Prompt Stringsign(KeyPair keyPair, String kid, String userId, String challenge, Date expiration)sign the challenge sent from the server and generate signed JWT Stringsign(UserKey userKey, PrivateKey privateKey, String challenge, Date expiration)sign the challenge sent from the server and generate signed JWT abstract BooleanisSupported(Context context)check biometric is supported abstract DeviceBindingAuthenticationTypetype()abstract UnitdeleteKeys(Context context)-
-
Method Detail
-
generateKeys
abstract KeyPair generateKeys(Context context)
generate the public and private KeyPair
-
authenticate
abstract DeviceBindingStatus authenticate(Context context)
Authenticate the user to access the
-
sign
String sign(KeyPair keyPair, String kid, String userId, String challenge, Date expiration)
sign the challenge sent from the server and generate signed JWT
- Parameters:
keyPair- Public and private keykid- Generated kid from the PreferenceuserId- userId received from serverchallenge- challenge received from server
-
sign
String sign(UserKey userKey, PrivateKey privateKey, String challenge, Date expiration)
sign the challenge sent from the server and generate signed JWT
- Parameters:
userKey- User Informationchallenge- challenge received from server
-
isSupported
abstract Boolean isSupported(Context context)
check biometric is supported
-
type
abstract DeviceBindingAuthenticationType type()
-
deleteKeys
abstract Unit deleteKeys(Context context)
-
-
-
-