Class UserScramCredentialUpsertion
java.lang.Object
org.apache.kafka.clients.admin.UserScramCredentialAlteration
org.apache.kafka.clients.admin.UserScramCredentialUpsertion
A request to update/insert a SASL/SCRAM credential for a user.
- See Also:
Constructor Summary
ConstructorsConstructorDescriptionUserScramCredentialUpsertion(String user, ScramCredentialInfo credentialInfo, byte[] password) Constructor that generates a random saltUserScramCredentialUpsertion(String user, ScramCredentialInfo credentialInfo, byte[] password, byte[] salt) Constructor that accepts an explicit saltUserScramCredentialUpsertion(String user, ScramCredentialInfo credentialInfo, String password) Constructor that generates a random saltMethod Summary
Methods inherited from class org.apache.kafka.clients.admin.UserScramCredentialAlteration
user
Constructor Details
UserScramCredentialUpsertion
public UserScramCredentialUpsertion(String user, ScramCredentialInfo credentialInfo, String password) Constructor that generates a random salt- Parameters:
user- the user for which the credential is to be updated/insertedcredentialInfo- the mechanism and iterations to be usedpassword- the password
UserScramCredentialUpsertion
public UserScramCredentialUpsertion(String user, ScramCredentialInfo credentialInfo, byte[] password) Constructor that generates a random salt- Parameters:
user- the user for which the credential is to be updated/insertedcredentialInfo- the mechanism and iterations to be usedpassword- the password
UserScramCredentialUpsertion
public UserScramCredentialUpsertion(String user, ScramCredentialInfo credentialInfo, byte[] password, byte[] salt) Constructor that accepts an explicit salt- Parameters:
user- the user for which the credential is to be updated/insertedcredentialInfo- the mechanism and iterations to be usedpassword- the passwordsalt- the salt to be used
Method Details
credentialInfo
- Returns:
- the mechanism and iterations
salt
public byte[] salt()- Returns:
- the salt
password
public byte[] password()- Returns:
- the password