Package com.ongres.scram.client
Interface ScramClient.PasswordBuildStage
- All Known Implementing Classes:
ScramClient.Builder
- Enclosing class:
ScramClient
public static interface ScramClient.PasswordBuildStage
Builder stage for the password (or a ClientKey/ServerKey, or SaltedPassword).
-
Method Summary
Modifier and TypeMethodDescriptionclientAndServerKey
(byte @NotNull [] clientKey, byte @NotNull [] serverKey) Sets the ClientKey/ServerKey.password
(char @NotNull [] password) Sets the password.saltedPassword
(byte @NotNull [] saltedPassword) Sets the SaltedPassword.
-
Method Details
-
password
Sets the password.- Parameters:
password
- the required password- Returns:
this
builder for use in a chained invocation
-
saltedPassword
Sets the SaltedPassword.- Parameters:
saltedPassword
- the required SaltedPassword- Returns:
this
builder for use in a chained invocation
-
clientAndServerKey
ScramClient.FinalBuildStage clientAndServerKey(byte @NotNull [] clientKey, byte @NotNull [] serverKey) Sets the ClientKey/ServerKey.- Parameters:
clientKey
- the required ClientKeyserverKey
- the required ServerKey- Returns:
this
builder for use in a chained invocation
-