Index

A B C G H I N P S T V 
All Classes and Interfaces|All Packages|Serialized Form

A

authMessage(ClientFirstMessage, ServerFirstMessage, byte[]) - Static method in class com.ongres.scram.common.ScramFunctions
The AuthMessage is computed by concatenating messages from the authentication exchange.

B

byName(String) - Static method in enum com.ongres.scram.common.ScramMechanism
Gets a SCRAM mechanism given its standard IANA name, supported by the Java security provider.

C

CHANNEL_BINDING_REQUIRED - Enum constant in enum com.ongres.scram.common.Gs2CbindFlag
Client requires channel binding.
CLIENT_NOT - Enum constant in enum com.ongres.scram.common.Gs2CbindFlag
Client doesn't support channel binding.
CLIENT_YES_SERVER_NOT - Enum constant in enum com.ongres.scram.common.Gs2CbindFlag
Client does support channel binding but thinks the server does not.
ClientFinalMessage - Class in com.ongres.scram.common
Constructs and parses client-final-messages.
ClientFinalMessage(Gs2Header, byte[], String, byte[]) - Constructor for class com.ongres.scram.common.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.
ClientFirstMessage - Class in com.ongres.scram.common
Constructs and parses client-first-messages.
ClientFirstMessage(Gs2CbindFlag, String, String, String, String) - Constructor for class com.ongres.scram.common.ClientFirstMessage
Constructs a client-first-message for the given parameters.
ClientFirstMessage(Gs2Header, String, String) - Constructor for class com.ongres.scram.common.ClientFirstMessage
Constructs a client-first-message for the given user, nonce and gs2Header.
ClientFirstMessage(String, String) - Constructor for class com.ongres.scram.common.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.
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.common - package com.ongres.scram.common
This package expose the messages used to implement a client/server of Salted Challenge Response Authentication Mechanism (SCRAM).
com.ongres.scram.common.exception - package com.ongres.scram.common.exception
This package expose the exceptions that can be throw by the client/server implementations of SCRAM.

G

getAuthzid() - Method in class com.ongres.scram.common.Gs2Header
Return the authzid.
getCbindInput() - Method in class com.ongres.scram.common.ClientFinalMessage
Return the channel-binding "c=" base64 encoding of cbind-input.
getChannelBindingFlag() - Method in class com.ongres.scram.common.Gs2Header
Return the channel binding flag.
getChannelBindingName() - Method in class com.ongres.scram.common.Gs2Header
Return the channel binding type.
getChar() - Method in enum com.ongres.scram.common.Gs2CbindFlag
 
getClientNonce() - Method in class com.ongres.scram.common.ClientFirstMessage
Return the client nonce.
getClientNonce() - Method in class com.ongres.scram.common.ServerFirstMessage
The client nonce.
getErrorMessage(String) - Static method in class com.ongres.scram.common.exception.ServerErrorValue
This get the error message used in a ScramServerErrorException.
getGs2Header() - Method in class com.ongres.scram.common.ClientFirstMessage
Return the Gs2Header.
getIterationCount() - Method in class com.ongres.scram.common.ServerFirstMessage
The number of iterations.
getName() - Method in enum com.ongres.scram.common.ScramMechanism
The name of the mechanism.
getNonce() - Method in class com.ongres.scram.common.ClientFinalMessage
Return the nonce.
getNonce() - Method in class com.ongres.scram.common.ServerFirstMessage
The concatenation of the client nonce and the server nonce: c-nonce [s-nonce].
getProof() - Method in class com.ongres.scram.common.ClientFinalMessage
Return the proof.
getSalt() - Method in class com.ongres.scram.common.ServerFirstMessage
The salt in base64.
getServerError() - Method in exception class com.ongres.scram.common.exception.ScramServerErrorException
Return the "e=" server-error-value from the server-final-message.
getServerError() - Method in class com.ongres.scram.common.ServerFinalMessage
Get the server-error-value from the "e=" server-final-message.
getServerNonce() - Method in class com.ongres.scram.common.ServerFirstMessage
The server nonce.
getUsername() - Method in class com.ongres.scram.common.ClientFirstMessage
Return the username.
getVerifier() - Method in class com.ongres.scram.common.ServerFinalMessage
Get the verifier value from the "v=" server-final-message.
Gs2CbindFlag - Enum in com.ongres.scram.common
Possible values of a GS2 Cbind Flag (channel binding; part of GS2 header).
Gs2Header - Class in com.ongres.scram.common
GS2 header for SCRAM.
Gs2Header(Gs2CbindFlag) - Constructor for class com.ongres.scram.common.Gs2Header
Construct and validates a Gs2Header with no authzid nor channel binding.
Gs2Header(Gs2CbindFlag, String) - Constructor for class com.ongres.scram.common.Gs2Header
Construct and validates a Gs2Header with no authzid.
Gs2Header(Gs2CbindFlag, String, String) - Constructor for class com.ongres.scram.common.Gs2Header
Construct and validates a Gs2Header.

