@ThreadSafety(level=NOT_THREADSAFE) public final class SCRAMSHA256BindRequest extends SCRAMBindRequest
CRED_TYPE_SASLVERSION_ELEMENT| Constructor and Description |
|---|
SCRAMSHA256BindRequest(java.lang.String username,
byte[] password,
Control... controls)
Creates a new SCRAM-SHA-256 bind request with the provided information.
|
SCRAMSHA256BindRequest(java.lang.String username,
java.lang.String password,
Control... controls)
Creates a new SCRAM-SHA-256 bind request with the provided information.
|
| Modifier and Type | Method and Description |
|---|---|
SCRAMSHA256BindRequest |
duplicate()
Creates a new instance of this LDAP request that may be modified without
impacting this request.
|
SCRAMSHA256BindRequest |
duplicate(Control[] controls)
Creates a new instance of this LDAP request that may be modified without
impacting this request.
|
protected java.lang.String |
getDigestAlgorithmName()
Retrieves the name of the digest algorithm that will be used in the
authentication processing.
|
protected java.lang.String |
getMACAlgorithmName()
Retrieves the name of the MAC algorithm that will be used in the
authentication processing.
|
SCRAMSHA256BindRequest |
getRebindRequest(java.lang.String host,
int port)
Retrieves a bind request that may be used to re-bind using the same
credentials authentication type and credentials as previously used to
perform the initial bind.
|
java.lang.String |
getSASLMechanismName()
Retrieves the name of the SASL mechanism used in this SASL bind request.
|
void |
toCode(java.util.List<java.lang.String> lineList,
java.lang.String requestID,
int indentSpaces,
boolean includeProcessing)
Appends a number of lines comprising the Java source code that can be used
to recreate this request to the given list.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this request to the provided buffer.
|
getPasswordBytes, getPasswordString, getUsername, processgetBindType, getLastMessageID, responseReceived, sendBindRequest, sendMessagegetOperationTypefollowReferrals, getControl, getControlList, getControls, getIntermediateResponseListener, getReferralConnector, getResponseTimeoutMillis, hasControl, hasControl, setFollowReferrals, setIntermediateResponseListener, setReferralConnector, setResponseTimeoutMillis, toStringpublic SCRAMSHA256BindRequest(java.lang.String username, java.lang.String password, Control... controls)
username - The username for this bind request. It must not be null or empty.password - The password for this bind request. It must not be null or empty.controls - The set of controls to include in the bind request. It may
be null or empty if no controls are needed.public SCRAMSHA256BindRequest(java.lang.String username, byte[] password, Control... controls)
username - The username for this bind request. It must not be null or empty.password - The password for this bind request. It must not be null or empty.controls - The set of controls to include in the bind request. It may
be null or empty if no controls are needed.public java.lang.String getSASLMechanismName()
getSASLMechanismName in class SASLBindRequestprotected java.lang.String getDigestAlgorithmName()
getDigestAlgorithmName in class SCRAMBindRequestprotected java.lang.String getMACAlgorithmName()
getMACAlgorithmName in class SCRAMBindRequestpublic SCRAMSHA256BindRequest getRebindRequest(java.lang.String host, int port)
getRebindRequest in class SCRAMBindRequesthost - The address of the directory server to which the connection
is established.port - The port of the directory server to which the connection is
established.null to indicate that automatic
re-binding is not supported for this type of bind request.public SCRAMSHA256BindRequest duplicate()
duplicate in interface ReadOnlyLDAPRequestduplicate in class SCRAMBindRequestpublic SCRAMSHA256BindRequest duplicate(Control[] controls)
duplicate in interface ReadOnlyLDAPRequestduplicate in class SCRAMBindRequestcontrols - The set of controls to include in the duplicate request.public void toString(java.lang.StringBuilder buffer)
toString in interface ReadOnlyLDAPRequesttoString in class SCRAMBindRequestbuffer - The buffer to which to append a string representation of
this request.public void toCode(java.util.List<java.lang.String> lineList, java.lang.String requestID, int indentSpaces, boolean includeProcessing)
toCode in interface ReadOnlyLDAPRequesttoCode in class SCRAMBindRequestlineList - The list to which the source code lines should
be added.requestID - The name that should be used as an identifier
for the request. If this is null or
empty, then a generic ID will be used.indentSpaces - The number of spaces that should be used to
indent the generated code. It must not be
negative.includeProcessing - Indicates whether the generated code should
include code required to actually process the
request and handle the result (if true),
or just to generate the request (if
false).