public class ScramSession.ClientFinalProcessor
extends java.lang.Object
ScramSession.ServerFirstProcessor.clientFinalProcessor(String)
or ScramSession.ServerFirstProcessor.clientFinalProcessor(byte[], byte[])
.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
authMessage |
private byte[] |
clientKey |
private java.lang.String |
nonce |
private byte[] |
serverKey |
private byte[] |
storedKey |
Modifier | Constructor and Description |
---|---|
private |
ClientFinalProcessor(java.lang.String nonce,
byte[] saltedPassword) |
private |
ClientFinalProcessor(java.lang.String nonce,
byte[] clientKey,
byte[] serverKey) |
private |
ClientFinalProcessor(java.lang.String nonce,
byte[] clientKey,
byte[] storedKey,
byte[] serverKey) |
private |
ClientFinalProcessor(java.lang.String nonce,
java.lang.String password,
java.lang.String salt,
int iteration) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
clientFinalMessage()
Generates the SCRAM representation of the client-final-message.
|
private java.lang.String |
clientFinalMessage(byte[] cbindData)
Generates the SCRAM representation of the client-final-message, including the given channel-binding data.
|
private void |
generateAndCacheAuthMessage(byte[] cbindData) |
void |
receiveServerFinalMessage(java.lang.String serverFinalMessage)
Receive and process the server-final-message.
|
private final java.lang.String nonce
private final byte[] clientKey
private final byte[] storedKey
private final byte[] serverKey
private java.lang.String authMessage
private ClientFinalProcessor(java.lang.String nonce, byte[] clientKey, byte[] storedKey, byte[] serverKey)
private ClientFinalProcessor(java.lang.String nonce, byte[] clientKey, byte[] serverKey)
private ClientFinalProcessor(java.lang.String nonce, byte[] saltedPassword)
private ClientFinalProcessor(java.lang.String nonce, java.lang.String password, java.lang.String salt, int iteration)
private void generateAndCacheAuthMessage(byte[] cbindData)
private java.lang.String clientFinalMessage(byte[] cbindData) throws java.lang.IllegalArgumentException
cbindData
- The bytes of the channel-binding datajava.lang.IllegalArgumentException
- If the channel binding data is nullpublic java.lang.String clientFinalMessage()
public void receiveServerFinalMessage(java.lang.String serverFinalMessage) throws ScramParseException, ScramServerErrorException, ScramInvalidServerSignatureException, java.lang.IllegalArgumentException
serverFinalMessage
- The received server-final-messageScramParseException
- If the message is not a valid server-final-messageScramServerErrorException
- If the server-final-message contained an errorjava.lang.IllegalArgumentException
- If the message is null or emptyScramInvalidServerSignatureException