Class AuthIdentificationResult

  • All Implemented Interfaces:
    com.helger.commons.state.ISuccessIndicator

    public class AuthIdentificationResult
    extends Object
    implements com.helger.commons.state.ISuccessIndicator
    This class contains the overall authentication result.
    Author:
    Philip Helger
    • Constructor Detail

      • AuthIdentificationResult

        protected AuthIdentificationResult​(@Nullable
                                           IAuthToken aAuthToken,
                                           @Nullable
                                           ICredentialValidationResult aCredentialValidationFailure)
        Constructor.
        Parameters:
        aAuthToken - The auth token. May not be null in case of success. Must be null in case of failure.
        aCredentialValidationFailure - The validation failure. May not be null in case of failure. Must be null in case of success.
    • Method Detail

      • isSuccess

        public boolean isSuccess()
        Specified by:
        isSuccess in interface com.helger.commons.state.ISuccessIndicator
      • isFailure

        public boolean isFailure()
        Specified by:
        isFailure in interface com.helger.commons.state.ISuccessIndicator
      • getAuthToken

        @Nullable
        public IAuthToken getAuthToken()
        Returns:
        The auth token in case of successful identification or null in case of an error.
      • getCredentialValidationFailure

        @Nullable
        public ICredentialValidationResult getCredentialValidationFailure()
        Returns:
        The credential validation failure or null in case of success.