Package org.apache.kafka.clients.admin
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.
- 
Field SummaryFields inherited from class org.apache.kafka.clients.admin.UserScramCredentialAlterationuser
- 
Constructor SummaryConstructorsConstructorDescriptionUserScramCredentialUpsertion(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 salt
- 
Method SummaryMethods inherited from class org.apache.kafka.clients.admin.UserScramCredentialAlterationuser
- 
Constructor Details- 
UserScramCredentialUpsertionpublic 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/inserted
- credentialInfo- the mechanism and iterations to be used
- password- the password
 
- 
UserScramCredentialUpsertionpublic 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/inserted
- credentialInfo- the mechanism and iterations to be used
- password- the password
 
- 
UserScramCredentialUpsertionpublic 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/inserted
- credentialInfo- the mechanism and iterations to be used
- password- the password
- salt- the salt to be used
 
 
- 
- 
Method Details- 
credentialInfo- Returns:
- the mechanism and iterations
 
- 
saltpublic byte[] salt()- Returns:
- the salt
 
- 
passwordpublic byte[] password()- Returns:
- the password
 
 
-