Class 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:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object