static byte[] |
ScramFunctions.clientKey(ScramMechanism scramMechanism,
byte[] saltedPassword) |
Generates a client key, from the salted password.
|
static byte[] |
ScramFunctions.clientKey(ScramMechanism scramMechanism,
StringPreparation stringPreparation,
String password,
byte[] salt,
int iteration) |
Generates a client key from the password and salt.
|
static byte[] |
ScramFunctions.clientSignature(ScramMechanism scramMechanism,
byte[] storedKey,
String authMessage) |
Computes the SCRAM client signature.
|
static byte[] |
ScramFunctions.hash(ScramMechanism scramMechanism,
byte[] value) |
Computes the hash function of a given value, based on the SCRAM mechanism hash function.
|
static byte[] |
ScramFunctions.hmac(ScramMechanism scramMechanism,
byte[] message,
byte[] key) |
Computes the HMAC of the message and key, using the given SCRAM mechanism.
|
static byte[] |
ScramFunctions.saltedPassword(ScramMechanism scramMechanism,
StringPreparation stringPreparation,
String password,
byte[] salt,
int iteration) |
Compute the salted password, based on the given SCRAM mechanism, the String preparation algorithm,
the provided salt and the number of iterations.
|
static byte[] |
ScramFunctions.serverKey(ScramMechanism scramMechanism,
byte[] saltedPassword) |
Generates a server key, from the salted password.
|
static byte[] |
ScramFunctions.serverKey(ScramMechanism scramMechanism,
StringPreparation stringPreparation,
String password,
byte[] salt,
int iteration) |
Generates a server key from the password and salt.
|
static byte[] |
ScramFunctions.serverSignature(ScramMechanism scramMechanism,
byte[] serverKey,
String authMessage) |
Compute the SCRAM server signature.
|
static byte[] |
ScramFunctions.storedKey(ScramMechanism scramMechanism,
byte[] clientKey) |
Generates a stored key, from the salted password.
|
static boolean |
ScramFunctions.verifyClientProof(ScramMechanism scramMechanism,
byte[] clientProof,
byte[] storedKey,
String authMessage) |
Verifies that a provided client proof is correct.
|
static boolean |
ScramFunctions.verifyServerSignature(ScramMechanism scramMechanism,
byte[] serverKey,
String authMessage,
byte[] serverSignature) |
Verifies that a provided server proof is correct.
|