Class DefaultSaslClientRequest

    • Constructor Detail

      • DefaultSaslClientRequest

        public DefaultSaslClientRequest()
    • Method Detail

      • getMechanism

        public abstract Mechanism getMechanism()
        Returns the SASL mechanism.
        Returns:
        SASL mechanism
      • getAuthorizationID

        public String getAuthorizationID()
        Returns the SASL authorization.
        Returns:
        SASL authorization
      • getSaslProperties

        public Map<String,​?> getSaslProperties()
        Returns the SASL properties.
        Returns:
        SASL properties
      • getSaslClient

        public SaslClient getSaslClient()
        Returns the SASL client to use for this request.
        Returns:
        SASL client
      • createProperties

        public static Map<String,​Object> createProperties​(SaslConfig config)
        Creates SASL client properties from the supplied configuration.
        Parameters:
        config - SASL config
        Returns:
        client properties
      • createBindRequest

        public SaslBindRequest createBindRequest​(byte[] saslCredentials)
        Creates a new bind request for this client.
        Parameters:
        saslCredentials - to bind with
        Returns:
        SASL bind request