ScramClient.Builder
public static class ScramClient.PreBuilder2 extends ScramClient.PreBuilder1
ScramClient.channelBinding(ChannelBinding)
.{#stringPreparation(StringPreparation)} instead.Modifier and Type | Field | Description |
---|---|---|
protected Optional<com.ongres.scram.common.ScramMechanism> |
channelBindingMechanism |
|
protected Optional<com.ongres.scram.common.ScramMechanism> |
nonChannelBindingMechanism |
|
protected com.ongres.scram.common.stringprep.StringPreparation |
stringPreparation |
channelBinding
Modifier and Type | Method | Description |
---|---|---|
ScramClient.Builder |
selectClientMechanism(com.ongres.scram.common.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
stringPreparation
protected final com.ongres.scram.common.stringprep.StringPreparation stringPreparation
protected Optional<com.ongres.scram.common.ScramMechanism> nonChannelBindingMechanism
protected Optional<com.ongres.scram.common.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(com.ongres.scram.common.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–2018. All rights reserved.