Interface Binding
-
- All Implemented Interfaces:
public interface BindingDevice Binding interface to provide utility method for DeviceBindingCallback and DeviceSigningVerifierCallback
-
-
Method Summary
Modifier and Type Method Description DeviceAuthenticatorgetDeviceAuthenticator(DeviceBindingAuthenticationType type)Create the interface for the Authentication type(Biometric, Biometric_Fallback, none) DategetExpiration(Integer timeout)Get Expiration date for the signed token, claim "exp" will be set to the JWS. DurationgetDuration(Integer timeout)Convert timeout in seconds to Duration UnithandleException(Throwable e)Handle all the errors for the device binding. abstract UnitsetClientError(String clientError)Function1<DeviceBindingAuthenticationType, DeviceAuthenticator>getDeviceAuthenticatorIdentifier()-
-
Method Detail
-
getDeviceAuthenticator
DeviceAuthenticator getDeviceAuthenticator(DeviceBindingAuthenticationType type)
Create the interface for the Authentication type(Biometric, Biometric_Fallback, none)
- Parameters:
type- The Device Binding Authentication Type- Returns:
The recommended DeviceAuthenticator that can handle the provided DeviceBindingAuthenticationType
-
getExpiration
Date getExpiration(Integer timeout)
Get Expiration date for the signed token, claim "exp" will be set to the JWS.
- Returns:
The expiration date
-
getDuration
Duration getDuration(Integer timeout)
Convert timeout in seconds to Duration
- Parameters:
timeout- the timeout in seconds
-
handleException
Unit handleException(Throwable e)
Handle all the errors for the device binding.
-
setClientError
abstract Unit setClientError(String clientError)
-
getDeviceAuthenticatorIdentifier
Function1<DeviceBindingAuthenticationType, DeviceAuthenticator> getDeviceAuthenticatorIdentifier()
-
-
-
-