Class PasswordEntry

    • Constructor Summary

      Constructors 
      Constructor Description
      PasswordEntry​(java.lang.String userId, byte[] credentials, java.util.Set<java.lang.String> roles)
      Initiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getUserId()
      Obtains the User Id.
      byte[] retrieveCredentials()
      Retrieves the credentials.
      java.util.Set<java.lang.String> retrieveRoles()
      Retrieves the roles.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PasswordEntry

        public PasswordEntry​(java.lang.String userId,
                             byte[] credentials,
                             java.util.Set<java.lang.String> roles)
        Initiate.
        Parameters:
        userId - User Id.
        credentials - Credentials.
        roles - Roles.
    • Method Detail

      • getUserId

        public java.lang.String getUserId()
        Obtains the User Id.
        Returns:
        User Id.
      • retrieveCredentials

        public byte[] retrieveCredentials()
        Description copied from interface: CredentialEntry

        Retrieves the credentials.

        The actual credentials are particular to the authentication scheme:

        1. Basic: clear text password (Charset being US_ASCII)
        2. Digest: encrypted "username:realm:password" as per the algorithm. For example, if the algorithm were MD5 then the following command would produce the appropriate value (Charset being US_ASCII): echo -n "username:realm:password" | md5sum
        3. Negotiate: as necessary for authentication
        Specified by:
        retrieveCredentials in interface CredentialEntry
        Returns:
        Value as per above description.
      • retrieveRoles

        public java.util.Set<java.lang.String> retrieveRoles()
        Description copied from interface: CredentialEntry
        Retrieves the roles.
        Specified by:
        retrieveRoles in interface CredentialEntry
        Returns:
        Set of roles.