- CHANNEL_BINDING - com.ongres.scram.common.ScramAttributes
-
This REQUIRED attribute specifies the base64-encoded GS2 header and channel binding data.
- CHANNEL_BINDING_NOT_SUPPORTED - com.ongres.scram.common.message.ServerFinalMessage.Error
-
- CHANNEL_BINDING_REQUIRED - com.ongres.scram.common.gssapi.Gs2Attributes
-
Channel binding attribute.
- CHANNEL_BINDING_REQUIRED - com.ongres.scram.common.gssapi.Gs2CbindFlag
-
Client requires channel binding.
- CHANNEL_BINDINGS_DONT_MATCH - com.ongres.scram.common.message.ServerFinalMessage.Error
-
- 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.
- CLIENT_NOT - com.ongres.scram.common.gssapi.Gs2Attributes
-
Channel binding attribute.
- CLIENT_NOT - com.ongres.scram.common.gssapi.Gs2CbindFlag
-
Client doesn't support channel binding.
- CLIENT_PROOF - com.ongres.scram.common.ScramAttributes
-
This attribute specifies a base64-encoded ClientProof.
- CLIENT_YES_SERVER_NOT - com.ongres.scram.common.gssapi.Gs2Attributes
-
Channel binding attribute.
- CLIENT_YES_SERVER_NOT - com.ongres.scram.common.gssapi.Gs2CbindFlag
-
Client does support channel binding but thinks the server does not.
- 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.
- ClientFirstMessage - Class in com.ongres.scram.common.message
-
Constructs and parses client-first-messages.
- 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(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(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.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
-
- SALT - com.ongres.scram.common.ScramAttributes
-
This attribute specifies the base64-encoded salt used by the server for this user.
- 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.
- SCRAM_SHA_1 - com.ongres.scram.common.ScramMechanisms
-
- SCRAM_SHA_1_PLUS - com.ongres.scram.common.ScramMechanisms
-
- SCRAM_SHA_256 - com.ongres.scram.common.ScramMechanisms
-
- SCRAM_SHA_256_PLUS - com.ongres.scram.common.ScramMechanisms
-
- 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
-
- 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.
- 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
-
- 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).
- SERVER_DOES_SUPPORT_CHANNEL_BINDING - com.ongres.scram.common.message.ServerFinalMessage.Error
-
- SERVER_SIGNATURE - com.ongres.scram.common.ScramAttributes
-
This attribute specifies a base64-encoded ServerSignature.
- 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.
- storedKey(ScramMechanism, byte[]) - Static method in class com.ongres.scram.common.ScramFunctions
-
Generates a stored key, from the salted password.
- 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
-
- 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.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.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.