Class Fido2OperationInfo

java.lang.Object
com.thalesgroup.gemalto.fido2.client.Fido2OperationInfo

public class Fido2OperationInfo extends Object
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 Details

    • Fido2OperationInfo

      public Fido2OperationInfo(String rpId, String rpName, String userName, String userDisplayName, Fido2OperationType operationType)
      Constructs a new Fido2OperationInfo.
      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

      public String getRpId()
      Gets the Relying Party ID for the current operation.
      Returns:
      The Relying Party ID.
      Since:
      2.1.0
    • getRpName

      public String 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

      public String 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

      public String 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

      public Fido2OperationType getOperationType()
      Gets the type of the FIDO2 operation (e.g., registration or authentication).
      Returns:
      The Fido2OperationType.
      Since:
      2.1.0