public class UserScramCredentialUpsertion extends UserScramCredentialAlteration
Constructor and Description |
---|
UserScramCredentialUpsertion(String user,
ScramCredentialInfo credentialInfo,
byte[] password)
Constructor that generates a random salt
|
UserScramCredentialUpsertion(String user,
ScramCredentialInfo credentialInfo,
byte[] password,
byte[] salt)
Constructor that accepts an explicit salt
|
UserScramCredentialUpsertion(String user,
ScramCredentialInfo credentialInfo,
String password)
Constructor that generates a random salt
|
Modifier and Type | Method and Description |
---|---|
ScramCredentialInfo |
credentialInfo() |
byte[] |
password() |
byte[] |
salt() |
user
public UserScramCredentialUpsertion(String user, ScramCredentialInfo credentialInfo, String password)
user
- the user for which the credential is to be updated/insertedcredentialInfo
- the mechanism and iterations to be usedpassword
- the passwordpublic UserScramCredentialUpsertion(String user, ScramCredentialInfo credentialInfo, byte[] password)
user
- the user for which the credential is to be updated/insertedcredentialInfo
- the mechanism and iterations to be usedpassword
- the passwordpublic UserScramCredentialUpsertion(String user, ScramCredentialInfo credentialInfo, byte[] password, byte[] salt)
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 usedpublic ScramCredentialInfo credentialInfo()
public byte[] salt()
public byte[] password()