|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.LDAPRequest
com.unboundid.ldap.sdk.BindRequest
com.unboundid.ldap.sdk.SASLBindRequest
com.unboundid.ldap.sdk.unboundidds.UnboundIDCertificatePlusPasswordBindRequest
@ThreadSafety(level=NOT_THREADSAFE) public final class UnboundIDCertificatePlusPasswordBindRequest
NOTE: This class is part of the Commercial Edition of the UnboundID LDAP SDK for Java. It is not available for use in applications that include only the Standard Edition of the LDAP SDK, and is not supported for use in conjunction with non-UnboundID products.This class provides support for an UnboundID-proprietary SASL mechanism that provides multifactor authentication using the combination of a client certificate (presented during SSL/TLS negotiation) and a static password.
Field Summary | |
---|---|
static java.lang.String |
UNBOUNDID_CERT_PLUS_PW_MECHANISM_NAME
The name for the UnboundID certificate plus password SASL mechanism. |
Fields inherited from class com.unboundid.ldap.sdk.SASLBindRequest |
---|
CRED_TYPE_SASL |
Fields inherited from class com.unboundid.ldap.sdk.BindRequest |
---|
VERSION_ELEMENT |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this request to the provided buffer. |
Methods inherited from class com.unboundid.ldap.sdk.SASLBindRequest |
---|
getBindType, responseReceived, sendBindRequest, sendMessage |
Methods inherited from class com.unboundid.ldap.sdk.BindRequest |
---|
getOperationType |
Methods inherited from class com.unboundid.ldap.sdk.LDAPRequest |
---|
followReferrals, getControl, getControlList, getControls, getIntermediateResponseListener, getResponseTimeoutMillis, hasControl, hasControl, setFollowReferrals, setIntermediateResponseListener, setResponseTimeoutMillis, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String UNBOUNDID_CERT_PLUS_PW_MECHANISM_NAME
Constructor Detail |
---|
public UnboundIDCertificatePlusPasswordBindRequest(java.lang.String password, 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(byte[] password, 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.Method Detail |
---|
public ASN1OctetString getPassword()
public java.lang.String getSASLMechanismName()
getSASLMechanismName
in class SASLBindRequest
protected BindResult process(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
public UnboundIDCertificatePlusPasswordBindRequest duplicate()
duplicate
in interface ReadOnlyLDAPRequest
duplicate
in class BindRequest
public UnboundIDCertificatePlusPasswordBindRequest duplicate(Control[] controls)
duplicate
in interface ReadOnlyLDAPRequest
duplicate
in class BindRequest
controls
- The set of controls to include in the duplicate request.
public UnboundIDCertificatePlusPasswordBindRequest getRebindRequest(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(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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |