Class DeviceSigningVerifierCallback
-
- All Implemented Interfaces:
-
java.io.Serializable,org.forgerock.android.auth.callback.Binding,org.forgerock.android.auth.callback.Callback
public class DeviceSigningVerifierCallback extends AbstractCallback implements Binding
Callback to collect the device signing information
-
-
Field Summary
Fields Modifier and Type Field Description private final StringuserIdprivate final Stringchallengeprivate final Stringtitleprivate final Stringsubtitleprivate final Stringdescriptionprivate final Integertimeoutprivate final Function1<DeviceBindingAuthenticationType, DeviceAuthenticator>deviceAuthenticatorIdentifier
-
Constructor Summary
Constructors Constructor Description DeviceSigningVerifierCallback(JSONObject jsonObject, Integer index)DeviceSigningVerifierCallback()
-
Method Summary
Modifier and Type Method Description final StringgetUserId()The optional userId final StringgetChallenge()The challenge received from server final StringgetTitle()The title to be displayed in biometric prompt final StringgetSubtitle()The subtitle to be displayed in biometric prompt final StringgetDescription()The description to be displayed in biometric prompt final IntegergetTimeout()The timeout to be to expire the biometric authentication StringgetType()Return the type of the Callback, the type name should align with the Callback type returned from AM final UnitsetJws(String value)Input the JWS key to the server UnitsetClientError(String clientError)Input the Client Error to the server Unitsign(Context context, Map<String, Object> customClaims, UserKeySelector userKeySelector, Function1<DeviceBindingAuthenticationType, DeviceAuthenticator> deviceAuthenticator)Sign the challenge with bounded device keys. Unitsign(Context context, Map<String, Object> customClaims, UserKeySelector userKeySelector, Function1<DeviceBindingAuthenticationType, DeviceAuthenticator> deviceAuthenticator, FRListener<Void> listener)Sign the challenge with bounded device keys. Unitsign(Context context, Map<String, Object> customClaims, UserKeySelector userKeySelector, FRListener<Void> listener)Sign the challenge with bounded device keys. Unitsign(Context context, Map<String, Object> customClaims, FRListener<Void> listener)Sign the challenge with bounded device keys. Unitsign(Context context, FRListener<Void> listener)Sign the challenge with bounded device keys. -
Methods inherited from class org.forgerock.android.auth.callback.Binding
getDeviceAuthenticator, getDeviceAuthenticatorIdentifier, getDuration, getExpiration, handleException -
Methods inherited from class org.forgerock.android.auth.callback.AbstractCallback
getContent, getInputValue, getInputValue, get_id -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DeviceSigningVerifierCallback
DeviceSigningVerifierCallback(JSONObject jsonObject, Integer index)
-
DeviceSigningVerifierCallback
DeviceSigningVerifierCallback()
-
-
Method Detail
-
getChallenge
final String getChallenge()
The challenge received from server
-
getSubtitle
final String getSubtitle()
The subtitle to be displayed in biometric prompt
-
getDescription
final String getDescription()
The description to be displayed in biometric prompt
-
getTimeout
final Integer getTimeout()
The timeout to be to expire the biometric authentication
-
getType
String getType()
Return the type of the Callback, the type name should align with the Callback type returned from AM
-
setJws
final Unit setJws(String value)
Input the JWS key to the server
- Parameters:
value- The JWS value.
-
setClientError
Unit setClientError(String clientError)
Input the Client Error to the server
-
sign
Unit sign(Context context, Map<String, Object> customClaims, UserKeySelector userKeySelector, Function1<DeviceBindingAuthenticationType, DeviceAuthenticator> deviceAuthenticator)
Sign the challenge with bounded device keys.
- Parameters:
context- The Application ContextcustomClaims- A map of custom claims to be added to the jws payloaduserKeySelector- Collect user key, if not provided DefaultUserKeySelector will be useddeviceAuthenticator- A function to return a DeviceAuthenticator, deviceAuthenticatorIdentifier will be used if not provided
-
sign
@JvmOverloads() Unit sign(Context context, Map<String, Object> customClaims, UserKeySelector userKeySelector, Function1<DeviceBindingAuthenticationType, DeviceAuthenticator> deviceAuthenticator, FRListener<Void> listener)
Sign the challenge with bounded device keys.
- Parameters:
context- The Application ContextcustomClaims- A map of custom claims to be added to the jws payloaduserKeySelector- Collect user key, if not provided DefaultUserKeySelector will be useddeviceAuthenticator- A function to return a DeviceAuthenticator, deviceAuthenticatorIdentifier will be used if not providedlistener- The Listener to listen for the result
-
sign
@JvmOverloads() Unit sign(Context context, Map<String, Object> customClaims, UserKeySelector userKeySelector, FRListener<Void> listener)
Sign the challenge with bounded device keys.
- Parameters:
context- The Application ContextcustomClaims- A map of custom claims to be added to the jws payloaduserKeySelector- Collect user key, if not provided DefaultUserKeySelector will be usedlistener- The Listener to listen for the result
-
sign
@JvmOverloads() Unit sign(Context context, Map<String, Object> customClaims, FRListener<Void> listener)
Sign the challenge with bounded device keys.
- Parameters:
context- The Application ContextcustomClaims- A map of custom claims to be added to the jws payloadlistener- The Listener to listen for the result
-
sign
@JvmOverloads() Unit sign(Context context, FRListener<Void> listener)
Sign the challenge with bounded device keys.
- Parameters:
context- The Application Contextlistener- The Listener to listen for the result
-
-
-
-