Uses of Interface
com.ongres.scram.common.ScramMechanism
Packages that use ScramMechanism
-
Uses of ScramMechanism in com.ongres.scram.client
Fields in com.ongres.scram.client declared as ScramMechanismModifier and TypeFieldDescriptionprivate final ScramMechanismScramClient.Builder.channelBindingMechanismprotected ScramMechanismScramClient.PreBuilder2.channelBindingMechanismprivate final ScramMechanismScramClient.Builder.nonChannelBindingMechanismprotected ScramMechanismScramClient.PreBuilder2.nonChannelBindingMechanismprivate final ScramMechanismScramClient.scramMechanismprivate final ScramMechanismScramSession.scramMechanismMethods in com.ongres.scram.client that return ScramMechanismMethods in com.ongres.scram.client with parameters of type ScramMechanismModifier and TypeMethodDescriptionScramClient.PreBuilder2.selectClientMechanism(ScramMechanism scramMechanism) Select a fixed client mechanism.Constructors in com.ongres.scram.client with parameters of type ScramMechanismModifierConstructorDescriptionprivateBuilder(ScramClient.ChannelBinding channelBinding, StringPreparation stringPreparation, ScramMechanism nonChannelBindingMechanism, ScramMechanism channelBindingMechanism) privateScramClient(ScramClient.ChannelBinding channelBinding, StringPreparation stringPreparation, ScramMechanism nonChannelBindingMechanism, ScramMechanism channelBindingMechanism, SecureRandom secureRandom, NonceSupplier nonceSupplier) ScramSession(ScramMechanism scramMechanism, StringPreparation stringPreparation, String user, String nonce) Constructs a SCRAM client, to perform an authentication for a given user. -
Uses of ScramMechanism in com.ongres.scram.common
Classes in com.ongres.scram.common that implement ScramMechanismModifier and TypeClassDescriptionenumSCRAM Mechanisms supported by this library.Methods in com.ongres.scram.common that return ScramMechanismModifier and TypeMethodDescriptionstatic ScramMechanismScramMechanisms.selectMatchingMechanism(boolean channelBinding, 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 ScramMechanismModifier and TypeMethodDescriptionstatic 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 booleanScramFunctions.verifyClientProof(ScramMechanism scramMechanism, byte[] clientProof, byte[] storedKey, String authMessage) Verifies that a provided client proof is correct.static booleanScramFunctions.verifyServerSignature(ScramMechanism scramMechanism, byte[] serverKey, String authMessage, byte[] serverSignature) Verifies that a provided server proof is correct.