Class AuthenticationResponse

  • All Implemented Interfaces:
    Message, Result

    public class AuthenticationResponse
    extends AbstractResult
    Synthetic response object that encapsulates data used for authentication.
    Author:
    Middleware Services
    • Constructor Detail

      • AuthenticationResponse

        public AuthenticationResponse​(AuthenticationHandlerResponse response,
                                      java.lang.String dn,
                                      LdapEntry entry)
        Creates a new authentication response.
        Parameters:
        response - authentication handler response
        dn - produced by the DN resolver
        entry - of the authenticated user
    • Method Detail

      • getResolvedDn

        public java.lang.String getResolvedDn()
        Returns the DN that was resolved in order to perform authentication.
        Returns:
        resolved dn
      • getLdapEntry

        public LdapEntry getLdapEntry()
        Returns the ldap entry of the authenticated user.
        Returns:
        ldap entry
      • getAccountState

        public AccountState getAccountState()
        Returns the account state associated with the authenticated user.
        Returns:
        account state
      • setAccountState

        public void setAccountState​(AccountState state)
        Sets the account state for the authenticated user.
        Parameters:
        state - for this user
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class AbstractResult
      • hashCode

        public int hashCode()
        Description copied from class: AbstractMessage
        Returns the hash code for this object.
        Specified by:
        hashCode in class AbstractMessage
        Returns:
        hash code