public static class ScramClient.PreBuilder2 extends ScramClient.PreBuilder1
ScramClient.channelBinding(ChannelBinding).{#stringPreparation(StringPreparation)} instead.| Modifier and Type | Field and Description |
|---|---|
protected Optional<ScramMechanism> |
channelBindingMechanism |
protected Optional<ScramMechanism> |
nonChannelBindingMechanism |
protected StringPreparation |
stringPreparation |
channelBinding| Modifier and Type | Method and Description |
|---|---|
ScramClient.Builder |
selectClientMechanism(ScramMechanism scramMechanism)
Select a fixed client mechanism.
|
ScramClient.Builder |
selectMechanismBasedOnServerAdvertised(String... serverMechanisms)
Inform the client of the SCRAM mechanisms supported by the server.
|
ScramClient.Builder |
selectMechanismBasedOnServerAdvertisedCsv(String serverMechanismsCsv)
Inform the client of the SCRAM mechanisms supported by the server.
|
stringPreparationprotected final StringPreparation stringPreparation
protected Optional<ScramMechanism> nonChannelBindingMechanism
protected Optional<ScramMechanism> channelBindingMechanism
public ScramClient.Builder selectMechanismBasedOnServerAdvertised(String... serverMechanisms)
serverMechanisms - One or more IANA-registered SCRAM mechanism names, as advertised by the serverIllegalArgumentException - If no server mechanisms are providedpublic ScramClient.Builder selectMechanismBasedOnServerAdvertisedCsv(String serverMechanismsCsv) throws IllegalArgumentException
selectMechanismBasedOnServerAdvertised(String...)
with the results of splitting the received comma-separated values.serverMechanismsCsv - A CSV (Comma-Separated Values) String, containining all the SCRAM mechanisms
supported by the serverIllegalArgumentException - If selectMechanismBasedOnServerAdvertisedCsv is nullpublic ScramClient.Builder selectClientMechanism(ScramMechanism scramMechanism)
selectMechanismBasedOnServerAdvertised(String...) or
selectMechanismBasedOnServerAdvertisedCsv(String).scramMechanism - The selected scram mechanismIllegalArgumentException - If the selected mechanism is null or not compatible with the prior
channel binding selection,
or channel binding selection is dependent on the server advertised methodsCopyright © 2017–2020. All rights reserved.