Class MfaVerificationResultDto

java.lang.Object
de.xima.fc.auth.MfaVerificationResultDto
All Implemented Interfaces:
Serializable

public final class MfaVerificationResultDto extends Object implements Serializable
Model representing the result of a multi-factor authentication (MFA) verification.
Since:
8.4.0
Author:
Norman Lorenz
See Also:
  • Constructor Details

    • MfaVerificationResultDto

      public MfaVerificationResultDto(boolean success, org.pac4j.core.profile.UserProfile pac4jProfile)
      Creates a new MfaVerificationResultDto instance.
      Parameters:
      success - Indicates whether the MFA verification was successful.
      pac4jProfile - Optionally the Pac4j user profile if the verification was successful. This is null for external login services
  • Method Details

    • isSuccess

      public boolean isSuccess()
      Indicates whether the MFA verification was successful.
    • getPac4jProfile

      public org.pac4j.core.profile.UserProfile getPac4jProfile()
      Optionally the Pac4j user profile if the verification was successful. This is null for external login services
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object