- channelBinding(ScramClient.ChannelBinding) - Static method in class com.ongres.scram.client.ScramClient
-
Selects for the client whether to use channel binding.
- channelBinding - Variable in class com.ongres.scram.client.ScramClient.PreBuilder1
-
- channelBindingMechanism - Variable in class com.ongres.scram.client.ScramClient.PreBuilder2
-
- CharAttribute - Interface in com.ongres.scram.common.util
-
Represents an attribute (a key name) that is represented by a single char.
- CharAttributeValue - Interface in com.ongres.scram.common.util
-
Augments a
CharAttribute
with a String value and the method(s) to write its data to a StringBuffer.
- checkArgument(boolean, String) - Static method in class com.ongres.scram.common.util.Preconditions
-
Checks that the argument is valid, based in a check boolean condition.
- checkNotEmpty(String, String) - Static method in class com.ongres.scram.common.util.Preconditions
-
Checks that the String is not null and not empty
- checkNotNull(T, String) - Static method in class com.ongres.scram.common.util.Preconditions
-
Checks that the argument is not null.
- clientFinalMessage(byte[]) - Method in class com.ongres.scram.client.ScramSession.ClientFinalProcessor
-
Generates the SCRAM representation of the client-final-message, including the given channel-binding data.
- clientFinalMessage() - Method in class com.ongres.scram.client.ScramSession.ClientFinalProcessor
-
Generates the SCRAM representation of the client-final-message.
- ClientFinalMessage - Class in com.ongres.scram.common.message
-
Constructs and parses client-final-messages.
- ClientFinalMessage(Gs2Header, Optional<byte[]>, String, byte[]) - Constructor for class com.ongres.scram.common.message.ClientFinalMessage
-
Constructus a client-final-message with the provided gs2Header (the same one used in the client-first-message),
optionally the channel binding data, and the nonce.
- clientFinalProcessor(String) - Method in class com.ongres.scram.client.ScramSession.ServerFirstProcessor
-
- clientFinalProcessor(byte[], byte[]) - Method in class com.ongres.scram.client.ScramSession.ServerFirstProcessor
-
- clientFirstMessage(Gs2CbindFlag, String, String) - Method in class com.ongres.scram.client.ScramSession
-
Returns the text representation of a SCRAM client-first-message, with the GSS-API header values indicated.
- clientFirstMessage() - Method in class com.ongres.scram.client.ScramSession
-
Returns the text representation of a SCRAM client-first-message, with no channel binding nor authzid.
- ClientFirstMessage - Class in com.ongres.scram.common.message
-
Constructs and parses client-first-messages.
- ClientFirstMessage(Gs2Header, String, String) - Constructor for class com.ongres.scram.common.message.ClientFirstMessage
-
Constructs a client-first-message for the given user, nonce and gs2Header.
- ClientFirstMessage(Gs2CbindFlag, String, String, String, String) - Constructor for class com.ongres.scram.common.message.ClientFirstMessage
-
Constructs a client-first-message for the given parameters.
- ClientFirstMessage(String, String) - Constructor for class com.ongres.scram.common.message.ClientFirstMessage
-
Constructs a client-first-message for the given parameters, with no channel binding nor authzid.
- clientKey(ScramMechanism, byte[]) - Static method in class com.ongres.scram.common.ScramFunctions
-
Generates a client key, from the salted password.
- clientKey(ScramMechanism, StringPreparation, String, byte[], int) - Static method in class com.ongres.scram.common.ScramFunctions
-
Generates a client key from the password and salt.
- clientProof(byte[], byte[]) - Static method in class com.ongres.scram.common.ScramFunctions
-
Computes the SCRAM client proof to be sent to the server on the client-final-message.
- clientSignature(ScramMechanism, byte[], String) - Static method in class com.ongres.scram.common.ScramFunctions
-
Computes the SCRAM client signature.
- com.ongres.scram.client - package com.ongres.scram.client
-
- com.ongres.scram.common - package com.ongres.scram.common
-
- com.ongres.scram.common.exception - package com.ongres.scram.common.exception
-
- com.ongres.scram.common.gssapi - package com.ongres.scram.common.gssapi
-
- com.ongres.scram.common.message - package com.ongres.scram.common.message
-
- com.ongres.scram.common.stringprep - package com.ongres.scram.common.stringprep
-
- com.ongres.scram.common.util - package com.ongres.scram.common.util
-
- CryptoUtil - Class in com.ongres.scram.common.util
-
Utility static methods for cryptography related tasks.
- CryptoUtil() - Constructor for class com.ongres.scram.common.util.CryptoUtil
-
- saltedPassword(ScramMechanism, StringPreparation, String, byte[], int) - Static method in class com.ongres.scram.common.ScramFunctions
-
Compute the salted password, based on the given SCRAM mechanism, the String preparation algorithm,
the provided salt and the number of iterations.
- ScramAttributes - Enum in com.ongres.scram.common
-
- ScramAttributeValue - Class in com.ongres.scram.common
-
Parse and write SCRAM Attribute-Value pairs.
- ScramAttributeValue(ScramAttributes, String) - Constructor for class com.ongres.scram.common.ScramAttributeValue
-
- ScramClient - Class in com.ongres.scram.client
-
- ScramClient.Builder - Class in com.ongres.scram.client
-
This class is not meant to be used directly.
- ScramClient.ChannelBinding - Enum in com.ongres.scram.client
-
Select whether this client will support channel binding or not
- ScramClient.PreBuilder1 - Class in com.ongres.scram.client
-
This class is not meant to be used directly.
- ScramClient.PreBuilder2 - Class in com.ongres.scram.client
-
This class is not meant to be used directly.
- ScramException - Exception in com.ongres.scram.common.exception
-
This class represents an error when using SCRAM, which is a SASL method.
- ScramException(String) - Constructor for exception com.ongres.scram.common.exception.ScramException
-
Constructs a new instance of ScramException with a detailed message.
- ScramException(String, Throwable) - Constructor for exception com.ongres.scram.common.exception.ScramException
-
Constructs a new instance of ScramException with a detailed message and a root cause.
- ScramFunctions - Class in com.ongres.scram.common
-
Utility functions (e.g.
- ScramFunctions() - Constructor for class com.ongres.scram.common.ScramFunctions
-
- ScramInvalidServerSignatureException - Exception in com.ongres.scram.common.exception
-
This class represents an error when parsing SCRAM messages
- ScramInvalidServerSignatureException(String) - Constructor for exception com.ongres.scram.common.exception.ScramInvalidServerSignatureException
-
Constructs a new instance of ScramInvalidServerSignatureException with a detailed message.
- ScramInvalidServerSignatureException(String, Throwable) - Constructor for exception com.ongres.scram.common.exception.ScramInvalidServerSignatureException
-
Constructs a new instance of ScramInvalidServerSignatureException with a detailed message and a root cause.
- ScramMechanism - Interface in com.ongres.scram.common
-
Definition of the functionality to be provided by every ScramMechanism.
- ScramMechanisms - Enum in com.ongres.scram.common
-
SCRAM Mechanisms supported by this library.
- ScramParseException - Exception in com.ongres.scram.common.exception
-
This class represents an error when parsing SCRAM messages
- ScramParseException(String) - Constructor for exception com.ongres.scram.common.exception.ScramParseException
-
Constructs a new instance of ScramParseException with a detailed message.
- ScramParseException(String, Throwable) - Constructor for exception com.ongres.scram.common.exception.ScramParseException
-
Constructs a new instance of ScramParseException with a detailed message and a root cause.
- ScramServerErrorException - Exception in com.ongres.scram.common.exception
-
This class represents an error when parsing SCRAM messages
- ScramServerErrorException(ServerFinalMessage.Error) - Constructor for exception com.ongres.scram.common.exception.ScramServerErrorException
-
Constructs a new instance of ScramServerErrorException with a detailed message.
- ScramServerErrorException(ServerFinalMessage.Error, Throwable) - Constructor for exception com.ongres.scram.common.exception.ScramServerErrorException
-
Constructs a new instance of ScramServerErrorException with a detailed message and a root cause.
- scramSession(String) - Method in class com.ongres.scram.client.ScramClient
-
Instantiates a
ScramSession
for the specified user and this parametrized generator.
- ScramSession - Class in com.ongres.scram.client
-
A class that represents a SCRAM client.
- ScramSession(ScramMechanism, StringPreparation, String, String) - Constructor for class com.ongres.scram.client.ScramSession
-
Constructs a SCRAM client, to perform an authentication for a given user.
- ScramSession.ClientFinalProcessor - Class in com.ongres.scram.client
-
Processor that allows to generate the client-final-message,
as well as process the server-final-message and verify server's signature.
- ScramSession.ServerFirstProcessor - Class in com.ongres.scram.client
-
Process a received server-first-message.
- ScramStringFormatting - Class in com.ongres.scram.common
-
Class with static methods that provide support for converting to/from salNames.
- ScramStringFormatting() - Constructor for class com.ongres.scram.common.ScramStringFormatting
-
- secretKeyFactory() - Method in interface com.ongres.scram.common.ScramMechanism
-
Gets a SecretKeyFactory for the given algorithm.
- secretKeyFactory() - Method in enum com.ongres.scram.common.ScramMechanisms
-
- secretKeySpec(byte[]) - Method in interface com.ongres.scram.common.ScramMechanism
-
Generates a key of the algorith used, based on the key given.
- secretKeySpec(byte[]) - Method in enum com.ongres.scram.common.ScramMechanisms
-
- secureRandomAlgorithmProvider(String, String) - Method in class com.ongres.scram.client.ScramClient.Builder
-
Optional call.
- selectClientMechanism(ScramMechanism) - Method in class com.ongres.scram.client.ScramClient.PreBuilder2
-
Select a fixed client mechanism.
- selectMatchingMechanism(boolean, String...) - Static method in enum com.ongres.scram.common.ScramMechanisms
-
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).
- selectMechanismBasedOnServerAdvertised(String...) - Method in class com.ongres.scram.client.ScramClient.PreBuilder2
-
Inform the client of the SCRAM mechanisms supported by the server.
- selectMechanismBasedOnServerAdvertisedCsv(String) - Method in class com.ongres.scram.client.ScramClient.PreBuilder2
-
Inform the client of the SCRAM mechanisms supported by the server.
- ServerFinalMessage - Class in com.ongres.scram.common.message
-
Constructs and parses server-final-messages.
- ServerFinalMessage(byte[]) - Constructor for class com.ongres.scram.common.message.ServerFinalMessage
-
Constructs a server-final-message with no errors, and the provided server verifier
- ServerFinalMessage(ServerFinalMessage.Error) - Constructor for class com.ongres.scram.common.message.ServerFinalMessage
-
Constructs a server-final-message which represents a SCRAM error.
- ServerFinalMessage.Error - Enum in com.ongres.scram.common.message
-
Possible error messages sent on a server-final-message.
- ServerFirstMessage - Class in com.ongres.scram.common.message
-
Constructs and parses server-first-messages.
- ServerFirstMessage(String, String, String, int) - Constructor for class com.ongres.scram.common.message.ServerFirstMessage
-
Constructs a server-first-message from a client-first-message and the additional required data.
- serverKey(ScramMechanism, byte[]) - Static method in class com.ongres.scram.common.ScramFunctions
-
Generates a server key, from the salted password.
- serverKey(ScramMechanism, StringPreparation, String, byte[], int) - Static method in class com.ongres.scram.common.ScramFunctions
-
Generates a server key from the password and salt.
- serverSignature(ScramMechanism, byte[], String) - Static method in class com.ongres.scram.common.ScramFunctions
-
Compute the SCRAM server signature.
- setup() - Method in class com.ongres.scram.client.ScramClient.Builder
-
Gets the client, fully constructed and configured, with the provided channel binding, string preparation
properties, and the selected SCRAM mechanism based on server supported mechanisms.
- storedKey(ScramMechanism, byte[]) - Static method in class com.ongres.scram.common.ScramFunctions
-
Generates a stored key, from the salted password.
- stringPreparation(StringPreparation) - Method in class com.ongres.scram.client.ScramClient.PreBuilder1
-
Selects the string preparation algorithm to use by the client.
- stringPreparation - Variable in class com.ongres.scram.client.ScramClient.PreBuilder2
-
- StringPreparation - Interface in com.ongres.scram.common.stringprep
-
Interface for all possible String Preparations mechanisms.
- StringPreparations - Enum in com.ongres.scram.common.stringprep
-
- StringWritable - Interface in com.ongres.scram.common.util
-
Interface to denote classes which can write to a StringBuffer.
- StringWritableCsv - Class in com.ongres.scram.common.util
-
- StringWritableCsv() - Constructor for class com.ongres.scram.common.util.StringWritableCsv
-
- supportedMechanisms() - Static method in class com.ongres.scram.client.ScramClient
-
List all the supported SCRAM mechanisms by this client implementation
- supportsChannelBinding() - Method in interface com.ongres.scram.common.ScramMechanism
-
Whether this mechanism supports channel binding
- supportsChannelBinding() - Method in enum com.ongres.scram.common.ScramMechanisms
-
- valueOf(String) - Static method in enum com.ongres.scram.client.ScramClient.ChannelBinding
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.ongres.scram.common.gssapi.Gs2Attributes
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.ongres.scram.common.gssapi.Gs2CbindFlag
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.ongres.scram.common.message.ServerFinalMessage.Error
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.ongres.scram.common.ScramAttributes
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.ongres.scram.common.ScramMechanisms
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.ongres.scram.common.stringprep.StringPreparations
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.ongres.scram.client.ScramClient.ChannelBinding
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.ongres.scram.common.gssapi.Gs2Attributes
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.ongres.scram.common.gssapi.Gs2CbindFlag
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.ongres.scram.common.message.ServerFinalMessage.Error
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.ongres.scram.common.ScramAttributes
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.ongres.scram.common.ScramMechanisms
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.ongres.scram.common.stringprep.StringPreparations
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- verifyClientProof(ScramMechanism, byte[], byte[], String) - Static method in class com.ongres.scram.common.ScramFunctions
-
Verifies that a provided client proof is correct.
- verifyServerSignature(ScramMechanism, byte[], String, byte[]) - Static method in class com.ongres.scram.common.ScramFunctions
-
Verifies that a provided server proof is correct.