Uses of Enum
com.ongres.scram.common.ScramMechanism
Packages that use ScramMechanism
Package
Description
This module expose the client implementation of Salted Challenge Response
Authentication Mechanism (SCRAM).
This package expose the messages used to implement a client/server of Salted Challenge Response
Authentication Mechanism (SCRAM).
-
Uses of ScramMechanism in com.ongres.scram.client
Fields in com.ongres.scram.client declared as ScramMechanismModifier and TypeFieldDescriptionprivate final ScramMechanism
ClientFinalProcessor.scramMechanism
private final ScramMechanism
ScramClient.scramMechanism
private final ScramMechanism
ServerFirstProcessor.scramMechanism
private ScramMechanism
ScramClient.Builder.selectedScramMechanism
Methods in com.ongres.scram.client that return ScramMechanismModifier and TypeMethodDescriptionScramClient.getScramMechanism()
Returns the scram mechanism negotiated by this SASL client.private ScramMechanism
ScramClient.Builder.mechanismNegotiation()
private static ScramMechanism
ScramClient.Builder.selectMechanism
(Collection<String> scramMechanisms, boolean channelBinding) This method classifies SCRAM mechanisms by two properties: whether they support channel binding; and a priority, which is higher for safer algorithms (like SHA-256 vs SHA-1).Constructors in com.ongres.scram.client with parameters of type ScramMechanismModifierConstructorDescriptionprivate
ClientFinalProcessor
(ScramMechanism scramMechanism, byte[] clientKey, byte[] storedKey, byte[] serverKey, ClientFirstMessage clientFirstMessage, ServerFirstMessage serverFirstMessage) (package private)
ClientFinalProcessor
(ScramMechanism scramMechanism, byte[] clientKey, byte[] serverKey, ClientFirstMessage clientFirstMessage, ServerFirstMessage serverFirstMessage) (package private)
ClientFinalProcessor
(ScramMechanism scramMechanism, byte[] saltedPassword, ClientFirstMessage clientFirstMessage, ServerFirstMessage serverFirstMessage) (package private)
ClientFinalProcessor
(ScramMechanism scramMechanism, StringPreparation stringPreparation, char[] password, byte[] salt, ClientFirstMessage clientFirstMessage, ServerFirstMessage serverFirstMessage) (package private)
ServerFirstProcessor
(ScramMechanism scramMechanism, StringPreparation stringPreparation, String receivedServerFirstMessage, String nonce, ClientFirstMessage clientFirstMessage) -
Uses of ScramMechanism in com.ongres.scram.common
Fields in com.ongres.scram.common with type parameters of type ScramMechanismModifier and TypeFieldDescriptionprivate static final Map
<String, ScramMechanism> ScramMechanism.BY_NAME_MAPPING
Methods in com.ongres.scram.common that return ScramMechanismModifier and TypeMethodDescriptionstatic ScramMechanism
Gets a SCRAM mechanism given its standard IANA name, supported by the Java security provider.static ScramMechanism
Returns the enum constant of this type with the specified name.static ScramMechanism[]
ScramMechanism.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.ongres.scram.common with parameters of type ScramMechanismModifier and TypeMethodDescriptionstatic byte[]
ScramFunctions.clientKey
(ScramMechanism scramMechanism, byte[] saltedPassword) Generates a client key, from the salted password.static byte[]
ScramFunctions.clientSignature
(ScramMechanism scramMechanism, byte[] storedKey, String authMessage) Computes the SCRAM client signature.static byte[]
ScramFunctions.hash
(ScramMechanism scramMechanism, byte[] message) Computes the hash function of a given value, based on the SCRAM mechanism hash function.static byte[]
ScramFunctions.hmac
(ScramMechanism scramMechanism, byte[] key, byte[] message) Computes the HMAC of the message and key, using the given SCRAM mechanism.private static boolean
ScramMechanism.isAlgorithmSupported
(ScramMechanism mechanism) static byte[]
ScramFunctions.saltedPassword
(ScramMechanism scramMechanism, StringPreparation stringPreparation, char[] password, byte[] salt, int iterationCount) 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.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.