Uses of Interface
com.ongres.scram.common.ScramMechanism
-
Packages that use ScramMechanism Package Description com.ongres.scram.client com.ongres.scram.common -
-
Uses of ScramMechanism in com.ongres.scram.client
Fields in com.ongres.scram.client declared as ScramMechanism Modifier and Type Field Description private ScramMechanism
ScramClient. scramMechanism
private ScramMechanism
ScramSession. scramMechanism
Fields in com.ongres.scram.client with type parameters of type ScramMechanism Modifier and Type Field Description private java.util.Optional<ScramMechanism>
ScramClient.Builder. channelBindingMechanism
protected java.util.Optional<ScramMechanism>
ScramClient.PreBuilder2. channelBindingMechanism
private java.util.Optional<ScramMechanism>
ScramClient.Builder. nonChannelBindingMechanism
protected java.util.Optional<ScramMechanism>
ScramClient.PreBuilder2. nonChannelBindingMechanism
Methods in com.ongres.scram.client that return ScramMechanism Modifier and Type Method Description ScramMechanism
ScramClient. getScramMechanism()
Methods in com.ongres.scram.client with parameters of type ScramMechanism Modifier and Type Method Description ScramClient.Builder
ScramClient.PreBuilder2. selectClientMechanism(ScramMechanism scramMechanism)
Select a fixed client mechanism.Constructors in com.ongres.scram.client with parameters of type ScramMechanism Constructor Description ScramSession(ScramMechanism scramMechanism, StringPreparation stringPreparation, java.lang.String user, java.lang.String nonce)
Constructs a SCRAM client, to perform an authentication for a given user.Constructor parameters in com.ongres.scram.client with type arguments of type ScramMechanism Constructor Description Builder(ScramClient.ChannelBinding channelBinding, StringPreparation stringPreparation, java.util.Optional<ScramMechanism> nonChannelBindingMechanism, java.util.Optional<ScramMechanism> channelBindingMechanism)
ScramClient(ScramClient.ChannelBinding channelBinding, StringPreparation stringPreparation, java.util.Optional<ScramMechanism> nonChannelBindingMechanism, java.util.Optional<ScramMechanism> channelBindingMechanism, java.security.SecureRandom secureRandom, java.util.function.Supplier<java.lang.String> nonceSupplier)
-
Uses of ScramMechanism in com.ongres.scram.common
Classes in com.ongres.scram.common that implement ScramMechanism Modifier and Type Class Description class
ScramMechanisms
SCRAM Mechanisms supported by this library.Methods in com.ongres.scram.common that return types with arguments of type ScramMechanism Modifier and Type Method Description static java.util.Optional<ScramMechanism>
ScramMechanisms. selectMatchingMechanism(boolean channelBinding, java.lang.String... peerMechanisms)
This class 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).Methods in com.ongres.scram.common with parameters of type ScramMechanism Modifier and Type Method Description static byte[]
ScramFunctions. clientKey(ScramMechanism scramMechanism, byte[] saltedPassword)
Generates a client key, from the salted password.static byte[]
ScramFunctions. clientKey(ScramMechanism scramMechanism, StringPreparation stringPreparation, java.lang.String password, byte[] salt, int iteration)
Generates a client key from the password and salt.static byte[]
ScramFunctions. clientSignature(ScramMechanism scramMechanism, byte[] storedKey, java.lang.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, java.lang.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, java.lang.String password, byte[] salt, int iteration)
Generates a server key from the password and salt.static byte[]
ScramFunctions. serverSignature(ScramMechanism scramMechanism, byte[] serverKey, java.lang.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, java.lang.String authMessage)
Verifies that a provided client proof is correct.static boolean
ScramFunctions. verifyServerSignature(ScramMechanism scramMechanism, byte[] serverKey, java.lang.String authMessage, byte[] serverSignature)
Verifies that a provided server proof is correct.
-