Class Fido2Request
java.lang.Object
com.thalesgroup.gemalto.fido2.client.Fido2Request
Represents a FIDO2 request received from a Relying Party, such as a registration
or authentication request.
This class is the starting point for processing a FIDO2 operation. An instance is created from a JSON string provided by the FIDO2 server.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()Gets the type of the FIDO2 operation for this request.static Fido2RequesthybridJsonText(String jsonText) Creates a FIDO2 request from a JSON string, with support for hybrid (cross-device) flows enabled.static Fido2RequestCreates a FIDO2 request from a JSON string.abstract voidwipe()Securely wipes any sensitive data held by this request object from memory.
-
Constructor Details
-
Fido2Request
-
-
Method Details
-
hybridJsonText
Creates a FIDO2 request from a JSON string, with support for hybrid (cross-device) flows enabled.This factory method parses the JSON to determine if it's a registration or authentication request and creates the appropriate request object.
- Parameters:
jsonText- The FIDO2 request in JSON format. Must not be null.- Returns:
- A new
Fido2Requestinstance. - Throws:
Fido2Exception- If the JSON is malformed or represents an unsupported request type.IllegalArgumentException- ifjsonTextis null.- Since:
- 1.8.0
-
jsonText
Creates a FIDO2 request from a JSON string.This factory method parses the JSON to determine if it's a registration or authentication request and creates the appropriate request object.
- Parameters:
jsonText- The FIDO2 request in JSON format. Must not be null.- Returns:
- A new
Fido2Requestinstance. - Throws:
Fido2Exception- If the JSON is malformed or represents an unsupported request type.IllegalArgumentException- ifjsonTextis null.- Since:
- 1.0.0
-
getType
Gets the type of the FIDO2 operation for this request.- Returns:
- The
Fido2OperationType(e.g.,REGISTRATIONorAUTHENTICATION). - Since:
- 1.0.0
-
wipe
public abstract void wipe()Securely wipes any sensitive data held by this request object from memory.- Since:
- 1.2.0
-