@ThreadSafety(level=NOT_THREADSAFE) public final class UnboundIDCertificatePlusPasswordBindRequest extends SASLBindRequest
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNBOUNDID_CERT_PLUS_PW_MECHANISM_NAME
The name for the UnboundID certificate plus password SASL mechanism.
|
CRED_TYPE_SASL
VERSION_ELEMENT
Constructor and Description |
---|
UnboundIDCertificatePlusPasswordBindRequest(byte[] password,
Control... controls)
Creates a new certificate plus password bind request with the provided
information.
|
UnboundIDCertificatePlusPasswordBindRequest(java.lang.String password,
Control... controls)
Creates a new certificate plus password bind request with the provided
information.
|
Modifier and Type | Method and Description |
---|---|
UnboundIDCertificatePlusPasswordBindRequest |
duplicate()
Creates a new instance of this LDAP request that may be modified without
impacting this request.
|
UnboundIDCertificatePlusPasswordBindRequest |
duplicate(Control[] controls)
Creates a new instance of this LDAP request that may be modified without
impacting this request.
|
int |
getLastMessageID()
Retrieves the message ID for the last LDAP message sent using this request.
|
ASN1OctetString |
getPassword()
Retrieves the password to use to authenticate as the user identified by the
certificate.
|
UnboundIDCertificatePlusPasswordBindRequest |
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.
|
protected BindResult |
process(LDAPConnection connection,
int depth)
Sends this bind request to the target server over the provided connection
and returns the corresponding response.
|
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.
|
getBindType, responseReceived, sendBindRequest, sendMessage
getOperationType
followReferrals, getControl, getControlList, getControls, getIntermediateResponseListener, getReferralConnector, getReferralConnectorInternal, getReferralDepth, getResponseTimeoutMillis, hasControl, hasControl, setFollowReferrals, setIntermediateResponseListener, setReferralConnector, setReferralDepth, setResponseTimeoutMillis, toString
@NotNull public static final java.lang.String UNBOUNDID_CERT_PLUS_PW_MECHANISM_NAME
public UnboundIDCertificatePlusPasswordBindRequest(@NotNull java.lang.String password, @Nullable Control... controls)
password
- The password to use to authenticate as user identified by
the certificate. 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 request controls are
needed.public UnboundIDCertificatePlusPasswordBindRequest(@NotNull byte[] password, @Nullable Control... controls)
password
- The password to use to authenticate as user identified by
the certificate. 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 request controls are
needed.@NotNull public ASN1OctetString getPassword()
@NotNull public java.lang.String getSASLMechanismName()
getSASLMechanismName
in class SASLBindRequest
@NotNull protected BindResult process(@NotNull LDAPConnection connection, int depth) throws LDAPException
process
in class BindRequest
connection
- The connection to use to send this bind request to the
server and read the associated response.depth
- The current referral depth for this request. It should
always be one for the initial request, and should only
be incremented when following referrals.LDAPException
- If a problem occurs while sending the request or
reading the response.public int getLastMessageID()
getLastMessageID
in class SASLBindRequest
@NotNull public UnboundIDCertificatePlusPasswordBindRequest duplicate()
duplicate
in interface ReadOnlyLDAPRequest
duplicate
in class BindRequest
@NotNull public UnboundIDCertificatePlusPasswordBindRequest duplicate(@Nullable Control[] controls)
duplicate
in interface ReadOnlyLDAPRequest
duplicate
in class BindRequest
controls
- The set of controls to include in the duplicate request.@NotNull public UnboundIDCertificatePlusPasswordBindRequest getRebindRequest(@NotNull java.lang.String host, int port)
getRebindRequest
in class BindRequest
host
- 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 void toString(@NotNull java.lang.StringBuilder buffer)
toString
in interface ReadOnlyLDAPRequest
toString
in class LDAPRequest
buffer
- The buffer to which to append a string representation of
this request.public void toCode(@NotNull java.util.List<java.lang.String> lineList, @NotNull java.lang.String requestID, int indentSpaces, boolean includeProcessing)
toCode
in interface ReadOnlyLDAPRequest
toCode
in class SASLBindRequest
lineList
- 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
).