public static interface ScramClient.FinalBuildStage
| Modifier and Type | Method and Description |
|---|---|
ScramClient.FinalBuildStage |
authzid(@NotNull String authzid)
Sets the authzid.
|
ScramClient |
build()
Returns the fully contructed ScramClient ready to start the message flow with the server.
|
ScramClient.FinalBuildStage |
channelBinding(@Nullable String cbindType,
byte[] cbindData)
If the client supports channel binding negotiation, this method sets the type and data used
for channel binding.
|
ScramClient.FinalBuildStage |
nonceLength(int length)
Sets a non-default length for the nonce generation.
|
ScramClient.FinalBuildStage |
nonceSupplier(@NotNull Supplier<String> nonceSupplier)
The client will use a default nonce generator, unless an external one is provided by this
method.
|
ScramClient.FinalBuildStage |
secureRandomAlgorithmProvider(@NotNull String algorithm,
@Nullable String provider)
Selects a non-default SecureRandom instance, based on the given algorithm and optionally
provider.
|
ScramClient.FinalBuildStage |
stringPreparation(@NotNull StringPreparation stringPreparation)
Sets the StringPreparation, is recommended to leave the default SASL_PREPARATION.
|
ScramClient.FinalBuildStage channelBinding(@Nullable @Nullable String cbindType, byte[] cbindData)
cbindType - channel bynding type namecbindData - channel binding datathis builder for use in a chained invocationScramClient.FinalBuildStage stringPreparation(@NotNull @NotNull StringPreparation stringPreparation)
stringPreparation - type of string preparation normalizationthis builder for use in a chained invocationScramClient.FinalBuildStage authzid(@NotNull @NotNull String authzid)
authzid - the optional authorization idthis builder for use in a chained invocationScramClient.FinalBuildStage nonceLength(int length)
The default value is 24. This call overwrites the length used for the client nonce.
length - The length of the nonce. Must be positive and greater than 0this builder for use in a chained invocationIllegalArgumentException - If length is less than 1ScramClient.FinalBuildStage nonceSupplier(@NotNull @NotNull Supplier<String> nonceSupplier)
nonceSupplier - A supplier of valid nonce Strings. Please note that according to the SCRAM RFC only ASCII
printable characters (except the comma, ',') are permitted on a nonce. Length is not
limited.this builder for use in a chained invocationIllegalArgumentException - If nonceSupplier is nullScramClient.FinalBuildStage secureRandomAlgorithmProvider(@NotNull @NotNull String algorithm, @Nullable @Nullable String provider)
SecureRandom class.algorithm - The name of the algorithm to useprovider - The name of the provider of SecureRandom. Might be nullthis builder for use in a chained invocationIllegalArgumentException - If algorithm is null, or either the algorithm or provider
are not supportedScramClient build()
IllegalArgumentException - if any parameter set is invalidCopyright © 2017–2025 OnGres, Inc. All rights reserved.