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 Details

    • GS2_NO_CHANNEL_BINDING

      private static final String GS2_NO_CHANNEL_BINDING
      GS2 header for no channel binding.
      See Also:
    • DEFAULT_NONCE_SIZE

      private static final int DEFAULT_NONCE_SIZE
      Default nonce size.
      See Also:
    • 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 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 authenticate
      nonce - to supply to the server or null
  • Method Details

    • getNonce

      public String getNonce()
    • getMessage

      public String getMessage()
    • encode

      public String 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