Class Fido2OperationInfo
java.lang.Object
com.thalesgroup.gemalto.fido2.client.Fido2OperationInfo
Holds common information about an ongoing FIDO2 operation that may be needed for UI display.
An instance of this class is provided to various UI callbacks to give context about the current operation, such as the Relying Party and user details.
- Since:
- 2.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionFido2OperationInfo(String rpId, String rpName, String userName, String userDisplayName, Fido2OperationType operationType) Constructs a newFido2OperationInfo. -
Method Summary
Modifier and TypeMethodDescriptionGets the type of the FIDO2 operation (e.g., registration or authentication).getRpId()Gets the Relying Party ID for the current operation.Gets the Relying Party name for the current operation.Gets the user's display name for the current operation.Gets the user name for the current operation.
-
Constructor Details
-
Fido2OperationInfo
public Fido2OperationInfo(String rpId, String rpName, String userName, String userDisplayName, Fido2OperationType operationType) Constructs a newFido2OperationInfo.- Parameters:
rpId- The ID of the Relying Party.rpName- The name of the Relying Party.userName- The name of the user.userDisplayName- The display name of the user.operationType- The type of the FIDO2 operation.- Since:
- 2.1.0
-
-
Method Details
-
getRpId
Gets the Relying Party ID for the current operation.- Returns:
- The Relying Party ID.
- Since:
- 2.1.0
-
getRpName
Gets the Relying Party name for the current operation.Note: This may be empty during an authentication operation.
- Returns:
- The Relying Party name.
- Since:
- 2.1.0
-
getUserName
Gets the user name for the current operation.Note: This may be empty during an authentication operation.
- Returns:
- The user name.
- Since:
- 2.1.0
-
getUserDisplayName
Gets the user's display name for the current operation.Note: This may be empty during an authentication operation.
- Returns:
- The user's display name.
- Since:
- 2.1.0
-
getOperationType
Gets the type of the FIDO2 operation (e.g., registration or authentication).- Returns:
- The
Fido2OperationType. - Since:
- 2.1.0
-