| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The length (in bits)Returns the length of the key length of the algorithm. |
| public byte[] | Returns: The calculated message digestthe message message)Calculate a message digest, according to the algorithm of the SCRAM mechanism. |
| public String | Returns: The mechanism nameThe name of the mechanism, which must be a value registered under IANA: SASL SCRAM Family Mechanisms |
| public byte[] | Returns: The calculated message hmac instancethe key key, byte[] the message message)Calculate the hmac of a key and a message, according to the algorithm of the SCRAM mechanism. |
| public byte[] | Returns: The salted passwordCompute the salted password |
| public boolean | Returns: True if it supports channel binding, false otherwiseWhether this mechanism supports channel binding |
| algorithmKeyLength | back to summary |
|---|---|
| public int algorithmKeyLength() Returns the length of the key length of the algorithm.
| |
| digest | back to summary |
|---|---|
| public byte[] digest(byte[] message) throws RuntimeException Calculate a message digest, according to the algorithm of the SCRAM mechanism.
| |
| getName | back to summary |
|---|---|
| public String getName() The name of the mechanism, which must be a value registered under IANA: SASL SCRAM Family Mechanisms
| |
| hmac | back to summary |
|---|---|
| public byte[] hmac(byte[] key, byte[] message) throws RuntimeException Calculate the hmac of a key and a message, according to the algorithm of the SCRAM mechanism.
| |
| saltedPassword | back to summary |
|---|---|
| public byte[] saltedPassword(StringPreparation stringPreparation, String password, byte[] salt, int iteration) Compute the salted password
| |
| supportsChannelBinding | back to summary |
|---|---|
| public boolean supportsChannelBinding() Whether this mechanism supports channel binding
| |