public class ScramSession.ServerFirstProcessor
extends java.lang.Object
ScramSession.receiveServerFirstMessage(String).| Modifier and Type | Field and Description |
|---|---|
private ServerFirstMessage |
serverFirstMessage |
| Modifier | Constructor and Description |
|---|---|
private |
ServerFirstProcessor(java.lang.String receivedServerFirstMessage) |
| Modifier and Type | Method and Description |
|---|---|
ScramSession.ClientFinalProcessor |
clientFinalProcessor(byte[] clientKey,
byte[] storedKey)
Generates a
ScramSession.ClientFinalProcessor, that allows to generate the client-final-message and also
receive and parse the server-first-message. |
ScramSession.ClientFinalProcessor |
clientFinalProcessor(java.lang.String password)
Generates a
ScramSession.ClientFinalProcessor, that allows to generate the client-final-message and also
receive and parse the server-first-message. |
int |
getIteration() |
java.lang.String |
getSalt() |
private final ServerFirstMessage serverFirstMessage
private ServerFirstProcessor(java.lang.String receivedServerFirstMessage)
throws ScramParseException
ScramParseExceptionpublic java.lang.String getSalt()
public int getIteration()
public ScramSession.ClientFinalProcessor clientFinalProcessor(java.lang.String password) throws java.lang.IllegalArgumentException
ScramSession.ClientFinalProcessor, that allows to generate the client-final-message and also
receive and parse the server-first-message. It is based on the user's password.password - The user's passwordjava.lang.IllegalArgumentException - If the message is null or emptypublic ScramSession.ClientFinalProcessor clientFinalProcessor(byte[] clientKey, byte[] storedKey) throws java.lang.IllegalArgumentException
ScramSession.ClientFinalProcessor, that allows to generate the client-final-message and also
receive and parse the server-first-message. It is based on the clientKey and storedKey,
which, if available, provide an optimized path versus providing the original user's password.clientKey - The client key, as per the SCRAM algorithm.
It can be generated with:
ScramFunctions.clientKey(ScramMechanism, StringPreparation, String, byte[], int)storedKey - The stored key, as per the SCRAM algorithm.
It can be generated from the client key with:
ScramFunctions.storedKey(ScramMechanism, byte[])java.lang.IllegalArgumentException - If the message is null or empty