| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final int | |
| public static final int | |
| private int | |
| private static final Log | |
| private SecretKeyFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithm()
Implements abstract org.
|
| protected int | |
| public int | |
| 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. |
| 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, int Length of the produced digest in bits for implementations where it's applicable keyLength)Overrides org. Generates the equivalent stored credentials for the given input credentials, salt, iterations and key length. |
| public void | setAlgorithm(String
the algorithm algorithm)Implements abstract org. Set the algorithm used to convert input credentials to stored credentials. |
| public void |
| DEFAULT_ALGORITHM | back to summary |
|---|---|
| public static final String DEFAULT_ALGORITHM | |
| DEFAULT_ITERATIONS | back to summary |
|---|---|
| public static final int DEFAULT_ITERATIONS | |
| DEFAULT_KEY_LENGTH | back to summary |
|---|---|
| public static final int DEFAULT_KEY_LENGTH | |
| keyLength | back to summary |
|---|---|
| private int keyLength | |
| log | back to summary |
|---|---|
| private static final Log log | |
| secretKeyFactory | back to summary |
|---|---|
| private SecretKeyFactory secretKeyFactory | |
| SecretKeyCredentialHandler | back to summary |
|---|---|
| public SecretKeyCredentialHandler() throws NoSuchAlgorithmException | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements abstract org.
| |
| getDefaultIterations | back to summary |
|---|---|
| protected int getDefaultIterations() Implements abstract org.
| |
| getKeyLength | back to summary |
|---|---|
| public int getKeyLength() | |
| 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.
| |
| mutate | back to summary |
|---|---|
| protected String mutate(String inputCredentials, byte[] salt, int iterations, int keyLength) Overrides org. Doc from org. Generates the equivalent stored credentials for the given input credentials, salt, iterations and key length. The
default implementation calls ignores the key length and calls
| |
| 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.
| |
| setKeyLength | back to summary |
|---|---|
| public void setKeyLength(int keyLength) | |