H

hash(ScramMechanism, byte[]) - Static method in class com.ongres.scram.common.ScramFunctions
Computes the hash function of a given value, based on the SCRAM mechanism hash function.
hmac(ScramMechanism, byte[], byte[]) - Static method in class com.ongres.scram.common.ScramFunctions
Computes the HMAC of the message and key, using the given SCRAM mechanism.

I

isChannelBindingRequired() - Method in class com.ongres.scram.common.ClientFirstMessage
Check to probe if gs2-cbind-flag is set to "p=".
isError() - Method in class com.ongres.scram.common.ServerFinalMessage
Whether this server-final-message contains an error.
isPlus() - Method in enum com.ongres.scram.common.ScramMechanism
The mechanism -PLUS require channel binding.

N

NO_PREPARATION - Enum constant in enum com.ongres.scram.common.StringPreparation
Implementation of StringPreparation that performs no preparation.
nonce(int, SecureRandom) - Static method in class com.ongres.scram.common.ScramFunctions
Generates a random string (called a 'nonce'), composed of ASCII printable characters, except comma (',').
normalize(char[]) - Method in enum com.ongres.scram.common.StringPreparation
Normalize acording the selected preparation.

P

parseFrom(String) - Static method in class com.ongres.scram.common.ClientFirstMessage
Construct a ClientFirstMessage instance from a message (String).
parseFrom(String) - Static method in class com.ongres.scram.common.Gs2Header
Read a Gs2Header from a String.
parseFrom(String) - Static method in class com.ongres.scram.common.ServerFinalMessage
Parses a server-final-message from a String.
parseFrom(String, String) - Static method in class com.ongres.scram.common.ServerFirstMessage
Parses a server-first-message from a String.
POSTGRESQL_PREPARATION - Enum constant in enum com.ongres.scram.common.StringPreparation
Implementation of StringPreparation that performs SASLprep preparation for PostgreSQL.

S

