Class AuthenticationStatusImpl

    • Constructor Detail

      • AuthenticationStatusImpl

        public AuthenticationStatusImpl​(String principalName,
                                        String authMethod,
                                        String realm,
                                        int status)
        This constructs a new AuthenticationStatus object.
        Parameters:
        The - name of the principal
        The - name of the realm that authenticated the principal
        The - method used for authenticating the principal
        The - status of the authentication
    • Method Detail

      • getStatus

        public int getStatus()
        This method returns the status of the authentication
        Specified by:
        getStatus in interface AuthenticationStatus
        Returns:
        An integer value indicating the status of the authentication
      • getContinuationData

        public byte[] getContinuationData()
        This method returns a byte array of zero length, since there's no continuation data needed for passphrase based authentication.
        Specified by:
        getContinuationData in interface AuthenticationStatus
        Returns:
        A byte array of zero length.
      • getAuthSpecificData

        public byte[] getAuthSpecificData()
        This method returns a byte array of zero length, since there's no auth specific data needed for passphrase based authentication.
        Specified by:
        getAuthSpecificData in interface AuthenticationStatus
        Returns:
        A byte array of zero length.
      • getRealmName

        public String getRealmName()
        This method returns the name of realm where the authentication was performed.
        Returns:
        A java.lang.String representation of the realm.
      • getAuthMethod

        public String getAuthMethod()
        This method returns the "method" used to perform authentication
        Returns:
        A java.lang.String representation of the method used. In passphrase based authentication it returns the string "password".
      • getPrincipalName

        public String getPrincipalName()
        This method returns the string representation of the principal that was authenticated.
        Returns:
        A java.lang.String representation of the Principal.