Interface CredentialEntry

  • All Known Implementing Classes:
    PasswordEntry

    public interface CredentialEntry
    Entry within the CredentialStore.
    Author:
    Daniel Sagenschneider
    • Method Detail

      • retrieveCredentials

        byte[] retrieveCredentials()
                            throws HttpException

        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
        Returns:
        Value as per above description.
        Throws:
        HttpException - If fails to retrieve the credentials.
      • retrieveRoles

        java.util.Set<java.lang.String> retrieveRoles()
                                               throws HttpException
        Retrieves the roles.
        Returns:
        Set of roles.
        Throws:
        HttpException - If fails to retrieve the roles.