{SSHA}<sha-1 digest:20><salt:n>
If the stored password form does not include an iteration count then an iteration count of 1 is used.
If the stored password form does not include salt then no salt is used.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| public static final int | |
| private Charset | |
| private static final Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithm()
Implements abstract org.
|
| protected int | |
| public String | |
| protected Log | |
| public boolean | matches(String
User provided credentials inputCredentials, String Credentials stored in the storedCredentials)RealmImplements org. Checks to see if the input credentials match the stored credentials |
| protected String | mutate(String
User provided credentials inputCredentials, byte[] Salt, if any salt, int Number of iterations of the algorithm associated with this CredentialHandler applied to
the inputCredentials to generate the equivalent stored credentials iterations)Implements abstract org. Generates the equivalent stored credentials for the given input credentials, salt and iterations. |
| public void | setAlgorithm(String
the algorithm algorithm)Implements abstract org. Set the algorithm used to convert input credentials to stored credentials. |
| public void |
| algorithm | back to summary |
|---|---|
| private String algorithm | |
| DEFAULT_ITERATIONS | back to summary |
|---|---|
| public static final int DEFAULT_ITERATIONS | |
| encoding | back to summary |
|---|---|
| private Charset encoding | |
| log | back to summary |
|---|---|
| private static final Log log | |
| MessageDigestCredentialHandler | back to summary |
|---|---|
| public MessageDigestCredentialHandler() | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements abstract org.
| |
| getDefaultIterations | back to summary |
|---|---|
| protected int getDefaultIterations() Implements abstract org.
| |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() | |
| getLog | back to summary |
|---|---|
| protected Log getLog() Implements abstract org.
| |
| matches | back to summary |
|---|---|
| public boolean matches(String inputCredentials, String storedCredentials) Implements org. Doc from org. Checks to see if the input credentials match the stored credentials | |
| mutate | back to summary |
|---|---|
| protected String mutate(String inputCredentials, byte[] salt, int iterations) Implements abstract org. Doc from org. Generates the equivalent stored credentials for the given input credentials, salt and iterations. If the algorithm requires a key length, the default will be used.
| |
| setAlgorithm | back to summary |
|---|---|
| public void setAlgorithm(String algorithm) throws NoSuchAlgorithmException Implements abstract org. Doc from org. Set the algorithm used to convert input credentials to stored credentials.
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encodingName) | |