Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractCharAttributeValue - Class in com.ongres.scram.common.util
-
Construct and write generic CharAttribute-Value pairs.
- AbstractCharAttributeValue(CharAttribute, String) - Constructor for class com.ongres.scram.common.util.AbstractCharAttributeValue
- AbstractStringWritable - Class in com.ongres.scram.common.util
-
Basic implementation of the StringWritable interface, that overrides the toString() method.
- AbstractStringWritable() - Constructor for class com.ongres.scram.common.util.AbstractStringWritable
- algorithmKeyLength() - Method in interface com.ongres.scram.common.ScramMechanism
-
Returns the length of the key length of the algorithm.
- algorithmKeyLength() - Method in enum class com.ongres.scram.common.ScramMechanisms
- Arrays - Class in com.ongres.scram.common.bouncycastle.pbkdf2
-
General array utilities.
- Arrays() - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.Arrays
- asCharArray(byte[]) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Strings
-
Do a simple conversion of an array of 8 bit characters into a string.
- attributeChar - Variable in enum class com.ongres.scram.common.ScramAttributes
- authMessage - Variable in class com.ongres.scram.client.ScramSession.ClientFinalProcessor
- authzid - Variable in class com.ongres.scram.common.gssapi.Gs2Header
- AUTHZID - Enum constant in enum class com.ongres.scram.common.gssapi.Gs2Attributes
-
SCRAM attribute.
- AUTHZID - Enum constant in enum class com.ongres.scram.common.ScramAttributes
-
This is an optional attribute, and is part of the GS2 [RFC5801] bridge between the GSS-API and SASL.
B
- Base64 - Class in com.ongres.scram.common.bouncycastle.base64
-
Utility class for converting Base64 data to bytes and back again.
- Base64() - Constructor for class com.ongres.scram.common.bouncycastle.base64.Base64
- base64Decode(String) - Static method in class com.ongres.scram.common.ScramStringFormatting
- base64Encode(byte[]) - Static method in class com.ongres.scram.common.ScramStringFormatting
- base64Encode(String) - Static method in class com.ongres.scram.common.ScramStringFormatting
- Base64Encoder - Class in com.ongres.scram.common.bouncycastle.base64
-
A streaming Base64 encoder.
- Base64Encoder() - Constructor for class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
- bigEndianToInt(byte[], int) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Pack
- bigEndianToLong(byte[], int) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Pack
- blockLength - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- blockLengths - Static variable in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- Builder(ScramClient.ChannelBinding, StringPreparation, ScramMechanism, ScramMechanism) - Constructor for class com.ongres.scram.client.ScramClient.Builder
- BY_NAME_MAPPING - Static variable in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- BY_NAME_MAPPING - Static variable in enum class com.ongres.scram.common.ScramMechanisms
- byChar(char) - Static method in enum class com.ongres.scram.common.gssapi.Gs2Attributes
- byChar(char) - Static method in enum class com.ongres.scram.common.gssapi.Gs2CbindFlag
- byChar(char) - Static method in enum class com.ongres.scram.common.ScramAttributes
-
Find a SCRAMAttribute by its character.
- byGS2CbindFlag(Gs2CbindFlag) - Static method in enum class com.ongres.scram.common.gssapi.Gs2Attributes
- byName(String) - Static method in enum class com.ongres.scram.common.ScramMechanisms
-
Gets a SCRAM mechanism, given its standard IANA name.
- BYTE_LENGTH - Static variable in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- byteCount - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
C
- cause - Variable in exception com.ongres.scram.common.bouncycastle.base64.DecoderException
- cause - Variable in exception com.ongres.scram.common.bouncycastle.base64.EncoderException
- cbind - Variable in class com.ongres.scram.common.gssapi.Gs2Header
- cbind - Variable in class com.ongres.scram.common.message.ClientFinalMessage
- Ch(int, int, int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- CHANNEL_BINDING - Enum constant in enum class com.ongres.scram.common.ScramAttributes
-
This REQUIRED attribute specifies the base64-encoded GS2 header and channel binding data.
- CHANNEL_BINDING_NOT_SUPPORTED - Enum constant in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- CHANNEL_BINDING_REQUIRED - Enum constant in enum class com.ongres.scram.common.gssapi.Gs2Attributes
-
Channel binding attribute.
- CHANNEL_BINDING_REQUIRED - Enum constant in enum class com.ongres.scram.common.gssapi.Gs2CbindFlag
-
Client requires channel binding.
- CHANNEL_BINDING_SUFFIX - Static variable in enum class com.ongres.scram.common.ScramMechanisms
- CHANNEL_BINDINGS_DONT_MATCH - Enum constant in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- channelBinding - Variable in class com.ongres.scram.client.ScramClient
- channelBinding - Variable in class com.ongres.scram.client.ScramClient.PreBuilder1
- channelBinding - Variable in enum class com.ongres.scram.common.ScramMechanisms
- channelBinding(ScramClient.ChannelBinding) - Static method in class com.ongres.scram.client.ScramClient
-
Selects for the client whether to use channel binding.
- ChannelBinding(Gs2CbindFlag) - Constructor for enum class com.ongres.scram.client.ScramClient.ChannelBinding
- channelBindingMechanism - Variable in class com.ongres.scram.client.ScramClient.Builder
- channelBindingMechanism - Variable in class com.ongres.scram.client.ScramClient.PreBuilder2
- charAttribute - Variable in class com.ongres.scram.common.util.AbstractCharAttributeValue
- 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.
- CipherParameters - Interface in com.ongres.scram.common.bouncycastle.pbkdf2
-
all parameter classes implement this.
- CLIENT_KEY_HMAC_KEY - Static variable in class com.ongres.scram.common.ScramFunctions
- CLIENT_NOT - Enum constant in enum class com.ongres.scram.common.gssapi.Gs2Attributes
-
Channel binding attribute.
- CLIENT_NOT - Enum constant in enum class com.ongres.scram.common.gssapi.Gs2CbindFlag
-
Client doesn't support channel binding.
- CLIENT_PROOF - Enum constant in enum class com.ongres.scram.common.ScramAttributes
-
This attribute specifies a base64-encoded ClientProof.
- CLIENT_YES_SERVER_NOT - Enum constant in enum class com.ongres.scram.common.gssapi.Gs2Attributes
-
Channel binding attribute.
- CLIENT_YES_SERVER_NOT - Enum constant in enum class com.ongres.scram.common.gssapi.Gs2CbindFlag
-
Client does support channel binding but thinks the server does not.
- clientFinalMessage() - Method in class com.ongres.scram.client.ScramSession.ClientFinalProcessor
-
Generates the SCRAM representation of the client-final-message.
- 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 - Class in com.ongres.scram.common.message
-
Constructs and parses client-final-messages.
- ClientFinalMessage(Gs2Header, 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(byte[], byte[]) - Method in class com.ongres.scram.client.ScramSession.ServerFirstProcessor
-
Generates a
ScramSession.ClientFinalProcessor
, that allows to generate the client-final-message and also receive and parse the server-first-message. - clientFinalProcessor(String) - Method in class com.ongres.scram.client.ScramSession.ServerFirstProcessor
-
Generates a
ScramSession.ClientFinalProcessor
, that allows to generate the client-final-message and also receive and parse the server-first-message. - ClientFinalProcessor(String, byte[]) - Constructor for class com.ongres.scram.client.ScramSession.ClientFinalProcessor
- ClientFinalProcessor(String, byte[], byte[]) - Constructor for class com.ongres.scram.client.ScramSession.ClientFinalProcessor
- ClientFinalProcessor(String, byte[], byte[], byte[]) - Constructor for class com.ongres.scram.client.ScramSession.ClientFinalProcessor
- ClientFinalProcessor(String, String, String, int) - Constructor for class com.ongres.scram.client.ScramSession.ClientFinalProcessor
- clientFirstMessage - Variable in class com.ongres.scram.client.ScramSession
- 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(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 - 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 - Variable in class com.ongres.scram.client.ScramSession.ClientFinalProcessor
- 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.
- clientNonce - Variable in class com.ongres.scram.common.message.ServerFirstMessage
- 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.bouncycastle.base64 - package com.ongres.scram.common.bouncycastle.base64
- com.ongres.scram.common.bouncycastle.pbkdf2 - package com.ongres.scram.common.bouncycastle.pbkdf2
- 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
- copy() - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Memoable
-
Produce a copy of this object with its configuration and in its current state.
- copy() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- copyIn(GeneralDigest) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- copyIn(SHA256Digest) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- copyOfRange(byte[], int, int) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Arrays
-
Make a copy of a range of bytes from the passed in data array.
- createSHA256() - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.DigestFactory
- 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
- CryptoUtil.SecureRandomHolder - Class in com.ongres.scram.common.util
D
- DataLengthException - Exception in com.ongres.scram.common.bouncycastle.pbkdf2
-
this exception is thrown if a buffer that is meant to have output copied into it turns out to be too short, or if we've been given insufficient input.
- DataLengthException() - Constructor for exception com.ongres.scram.common.bouncycastle.pbkdf2.DataLengthException
-
base constructor.
- DataLengthException(String) - Constructor for exception com.ongres.scram.common.bouncycastle.pbkdf2.DataLengthException
-
create a DataLengthException with the given message.
- decode(byte[]) - Static method in class com.ongres.scram.common.bouncycastle.base64.Base64
-
decode the base 64 encoded input data.
- decode(byte[], int, int, OutputStream) - Static method in class com.ongres.scram.common.bouncycastle.base64.Base64
-
Decode to an output stream;
- decode(byte[], int, int, OutputStream) - Method in class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
-
decode the base 64 encoded byte data writing it to the given output stream, whitespace characters will be ignored.
- decode(byte[], int, int, OutputStream) - Method in interface com.ongres.scram.common.bouncycastle.base64.Encoder
- decode(String) - Static method in class com.ongres.scram.common.bouncycastle.base64.Base64
-
decode the base 64 encoded String data - whitespace will be ignored.
- decode(String, OutputStream) - Static method in class com.ongres.scram.common.bouncycastle.base64.Base64
-
decode the base 64 encoded String data writing it to the given output stream, whitespace characters will be ignored.
- decode(String, OutputStream) - Method in class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
-
decode the base 64 encoded String data writing it to the given output stream, whitespace characters will be ignored.
- decode(String, OutputStream) - Method in interface com.ongres.scram.common.bouncycastle.base64.Encoder
- decodeLastBlock(OutputStream, char, char, char, char) - Method in class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
- DecoderException - Exception in com.ongres.scram.common.bouncycastle.base64
-
Exception thrown if an attempt is made to decode invalid data, or some other failure occurs.
- DecoderException(String, Throwable) - Constructor for exception com.ongres.scram.common.bouncycastle.base64.DecoderException
- decodingTable - Variable in class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
- DEFAULT_NONCE_LENGTH - Static variable in class com.ongres.scram.client.ScramClient
-
Length (in characters, bytes) of the nonce generated by default (if no nonce supplier is provided)
- digest - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- digest(byte[]) - Method in interface com.ongres.scram.common.ScramMechanism
-
Calculate a message digest, according to the algorithm of the SCRAM mechanism.
- digest(byte[]) - Method in enum class com.ongres.scram.common.ScramMechanisms
- Digest - Interface in com.ongres.scram.common.bouncycastle.pbkdf2
-
interface that a message digest conforms to.
- DIGEST_LENGTH - Static variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- DigestFactory - Class in com.ongres.scram.common.bouncycastle.pbkdf2
-
Basic factory class for message digests.
- DigestFactory() - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.DigestFactory
- digestSize - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- doFinal(byte[], int) - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Digest
-
close the digest, producing the final digest value.
- doFinal(byte[], int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- doFinal(byte[], int) - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Mac
-
Compute the final stage of the MAC writing the output to the out parameter.
- doFinal(byte[], int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- doNormalize(String) - Method in enum class com.ongres.scram.common.stringprep.StringPreparations
E
- EncodableDigest - Interface in com.ongres.scram.common.bouncycastle.pbkdf2
-
Encodable digests allow you to download an encoded copy of their internal state.
- encode(byte[]) - Static method in class com.ongres.scram.common.bouncycastle.base64.Base64
-
encode the input data producing a base 64 encoded byte array.
- encode(byte[], int, int) - Static method in class com.ongres.scram.common.bouncycastle.base64.Base64
-
encode the input data producing a base 64 encoded byte array.
- encode(byte[], int, int, OutputStream) - Static method in class com.ongres.scram.common.bouncycastle.base64.Base64
-
Encode the byte data to base 64 writing it to the given output stream.
- encode(byte[], int, int, OutputStream) - Method in class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
-
encode the input data producing a base 64 output stream.
- encode(byte[], int, int, OutputStream) - Method in interface com.ongres.scram.common.bouncycastle.base64.Encoder
- encode(byte[], OutputStream) - Static method in class com.ongres.scram.common.bouncycastle.base64.Base64
-
Encode the byte data to base 64 writing it to the given output stream.
- encoder - Static variable in class com.ongres.scram.common.bouncycastle.base64.Base64
- Encoder - Interface in com.ongres.scram.common.bouncycastle.base64
-
Encode and decode byte arrays (typically from binary to 7-bit ASCII encodings).
- EncoderException - Exception in com.ongres.scram.common.bouncycastle.base64
-
Exception thrown if an attempt is made to encode invalid data, or some other failure occurs.
- EncoderException(String, Throwable) - Constructor for exception com.ongres.scram.common.bouncycastle.base64.EncoderException
- encodingTable - Variable in class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
- error - Variable in exception com.ongres.scram.common.exception.ScramServerErrorException
- error - Variable in class com.ongres.scram.common.message.ServerFinalMessage
- Error(String) - Constructor for enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- ERROR - Enum constant in enum class com.ongres.scram.common.ScramAttributes
-
This attribute specifies an error that occurred during authentication exchange.
- errorMessage - Variable in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- EXCLUDED_CHAR - Static variable in class com.ongres.scram.common.util.CryptoUtil
- ExtendedDigest - Interface in com.ongres.scram.common.bouncycastle.pbkdf2
- EXTENSIONS_NOT_SUPPORTED - Enum constant in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
F
- F(byte[], int, byte[], byte[], int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.PKCS5S2ParametersGenerator
- finish() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- flag - Variable in enum class com.ongres.scram.common.gssapi.Gs2Attributes
- flag - Variable in enum class com.ongres.scram.common.gssapi.Gs2CbindFlag
- fromByteArray(byte[]) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Strings
-
Convert an array of 8 bit characters into a string.
- fromSaslName(String) - Static method in class com.ongres.scram.common.ScramStringFormatting
-
Given a saslName, return a non-escaped String.
G
- GeneralDigest - Class in com.ongres.scram.common.bouncycastle.pbkdf2
-
base implementation of MD4 family style digest as outlined in "Handbook of Applied Cryptography", pages 344 - 347.
- GeneralDigest() - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
-
Standard constructor
- GeneralDigest(byte[]) - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- GeneralDigest(GeneralDigest) - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
-
Copy constructor.
- generateAndCacheAuthMessage(byte[]) - Method in class com.ongres.scram.client.ScramSession.ClientFinalProcessor
- generateCBind(Gs2Header, byte[]) - Static method in class com.ongres.scram.common.message.ClientFinalMessage
- generateDerivedKey(int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.PKCS5S2ParametersGenerator
- generateDerivedParameters(int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.PBEParametersGenerator
-
generate derived parameters for a key of length keySize.
- generateDerivedParameters(int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.PKCS5S2ParametersGenerator
-
Generate a key parameter derived from the password, salt, and iteration count we are currently initialised with.
- get() - Method in interface com.ongres.scram.client.NonceSupplier
- getAlgorithmName() - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Digest
-
return the algorithm name
- getAlgorithmName() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- getAlgorithmName() - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Mac
-
Return the name of the algorithm the MAC implements.
- getAlgorithmName() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- getAuthzid() - Method in class com.ongres.scram.common.gssapi.Gs2Header
- getAuthzid() - Method in class com.ongres.scram.common.message.ClientFirstMessage
- getByErrorMessage(String) - Static method in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- getByteLength() - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.ExtendedDigest
-
Return the size in bytes of the internal buffer the digest applies it's compression function to.
- getByteLength() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- getByteLength(Digest) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- getCause() - Method in exception com.ongres.scram.common.bouncycastle.base64.DecoderException
- getCause() - Method in exception com.ongres.scram.common.bouncycastle.base64.EncoderException
- getChannelBindingFlag() - Method in class com.ongres.scram.common.gssapi.Gs2Header
- getChannelBindingFlag() - Method in class com.ongres.scram.common.message.ClientFirstMessage
- getChannelBindingName() - Method in class com.ongres.scram.common.gssapi.Gs2Header
- getChannelBindingName() - Method in class com.ongres.scram.common.message.ClientFirstMessage
- getChar() - Method in enum class com.ongres.scram.common.gssapi.Gs2Attributes
- getChar() - Method in enum class com.ongres.scram.common.gssapi.Gs2CbindFlag
- getChar() - Method in enum class com.ongres.scram.common.ScramAttributes
- getChar() - Method in class com.ongres.scram.common.util.AbstractCharAttributeValue
- getChar() - Method in interface com.ongres.scram.common.util.CharAttribute
-
Return the char used to represent this attribute
- getClientNonce() - Method in class com.ongres.scram.common.message.ServerFirstMessage
- getDigestSize() - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Digest
-
return the size, in bytes, of the digest produced by this message digest.
- getDigestSize() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- getEncodedState() - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.EncodableDigest
-
Return an encoded byte array for the digest's internal state
- getEncodedState() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- getError() - Method in exception com.ongres.scram.common.exception.ScramServerErrorException
- getError() - Method in class com.ongres.scram.common.message.ServerFinalMessage
- getErrorMessage() - Method in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- getGs2Header() - Method in class com.ongres.scram.common.message.ClientFirstMessage
- getHashAlgorithmName() - Method in enum class com.ongres.scram.common.ScramMechanisms
-
Method that returns the name of the hash algorithm.
- getHmacAlgorithmName() - Method in enum class com.ongres.scram.common.ScramMechanisms
-
Method that returns the name of the HMAC algorithm.
- getIteration() - Method in class com.ongres.scram.client.ScramSession.ServerFirstProcessor
- getIteration() - Method in class com.ongres.scram.common.message.ServerFirstMessage
- getIterationCount() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.PBEParametersGenerator
-
return the iteration count.
- getKey() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.KeyParameter
- getLength(int, int) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Arrays
- getMacSize() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- getMacSize() - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Mac
-
Return the block size for this MAC (in bytes).
- getName() - Method in interface com.ongres.scram.common.ScramMechanism
-
The name of the mechanism, which must be a value registered under IANA: SASL SCRAM Family Mechanisms
- getName() - Method in enum class com.ongres.scram.common.ScramMechanisms
- getNonce() - Method in class com.ongres.scram.common.message.ClientFirstMessage
- getNonce() - Method in class com.ongres.scram.common.message.ServerFirstMessage
- getPassword() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.PBEParametersGenerator
-
return the password byte array.
- getSalt() - Method in class com.ongres.scram.client.ScramSession.ServerFirstProcessor
- getSalt() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.PBEParametersGenerator
-
return the salt byte array.
- getSalt() - Method in class com.ongres.scram.common.message.ServerFirstMessage
- getScramMechanism() - Method in class com.ongres.scram.client.ScramClient
- getServerNonce() - Method in class com.ongres.scram.common.message.ServerFirstMessage
- getStringPreparation() - Method in class com.ongres.scram.client.ScramClient
- getUnderlyingDigest() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- getUser() - Method in class com.ongres.scram.common.message.ClientFirstMessage
- getValue() - Method in class com.ongres.scram.common.util.AbstractCharAttributeValue
- getValue() - Method in interface com.ongres.scram.common.util.CharAttributeValue
-
Returns the value associated with the
CharAttribute
- getVerifier() - Method in class com.ongres.scram.common.message.ServerFinalMessage
- Gs2Attributes - Enum Class in com.ongres.scram.common.gssapi
-
Possible values of a GS2 Attribute.
- Gs2Attributes(char) - Constructor for enum class com.ongres.scram.common.gssapi.Gs2Attributes
- Gs2AttributeValue - Class in com.ongres.scram.common.gssapi
-
Parse and write GS2 Attribute-Value pairs.
- Gs2AttributeValue(Gs2Attributes, String) - Constructor for class com.ongres.scram.common.gssapi.Gs2AttributeValue
- gs2CbindFlag - Variable in enum class com.ongres.scram.client.ScramClient.ChannelBinding
- gs2CbindFlag() - Method in enum class com.ongres.scram.client.ScramClient.ChannelBinding
- Gs2CbindFlag - Enum Class in com.ongres.scram.common.gssapi
-
Possible values of a GS2 Cbind Flag (channel binding; part of GS2 header).
- Gs2CbindFlag(char) - Constructor for enum class com.ongres.scram.common.gssapi.Gs2CbindFlag
- gs2Header - Variable in class com.ongres.scram.common.message.ClientFirstMessage
- gs2Header(Gs2CbindFlag, String, String) - Static method in class com.ongres.scram.common.message.ClientFirstMessage
- Gs2Header - Class in com.ongres.scram.common.gssapi
-
GSS Header.
- Gs2Header(Gs2CbindFlag) - Constructor for class com.ongres.scram.common.gssapi.Gs2Header
-
Construct and validates a Gs2Header with no authzid nor channel binding.
- Gs2Header(Gs2CbindFlag, String) - Constructor for class com.ongres.scram.common.gssapi.Gs2Header
-
Construct and validates a Gs2Header with no authzid.
- Gs2Header(Gs2CbindFlag, String, String) - Constructor for class com.ongres.scram.common.gssapi.Gs2Header
-
Construct and validates a Gs2Header.
- gt0(int, String) - Static method in class com.ongres.scram.common.util.Preconditions
-
Checks that the integer argument is positive.
H
- H1 - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- H2 - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- H3 - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- H4 - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- H5 - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- H6 - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- H7 - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- H8 - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- 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.
- hashAlgorithmName - Variable in enum class com.ongres.scram.common.ScramMechanisms
- hi(SecretKeyFactory, int, char[], byte[], int) - Static method in class com.ongres.scram.common.util.CryptoUtil
-
Compute the "Hi" function for SCRAM.
- hmac(byte[], byte[]) - Method in interface com.ongres.scram.common.ScramMechanism
-
Calculate the hmac of a key and a message, according to the algorithm of the SCRAM mechanism.
- hmac(byte[], byte[]) - Method in enum class com.ongres.scram.common.ScramMechanisms
- 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.
- hmac(SecretKeySpec, Mac, byte[]) - Static method in class com.ongres.scram.common.util.CryptoUtil
-
Computes the HMAC of a given message.
- hMac - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.PKCS5S2ParametersGenerator
- HMac - Class in com.ongres.scram.common.bouncycastle.pbkdf2
-
HMAC implementation based on RFC2104 H(K XOR opad, H(K XOR ipad, text))
- HMac(Digest) - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
-
Base constructor for one of the standard digest algorithms that the byteLength of the algorithm is know for.
- HMac(Digest, int) - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- hmacAlgorithmName - Variable in enum class com.ongres.scram.common.ScramMechanisms
I
- IF_SERVER_SUPPORTS_IT - Enum constant in enum class com.ongres.scram.client.ScramClient.ChannelBinding
-
Channel binding is preferred.
- ignore(char) - Method in class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
- init(byte[], byte[], int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.PBEParametersGenerator
-
initialise the PBE generator.
- init(CipherParameters) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- init(CipherParameters) - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Mac
-
Initialise the MAC.
- initialiseDecodingTable() - Method in class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
- inputPad - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- INSTANCE - Static variable in class com.ongres.scram.common.util.CryptoUtil.SecureRandomHolder
- Integers - Class in com.ongres.scram.common.bouncycastle.pbkdf2
-
Utility methods for ints.
- Integers() - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.Integers
- intToBigEndian(int, byte[], int) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Pack
- INVALID_ENCODING - Enum constant in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- INVALID_PROOF - Enum constant in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- INVALID_USERNAME_ENCODING - Enum constant in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- IPAD - Static variable in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- ipadState - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- isChannelBinding() - Method in class com.ongres.scram.common.message.ClientFirstMessage
- isError() - Method in class com.ongres.scram.common.message.ServerFinalMessage
-
Whether this server-final-message contains an error
- iteration - Variable in class com.ongres.scram.common.message.ServerFirstMessage
- ITERATION - Enum constant in enum class com.ongres.scram.common.ScramAttributes
-
This attribute specifies an iteration count for the selected hash function and user.
- ITERATION_MIN_VALUE - Static variable in class com.ongres.scram.common.message.ServerFirstMessage
-
Minimum allowed value for the iteration, as per the RFC.
- iterationCount - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.PBEParametersGenerator
K
- K - Static variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- key - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.KeyParameter
- keyLength - Variable in enum class com.ongres.scram.common.ScramMechanisms
- KeyParameter - Class in com.ongres.scram.common.bouncycastle.pbkdf2
- KeyParameter(byte[]) - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.KeyParameter
- KeyParameter(byte[], int, int) - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.KeyParameter
L
- littleEndianToShort(byte[], int) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Pack
- longToBigEndian(long[]) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Pack
- longToBigEndian(long[], byte[], int) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Pack
- longToBigEndian(long, byte[], int) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Pack
M
- Mac - Interface in com.ongres.scram.common.bouncycastle.pbkdf2
-
The base interface for implementations of message authentication codes (MACs).
- Maj(int, int, int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- MAX_ASCII_PRINTABLE_RANGE - Static variable in class com.ongres.scram.common.util.CryptoUtil
- mechanismName - Variable in enum class com.ongres.scram.common.ScramMechanisms
- Memoable - Interface in com.ongres.scram.common.bouncycastle.pbkdf2
-
Interface for Memoable objects.
- MIN_ASCII_PRINTABLE_RANGE - Static variable in class com.ongres.scram.common.util.CryptoUtil
N
- nextI(byte[], int, int) - Method in class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
- nextI(String, int, int) - Method in class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
- NO - Enum constant in enum class com.ongres.scram.client.ScramClient.ChannelBinding
-
Don't use channel binding.
- NO_PREPARATION - Enum constant in enum class com.ongres.scram.common.stringprep.StringPreparations
-
Implementation of StringPreparation that performs no preparation.
- NO_RESOURCES - Enum constant in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- nonce - Variable in class com.ongres.scram.client.ScramSession.ClientFinalProcessor
- nonce - Variable in class com.ongres.scram.client.ScramSession
- nonce - Variable in class com.ongres.scram.common.message.ClientFinalMessage
- nonce - Variable in class com.ongres.scram.common.message.ClientFirstMessage
- nonce(int) - Static method in class com.ongres.scram.common.util.CryptoUtil
-
Generates a random string (called a 'nonce'), composed of ASCII printable characters, except comma (',').
- nonce(int, SecureRandom) - Static method in class com.ongres.scram.common.util.CryptoUtil
-
Generates a random string (called a 'nonce'), composed of ASCII printable characters, except comma (',').
- NONCE - Enum constant in enum class com.ongres.scram.common.ScramAttributes
-
This attribute specifies a sequence of random printable ASCII characters excluding ',' (which forms the nonce used as input to the hash function).
- nonceLength - Variable in class com.ongres.scram.client.ScramClient.Builder
- nonceLength(int) - Method in class com.ongres.scram.client.ScramClient.Builder
-
Sets a non-default (
ScramClient.DEFAULT_NONCE_LENGTH
) length for the nonce generation, if no alternate nonceSupplier is provided viaScramClient.Builder.nonceSupplier(NonceSupplier)
. - nonceSupplier - Variable in class com.ongres.scram.client.ScramClient.Builder
- nonceSupplier - Variable in class com.ongres.scram.client.ScramClient
- nonceSupplier(NonceSupplier) - Method in class com.ongres.scram.client.ScramClient.Builder
-
Optional call.
- NonceSupplier - Interface in com.ongres.scram.client
- nonChannelBindingMechanism - Variable in class com.ongres.scram.client.ScramClient.Builder
- nonChannelBindingMechanism - Variable in class com.ongres.scram.client.ScramClient.PreBuilder2
- normalize(String) - Method in interface com.ongres.scram.common.stringprep.StringPreparation
-
Normalize a UTF-8 String according to this String Preparation rules.
- normalize(String) - Method in enum class com.ongres.scram.common.stringprep.StringPreparations
O
- OPAD - Static variable in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- opadState - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- OTHER_ERROR - Enum constant in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- outputBuf - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
P
- Pack - Class in com.ongres.scram.common.bouncycastle.pbkdf2
-
Utility methods for converting byte arrays into ints and longs, and back again.
- Pack() - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.Pack
- padding - Variable in class com.ongres.scram.common.bouncycastle.base64.Base64Encoder
- parse(String) - Static method in class com.ongres.scram.common.gssapi.Gs2AttributeValue
-
Parses a potential Gs2AttributeValue String.
- parse(String) - Static method in class com.ongres.scram.common.ScramAttributeValue
-
Parses a potential ScramAttributeValue String.
- parseFrom(String) - Static method in class com.ongres.scram.common.gssapi.Gs2Header
-
Read a Gs2Header from a String.
- parseFrom(String) - Static method in class com.ongres.scram.common.message.ClientFirstMessage
-
Construct a
ClientFirstMessage
instance from a message (String) - parseFrom(String) - Static method in class com.ongres.scram.common.message.ServerFinalMessage
-
Parses a server-final-message from a String.
- parseFrom(String) - Static method in class com.ongres.scram.common.util.StringWritableCsv
-
Parse a String with a
StringWritableCsv
into its composing Strings represented as Strings. - parseFrom(String, int) - Static method in class com.ongres.scram.common.util.StringWritableCsv
-
Parse a String with a
StringWritableCsv
into its composing Strings represented as Strings. - parseFrom(String, int, int) - Static method in class com.ongres.scram.common.util.StringWritableCsv
-
Parse a String with a
StringWritableCsv
into its composing Strings represented as Strings. - parseFrom(String, String) - Static method in class com.ongres.scram.common.message.ServerFirstMessage
-
Parses a server-first-message from a String.
- password - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.PBEParametersGenerator
- PBEParametersGenerator - Class in com.ongres.scram.common.bouncycastle.pbkdf2
-
super class for all Password Based Encryption (PBE) parameter generator classes.
- PBEParametersGenerator() - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.PBEParametersGenerator
-
base constructor.
- PBKDF2_PREFIX_ALGORITHM_NAME - Static variable in enum class com.ongres.scram.common.ScramMechanisms
- PKCS5PasswordToUTF8Bytes(char[]) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.PBEParametersGenerator
-
converts a password to a byte array according to the scheme in PKCS5 (UTF-8, no padding)
- PKCS5S2ParametersGenerator - Class in com.ongres.scram.common.bouncycastle.pbkdf2
-
Generator for PBE derived keys and ivs as defined by PKCS 5 V2.0 Scheme 2.
- PKCS5S2ParametersGenerator(Digest) - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.PKCS5S2ParametersGenerator
- populateState(byte[]) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- PreBuilder1(ScramClient.ChannelBinding) - Constructor for class com.ongres.scram.client.ScramClient.PreBuilder1
- PreBuilder2(ScramClient.ChannelBinding, StringPreparation) - Constructor for class com.ongres.scram.client.ScramClient.PreBuilder2
- Preconditions - Class in com.ongres.scram.common.util
-
Simple methods similar to Precondition class.
- Preconditions() - Constructor for class com.ongres.scram.common.util.Preconditions
- priority - Variable in enum class com.ongres.scram.common.ScramMechanisms
- processBlock() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- processBlock() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- processLength(long) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- processLength(long) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- processWord(byte[], int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- processWord(byte[], int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- proof - Variable in class com.ongres.scram.common.message.ClientFinalMessage
R
- receiveServerFinalMessage(String) - Method in class com.ongres.scram.client.ScramSession.ClientFinalProcessor
-
Receive and process the server-final-message.
- receiveServerFirstMessage(String) - Method in class com.ongres.scram.client.ScramSession
-
Constructs a handler for the server-first-message, from its String representation.
- reset() - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Digest
-
reset the digest back to it's initial state.
- reset() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- reset() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
-
Reset the mac generator.
- reset() - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Mac
-
Reset the MAC.
- reset() - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
-
reset the chaining variables
- reset(Memoable) - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Memoable
-
Restore a copied object state into this object.
- reset(Memoable) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- REVERSE_MAPPING - Static variable in enum class com.ongres.scram.common.ScramAttributes
- RuntimeCryptoException - Exception in com.ongres.scram.common.bouncycastle.pbkdf2
-
the foundation class for the exceptions thrown by the crypto packages.
- RuntimeCryptoException() - Constructor for exception com.ongres.scram.common.bouncycastle.pbkdf2.RuntimeCryptoException
-
base constructor.
- RuntimeCryptoException(String) - Constructor for exception com.ongres.scram.common.bouncycastle.pbkdf2.RuntimeCryptoException
-
create a RuntimeCryptoException with the given message.
S
- salt - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.PBEParametersGenerator
- salt - Variable in class com.ongres.scram.common.message.ServerFirstMessage
- SALT - Enum constant in enum class 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.
- saltedPassword(StringPreparation, String, byte[], int) - Method in interface com.ongres.scram.common.ScramMechanism
-
Compute the salted password
- saltedPassword(StringPreparation, String, byte[], int) - Method in enum class com.ongres.scram.common.ScramMechanisms
- SASL_PREPARATION - Enum constant in enum class com.ongres.scram.common.stringprep.StringPreparations
-
Implementation of StringPreparation that performs preparation.
- SCRAM_MECHANISM_NAME_PREFIX - Static variable in enum class com.ongres.scram.common.ScramMechanisms
- SCRAM_SHA_1 - Enum constant in enum class com.ongres.scram.common.ScramMechanisms
- SCRAM_SHA_1_PLUS - Enum constant in enum class com.ongres.scram.common.ScramMechanisms
- SCRAM_SHA_256 - Enum constant in enum class com.ongres.scram.common.ScramMechanisms
- SCRAM_SHA_256_PLUS - Enum constant in enum class com.ongres.scram.common.ScramMechanisms
- ScramAttributes - Enum Class in com.ongres.scram.common
-
SCRAM Attributes as defined in Section 5.1 of the RFC.
- ScramAttributes(char) - Constructor for enum class com.ongres.scram.common.ScramAttributes
- 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
-
A class that can be parametrized to generate
ScramSession
s. - ScramClient(ScramClient.ChannelBinding, StringPreparation, ScramMechanism, ScramMechanism, SecureRandom, NonceSupplier) - Constructor for class com.ongres.scram.client.ScramClient
- ScramClient.Builder - Class in com.ongres.scram.client
-
This class is not meant to be used directly.
- ScramClient.ChannelBinding - Enum Class 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 - Variable in class com.ongres.scram.client.ScramClient
- scramMechanism - Variable in class com.ongres.scram.client.ScramSession
- ScramMechanism - Interface in com.ongres.scram.common
-
Definition of the functionality to be provided by every ScramMechanism.
- ScramMechanisms - Enum Class in com.ongres.scram.common
-
SCRAM Mechanisms supported by this library.
- ScramMechanisms(String, String, int, String, boolean, int) - Constructor for enum class com.ongres.scram.common.ScramMechanisms
- 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
- secureRandom - Variable in class com.ongres.scram.client.ScramClient.Builder
- secureRandom - Variable in class com.ongres.scram.client.ScramClient
- secureRandomAlgorithmProvider(String, String) - Method in class com.ongres.scram.client.ScramClient.Builder
-
Optional call.
- SecureRandomHolder() - Constructor for class com.ongres.scram.common.util.CryptoUtil.SecureRandomHolder
- selectClientMechanism(ScramMechanism) - Method in class com.ongres.scram.client.ScramClient.PreBuilder2
-
Select a fixed client mechanism.
- selectMatchingMechanism(boolean, String...) - Static method in enum class 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.
- SERVER_DOES_SUPPORT_CHANNEL_BINDING - Enum constant in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- SERVER_KEY_HMAC_KEY - Static variable in class com.ongres.scram.common.ScramFunctions
- SERVER_SIGNATURE - Enum constant in enum class 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 Class in com.ongres.scram.common.message
-
Possible error messages sent on a server-final-message.
- serverFirstMessage - Variable in class com.ongres.scram.client.ScramSession.ServerFirstProcessor
- 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.
- serverFirstMessageString - Variable in class com.ongres.scram.client.ScramSession
- ServerFirstProcessor(String) - Constructor for class com.ongres.scram.client.ScramSession.ServerFirstProcessor
- serverKey - Variable in class com.ongres.scram.client.ScramSession.ClientFinalProcessor
- 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.
- serverNonce - Variable in class com.ongres.scram.common.message.ServerFirstMessage
- serverSignature(ScramMechanism, byte[], String) - Static method in class com.ongres.scram.common.ScramFunctions
-
Compute the SCRAM server signature.
- setAndReturnClientFirstMessage(ClientFirstMessage) - Method in class com.ongres.scram.client.ScramSession
- 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.
- SHA256Digest - Class in com.ongres.scram.common.bouncycastle.pbkdf2
-
FIPS 180-2 implementation of SHA-256.
- SHA256Digest() - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
-
Standard constructor
- SHA256Digest(byte[]) - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
-
State constructor - create a digest initialised with the state of a previous one.
- SHA256Digest(SHA256Digest) - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
-
Copy constructor.
- state - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.PKCS5S2ParametersGenerator
- storedKey - Variable in class com.ongres.scram.client.ScramSession.ClientFinalProcessor
- storedKey(ScramMechanism, byte[]) - Static method in class com.ongres.scram.common.ScramFunctions
-
Generates a stored key, from the salted password.
- stringPreparation - Variable in class com.ongres.scram.client.ScramClient.PreBuilder2
- stringPreparation - Variable in class com.ongres.scram.client.ScramClient
- stringPreparation - Variable in class com.ongres.scram.client.ScramSession
- stringPreparation(StringPreparation) - Method in class com.ongres.scram.client.ScramClient.PreBuilder1
-
Selects the string preparation algorithm to use by the client.
- StringPreparation - Interface in com.ongres.scram.common.stringprep
-
Interface for all possible String Preparations mechanisms.
- StringPreparations - Enum Class in com.ongres.scram.common.stringprep
- StringPreparations() - Constructor for enum class com.ongres.scram.common.stringprep.StringPreparations
- Strings - Class in com.ongres.scram.common.bouncycastle.pbkdf2
-
String utilities.
- Strings() - Constructor for class com.ongres.scram.common.bouncycastle.pbkdf2.Strings
- 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
-
Helper class to generate Comma Separated Values of
StringWritable
s - StringWritableCsv() - Constructor for class com.ongres.scram.common.util.StringWritableCsv
- Sum0(int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- Sum1(int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- 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 class com.ongres.scram.common.ScramMechanisms
T
- Theta0(int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- Theta1(int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- toBase64String(byte[]) - Static method in class com.ongres.scram.common.bouncycastle.base64.Base64
- toBase64String(byte[], int, int) - Static method in class com.ongres.scram.common.bouncycastle.base64.Base64
- toPrintable(String) - Static method in class com.ongres.scram.common.util.UsAsciiUtils
-
Removes non-printable characters from the US-ASCII String.
- toSaslName(String) - Static method in class com.ongres.scram.common.ScramStringFormatting
-
Given a value-safe-char (normalized UTF-8 String), return one where characters ',' and '=' are represented by '=2C' or '=3D', respectively.
- toString() - Method in class com.ongres.scram.common.message.ClientFinalMessage
- toString() - Method in class com.ongres.scram.common.message.ClientFirstMessage
- toString() - Method in class com.ongres.scram.common.message.ServerFinalMessage
- toString() - Method in class com.ongres.scram.common.message.ServerFirstMessage
- toString() - Method in class com.ongres.scram.common.util.AbstractStringWritable
- toString(ServerFinalMessage.Error) - Static method in exception com.ongres.scram.common.exception.ScramServerErrorException
- toUTF8ByteArray(char[]) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Strings
- toUTF8ByteArray(char[], OutputStream) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Strings
U
- UNKNOWN_USER - Enum constant in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- UNSUPPORTED_CHANNEL_BINDING_TYPE - Enum constant in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- update(byte) - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Digest
-
update the message digest with a single byte.
- update(byte) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- update(byte) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- update(byte) - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Mac
-
add a single byte to the mac for processing.
- update(byte[], int, int) - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Digest
-
update the message digest with a block of bytes.
- update(byte[], int, int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- update(byte[], int, int) - Method in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
- update(byte[], int, int) - Method in interface com.ongres.scram.common.bouncycastle.pbkdf2.Mac
- UsAsciiUtils - Class in com.ongres.scram.common.util
- UsAsciiUtils() - Constructor for class com.ongres.scram.common.util.UsAsciiUtils
- user - Variable in class com.ongres.scram.client.ScramSession
- user - Variable in class com.ongres.scram.common.message.ClientFirstMessage
- USERNAME - Enum constant in enum class com.ongres.scram.common.ScramAttributes
-
This attribute specifies the name of the user whose password is used for authentication (a.k.a.
V
- value - Variable in class com.ongres.scram.common.util.AbstractCharAttributeValue
- valueOf(int) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.Integers
- valueOf(String) - Static method in enum class com.ongres.scram.client.ScramClient.ChannelBinding
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ongres.scram.common.gssapi.Gs2Attributes
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ongres.scram.common.gssapi.Gs2CbindFlag
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ongres.scram.common.ScramAttributes
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ongres.scram.common.ScramMechanisms
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.ongres.scram.common.stringprep.StringPreparations
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.ongres.scram.client.ScramClient.ChannelBinding
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ongres.scram.common.gssapi.Gs2Attributes
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ongres.scram.common.gssapi.Gs2CbindFlag
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ongres.scram.common.ScramAttributes
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ongres.scram.common.ScramMechanisms
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.ongres.scram.common.stringprep.StringPreparations
-
Returns an array containing the constants of this enum class, in the order they are declared.
- valuesAsMap() - Static method in enum class com.ongres.scram.common.message.ServerFinalMessage.Error
- valuesAsMap() - Static method in enum class com.ongres.scram.common.ScramMechanisms
- verifier - Variable in class com.ongres.scram.common.message.ServerFinalMessage
- 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.
W
- writeStringWritableToStringBuffer(StringWritable, StringBuffer) - Static method in class com.ongres.scram.common.util.StringWritableCsv
- writeTo(StringBuffer) - Method in class com.ongres.scram.common.gssapi.Gs2Header
- writeTo(StringBuffer) - Method in class com.ongres.scram.common.message.ClientFinalMessage
- writeTo(StringBuffer) - Method in class com.ongres.scram.common.message.ClientFirstMessage
- writeTo(StringBuffer) - Method in class com.ongres.scram.common.message.ServerFinalMessage
- writeTo(StringBuffer) - Method in class com.ongres.scram.common.message.ServerFirstMessage
- writeTo(StringBuffer) - Method in class com.ongres.scram.common.util.AbstractCharAttributeValue
- writeTo(StringBuffer) - Method in interface com.ongres.scram.common.util.StringWritable
-
Write the class information to the given StringBuffer.
- writeTo(StringBuffer, Gs2Attributes, String) - Static method in class com.ongres.scram.common.gssapi.Gs2AttributeValue
- writeTo(StringBuffer, ScramAttributes, String) - Static method in class com.ongres.scram.common.ScramAttributeValue
- writeTo(StringBuffer, StringWritable...) - Static method in class com.ongres.scram.common.util.StringWritableCsv
-
Write a sequence of
StringWritableCsv
s to a StringBuffer. - writeToWithoutGs2Header(StringBuffer) - Method in class com.ongres.scram.common.message.ClientFirstMessage
-
Limited version of the
Object.toString()
method, that doesn't write the GS2 header. - writeToWithoutProof(Gs2Header, byte[], String) - Static method in class com.ongres.scram.common.message.ClientFinalMessage
-
Returns a StringBuffer filled in with the formatted output of a client-first-message without the proof value.
- writeToWithoutProof(StringBuffer, Gs2Header, byte[], String) - Static method in class com.ongres.scram.common.message.ClientFinalMessage
- writeToWithoutProof(StringBuffer, String, String) - Static method in class com.ongres.scram.common.message.ClientFinalMessage
X
- X - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- xBuf - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- xBufOff - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.GeneralDigest
- xOff - Variable in class com.ongres.scram.common.bouncycastle.pbkdf2.SHA256Digest
- xor(byte[], byte[]) - Static method in class com.ongres.scram.common.util.CryptoUtil
-
Computes a byte-by-byte xor operation.
- xorPad(byte[], int, byte) - Static method in class com.ongres.scram.common.bouncycastle.pbkdf2.HMac
Y
- YES - Enum constant in enum class com.ongres.scram.client.ScramClient.ChannelBinding
-
Force use of channel binding.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form