salt(int, SecureRandom) - Static method in class com.ongres.scram.common.ScramFunctions
Generates a random salt that can be used to generate a salted password.
saltedPassword(ScramMechanism, StringPreparation, char[], 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.
SASL_PREPARATION - Enum constant in enum com.ongres.scram.common.StringPreparation
Implementation of StringPreparation that performs SASLprep preparation.
SCRAM_SHA_1 - Enum constant in enum com.ongres.scram.common.ScramMechanism
SCRAM-SHA-1 mechanism, defined in RFC-5802.
SCRAM_SHA_1_PLUS - Enum constant in enum com.ongres.scram.common.ScramMechanism
SCRAM-SHA-1-PLUS mechanism, defined in RFC-5802.
SCRAM_SHA_224 - Enum constant in enum com.ongres.scram.common.ScramMechanism
SCRAM-SHA-224 mechanism, not defined in an RFC.
SCRAM_SHA_224_PLUS - Enum constant in enum com.ongres.scram.common.ScramMechanism
SCRAM-SHA-224-PLUS mechanism, not defined in an RFC.
SCRAM_SHA_256 - Enum constant in enum com.ongres.scram.common.ScramMechanism
SCRAM-SHA-256 mechanism, defined in RFC-7677.
SCRAM_SHA_256_PLUS - Enum constant in enum com.ongres.scram.common.ScramMechanism
SCRAM-SHA-256-PLUS mechanism, defined in RFC-7677.
SCRAM_SHA_384 - Enum constant in enum com.ongres.scram.common.ScramMechanism
SCRAM-SHA-384 mechanism, not defined in an RFC.
SCRAM_SHA_384_PLUS - Enum constant in enum com.ongres.scram.common.ScramMechanism
SCRAM-SHA-384-PLUS mechanism, not defined in an RFC.
SCRAM_SHA_512 - Enum constant in enum com.ongres.scram.common.ScramMechanism
SCRAM-SHA-512 mechanism.
SCRAM_SHA_512_PLUS - Enum constant in enum com.ongres.scram.common.ScramMechanism
SCRAM-SHA-512-PLUS mechanism.
ScramException - Exception Class in com.ongres.scram.common.exception
This class represents an generic error when using SCRAM, which is a SASL method.
ScramException(String) - Constructor for exception class com.ongres.scram.common.exception.ScramException
Constructs a new instance of ScramException with a detailed message.
ScramException(String, Throwable) - Constructor for exception class 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 (mostly crypto) for SCRAM.
ScramInvalidServerSignatureException - Exception Class in com.ongres.scram.common.exception
This class represents an error when verifying the a base64-encoded ServerSignature in a server-final-message.
ScramInvalidServerSignatureException(String) - Constructor for exception class com.ongres.scram.common.exception.ScramInvalidServerSignatureException
Constructs a new instance of ScramInvalidServerSignatureException with a detailed message.
ScramInvalidServerSignatureException(String, Throwable) - Constructor for exception class com.ongres.scram.common.exception.ScramInvalidServerSignatureException
Constructs a new instance of ScramInvalidServerSignatureException with a detailed message and a root cause.
ScramMechanism - Enum in com.ongres.scram.common
SCRAM Mechanisms supported by this library.
ScramParseException - Exception Class in com.ongres.scram.common.exception
This class represents an error when parsing SCRAM messages.
ScramParseException(String) - Constructor for exception class com.ongres.scram.common.exception.ScramParseException
Constructs a new instance of ScramParseException with a detailed message.
ScramParseException(String, Throwable) - Constructor for exception class com.ongres.scram.common.exception.ScramParseException
Constructs a new instance of ScramParseException with a detailed message and a root cause.
ScramRuntimeException - Exception Class in com.ongres.scram.common.exception
This class represents an error when using SCRAM, which is a SASL method.
ScramRuntimeException(String) - Constructor for exception class com.ongres.scram.common.exception.ScramRuntimeException
Constructs a new instance of ScramRuntimeException with a detailed message.
ScramRuntimeException(String, Throwable) - Constructor for exception class com.ongres.scram.common.exception.ScramRuntimeException
Constructs a new instance of ScramRuntimeException with a detailed message and a root cause.
ScramServerErrorException - Exception Class in com.ongres.scram.common.exception
This class specifies an error that occurred during authentication exchange in a server-final-message.
ScramServerErrorException(String) - Constructor for exception class com.ongres.scram.common.exception.ScramServerErrorException
Constructs a new instance of ScramServerErrorException with a detailed message.
ScramServerErrorException(String, Throwable) - Constructor for exception class com.ongres.scram.common.exception.ScramServerErrorException
Constructs a new instance of ScramServerErrorException with a detailed message and a root cause.
ServerErrorValue - Class in com.ongres.scram.common.exception
This attribute specifies an error that occurred during authentication exchange.
ServerFinalMessage - Class in com.ongres.scram.common
Constructs and parses server-final-messages.
ServerFinalMessage(byte[]) - Constructor for class com.ongres.scram.common.ServerFinalMessage
Constructs a server-final-message with no errors, and the provided server verifier.
ServerFinalMessage(String) - Constructor for class com.ongres.scram.common.ServerFinalMessage
Constructs a server-final-message which represents a SCRAM error.
ServerFirstMessage - Class in com.ongres.scram.common
Constructs and parses server-first-messages.
ServerFirstMessage(String, String, String, int) - Constructor for class com.ongres.scram.common.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.
serverSignature(ScramMechanism, byte[], String) - Static method in class com.ongres.scram.common.ScramFunctions
Compute the SCRAM server signature.
storedKey(ScramMechanism, byte[]) - Static method in class com.ongres.scram.common.ScramFunctions
Generates a stored key, from the salted password.
StringPreparation - Enum in com.ongres.scram.common
StringPreparations enumerations to use in SCRAM.
supportedMechanisms() - Static method in enum com.ongres.scram.common.ScramMechanism
List all the supported SCRAM mechanisms by this client implementation.

T

toString() - Method in class com.ongres.scram.common.ClientFinalMessage
String representation of the SCRAM message.
toString() - Method in class com.ongres.scram.common.ClientFirstMessage
String representation of the SCRAM message.
toString() - Method in class com.ongres.scram.common.ServerFinalMessage
String representation of the SCRAM message.
toString() - Method in class com.ongres.scram.common.ServerFirstMessage
String representation of the SCRAM message.

V

valueOf(String) - Static method in enum com.ongres.scram.common.Gs2CbindFlag
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.ongres.scram.common.ScramMechanism
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.ongres.scram.common.StringPreparation
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.ongres.scram.common.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.ScramMechanism
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.StringPreparation
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.
A B C G H I N P S T V 
All Classes and Interfaces|All Packages|Serialized Form