Package org.ldaptive.transport
Class ScramSaslClient.ClientFirstMessage
- java.lang.Object
-
- org.ldaptive.transport.ScramSaslClient.ClientFirstMessage
-
- Enclosing class:
- ScramSaslClient
static class ScramSaslClient.ClientFirstMessage extends Object
Properties associated with the client first message.
-
-
Field Summary
Fields Modifier and Type Field Description private StringclientNonceProtocol nonce.private StringclientUsernameUsername to authenticate.private static intDEFAULT_NONCE_SIZEDefault nonce size.private static StringGS2_NO_CHANNEL_BINDINGGS2 header for no channel binding.private StringmessageMessage produced from the username and nonce.
-
Constructor Summary
Constructors Constructor Description ClientFirstMessage(String username, byte[] nonce)Creates a new client first message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringencode()Encodes this message to send to the server.StringgetMessage()StringgetNonce()
-
-
-
Field Detail
-
GS2_NO_CHANNEL_BINDING
private static final String GS2_NO_CHANNEL_BINDING
GS2 header for no channel binding.- See Also:
- Constant Field Values
-
DEFAULT_NONCE_SIZE
private static final int DEFAULT_NONCE_SIZE
Default nonce size.- See Also:
- Constant Field Values
-
clientUsername
private final String clientUsername
Username to authenticate.
-
clientNonce
private final String clientNonce
Protocol nonce.
-
message
private final String message
Message produced from the username and nonce.
-
-
Constructor Detail
-
ClientFirstMessage
ClientFirstMessage(String username, byte[] nonce)
Creates a new client first message. If nonce is null a random is created for this client.- Parameters:
username- to authenticatenonce- to supply to the server or null
-
-