Class AuthnAdapterResponse


  • public class AuthnAdapterResponse
    extends Object
    This class defines a response from an IdP adapter.
    Since:
    6.4
    • Constructor Detail

      • AuthnAdapterResponse

        public AuthnAdapterResponse()
    • Method Detail

      • setAttributeMap

        public void setAttributeMap​(Map<String,​Object> attributeMap)
        Set a map of attributes that uniquely identify the authenticated security context of the user. Attributes should only be set when the authentication status is AuthnAdapterResponse.AUTHN_STATUS.SUCCESS.
        Parameters:
        attributeMap - a map of attributes
      • getAuthnStatus

        public AuthnAdapterResponse.AUTHN_STATUS getAuthnStatus()
        Get the status of an authentication returned from an IdP adapter.
        Returns:
        authentication status
      • getErrorCode

        public int getErrorCode()
        Get error code.
        Returns:
        error code
      • setErrorCode

        public void setErrorCode​(int errorCode)
        Set error code.
        Parameters:
        errorCode -
      • getErrorMessage

        public String getErrorMessage()
        Get an error message. The message may be logged in audit log.
        Returns:
        error message
      • setErrorMessage

        public void setErrorMessage​(String errorMessage)
        Set error message.
        Parameters:
        errorMessage -
      • getUsername

        public String getUsername()
        Get the username that has been authenticated or attempted.
        Returns:
        username
      • setUsername

        public void setUsername​(String username)
        Set username that has been authenticated or attempted.
        Parameters:
        username -