public static class ScramClient.PreBuilder2 extends ScramClient.PreBuilder1
ScramClient.channelBinding(ChannelBinding).{#stringPreparation(StringPreparation)} instead.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Optional<ScramMechanism> |
channelBindingMechanism |
protected java.util.Optional<ScramMechanism> |
nonChannelBindingMechanism |
protected StringPreparation |
stringPreparation |
channelBinding| Modifier | Constructor and Description |
|---|---|
private |
PreBuilder2(ScramClient.ChannelBinding channelBinding,
StringPreparation stringPreparation) |
| Modifier and Type | Method and Description |
|---|---|
ScramClient.Builder |
selectClientMechanism(ScramMechanism scramMechanism)
Select a fixed client mechanism.
|
ScramClient.Builder |
selectMechanismBasedOnServerAdvertised(java.lang.String... serverMechanisms)
Inform the client of the SCRAM mechanisms supported by the server.
|
ScramClient.Builder |
selectMechanismBasedOnServerAdvertisedCsv(java.lang.String serverMechanismsCsv)
Inform the client of the SCRAM mechanisms supported by the server.
|
stringPreparationprotected final StringPreparation stringPreparation
protected java.util.Optional<ScramMechanism> nonChannelBindingMechanism
protected java.util.Optional<ScramMechanism> channelBindingMechanism
private PreBuilder2(ScramClient.ChannelBinding channelBinding, StringPreparation stringPreparation)
public ScramClient.Builder selectMechanismBasedOnServerAdvertised(java.lang.String... serverMechanisms)
serverMechanisms - One or more IANA-registered SCRAM mechanism names, as advertised by the serverjava.lang.IllegalArgumentException - If no server mechanisms are providedpublic ScramClient.Builder selectMechanismBasedOnServerAdvertisedCsv(java.lang.String serverMechanismsCsv) throws java.lang.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 serverjava.lang.IllegalArgumentException - If selectMechanismBasedOnServerAdvertisedCsv is nullpublic ScramClient.Builder selectClientMechanism(ScramMechanism scramMechanism)
selectMechanismBasedOnServerAdvertised(String...) or
selectMechanismBasedOnServerAdvertisedCsv(String).scramMechanism - The selected scram mechanismjava.lang.IllegalArgumentException - 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 methods