Package org.ldaptive.transport
Class ScramSaslClient.ClientFirstMessage
java.lang.Object
org.ldaptive.transport.ScramSaslClient.ClientFirstMessage
- Enclosing class:
ScramSaslClient
Properties associated with the client first message.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientFirstMessage
(String username, byte[] nonce) Creates a new client first message. -
Method Summary
-
Field Details
-
GS2_NO_CHANNEL_BINDING
GS2 header for no channel binding.- See Also:
-
DEFAULT_NONCE_SIZE
private static final int DEFAULT_NONCE_SIZEDefault nonce size.- See Also:
-
clientUsername
Username to authenticate. -
clientNonce
Protocol nonce. -
message
Message produced from the username and nonce.
-
-
Constructor Details
-
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
-
-
Method Details
-
getNonce
-
getMessage
-
encode
Encodes this message to send to the server. This methods prepends the message with a GS2 header indicating that no channel binding is supported.- Returns:
- encoded message
-