Class UserScramCredentialsDescription

java.lang.Object
org.apache.kafka.clients.admin.UserScramCredentialsDescription

public class UserScramCredentialsDescription
extends Object
Representation of all SASL/SCRAM credentials associated with a user that can be retrieved, or an exception indicating why credentials could not be retrieved.
See Also:
KIP-554: Add Broker-side SCRAM Config API
  • Constructor Details

    • UserScramCredentialsDescription

      public UserScramCredentialsDescription​(String name, List<ScramCredentialInfo> credentialInfos)
      Parameters:
      name - the required user name
      credentialInfos - the required SASL/SCRAM credential representations for the user
  • Method Details

    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • name

      public String name()
      Returns:
      the user name
    • credentialInfos

      public List<ScramCredentialInfo> credentialInfos()
      Returns:
      the always non-null/unmodifiable list of SASL/SCRAM credential representations for the user