Package org.ldaptive.transport
Class ScramSaslClient.ClientFinalMessage
- java.lang.Object
-
- org.ldaptive.transport.ScramSaslClient.ClientFinalMessage
-
- Enclosing class:
- ScramSaslClient
static class ScramSaslClient.ClientFinalMessage extends Object
Properties associated with the final client message.
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]
CLIENT_KEY_INIT
Bytes for the client key hmac.private static String
GS2_NO_CHANNEL_BINDING
GS2 header for no channel binding.private static byte[]
INTEGER_ONE
4-octet encoding of the integer 1.private Mechanism
mechanism
Scram SASL mechanism.private String
message
Client first message plus the server first message plus the withoutProof string.private byte[]
saltedPassword
Computed password using the server salt and iterations.private String
withoutProof
Channel binding attribute plus the combined nonce.
-
Constructor Summary
Constructors Constructor Description ClientFinalMessage(Mechanism mech, String password, ScramSaslClient.ClientFirstMessage clientFirstMessage, ScramSaslClient.ServerFirstMessage serverFirstMessage)
Creates a new client final message.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static byte[]
createSaltedPassword(String algorithm, String password, byte[] salt, int iterations)
Computes a salted password.String
encode()
Encodes this message to send to the server.String
getMessage()
byte[]
getSaltedPassword()
-
-
-
Field Detail
-
GS2_NO_CHANNEL_BINDING
private static final String GS2_NO_CHANNEL_BINDING
GS2 header for no channel binding.
-
INTEGER_ONE
private static final byte[] INTEGER_ONE
4-octet encoding of the integer 1.
-
CLIENT_KEY_INIT
private static final byte[] CLIENT_KEY_INIT
Bytes for the client key hmac.
-
mechanism
private final Mechanism mechanism
Scram SASL mechanism.
-
withoutProof
private final String withoutProof
Channel binding attribute plus the combined nonce.
-
message
private final String message
Client first message plus the server first message plus the withoutProof string.
-
saltedPassword
private final byte[] saltedPassword
Computed password using the server salt and iterations.
-
-
Constructor Detail
-
ClientFinalMessage
ClientFinalMessage(Mechanism mech, String password, ScramSaslClient.ClientFirstMessage clientFirstMessage, ScramSaslClient.ServerFirstMessage serverFirstMessage)
Creates a new client final message.- Parameters:
mech
- scram mechanismpassword
- to authenticate the user withclientFirstMessage
- first message sent to the serverserverFirstMessage
- first response from the server
-
-