@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class DIGESTMD5BindRequestProperties extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
DIGESTMD5BindRequestProperties(java.lang.String authenticationID,
ASN1OctetString password)
Creates a new set of DIGEST-MD5 bind request properties with the provided
information.
|
DIGESTMD5BindRequestProperties(java.lang.String authenticationID,
byte[] password)
Creates a new set of DIGEST-MD5 bind request properties with the provided
information.
|
DIGESTMD5BindRequestProperties(java.lang.String authenticationID,
java.lang.String password)
Creates a new set of DIGEST-MD5 bind request properties with the provided
information.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<SASLQualityOfProtection> |
getAllowedQoP()
Retrieves the list of allowed qualities of protection that may be used for
communication that occurs on the connection after the authentication has
completed, in order from most preferred to least preferred.
|
java.lang.String |
getAuthenticationID()
Retrieves the authentication ID for the DIGEST-MD5 bind request.
|
java.lang.String |
getAuthorizationID()
Retrieves the authorization ID for the DIGEST-MD5 bind request.
|
ASN1OctetString |
getPassword()
Retrieves the password for the DIGEST-MD5 bind request.
|
java.lang.String |
getRealm()
Retrieves the realm for the DIGEST-MD5 bind request.
|
void |
setAllowedQoP(java.util.List<SASLQualityOfProtection> allowedQoP)
Specifies the list of allowed qualities of protection that may be used for
communication that occurs on the connection after the authentication has
completed, in order from most preferred to least preferred.
|
void |
setAllowedQoP(SASLQualityOfProtection... allowedQoP)
Specifies the list of allowed qualities of protection that may be used for
communication that occurs on the connection after the authentication has
completed, in order from most preferred to least preferred.
|
void |
setAuthenticationID(java.lang.String authenticationID)
Specifies the authentication ID for the DIGEST-MD5 bind request.
|
void |
setAuthorizationID(java.lang.String authorizationID)
Specifies the authorization ID for the DIGEST-MD5 bind request.
|
void |
setPassword(ASN1OctetString password)
Specifies the password for the DIGEST-MD5 bind request.
|
void |
setPassword(byte[] password)
Specifies the password for the DIGEST-MD5 bind request.
|
void |
setPassword(java.lang.String password)
Specifies the password for the DIGEST-MD5 bind request.
|
void |
setRealm(java.lang.String realm)
Specifies the realm for the DIGEST-MD5 bind request.
|
java.lang.String |
toString()
Retrieves a string representation of the DIGEST-MD5 bind request
properties.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of the DIGEST-MD5 bind request properties
to the provided buffer.
|
public DIGESTMD5BindRequestProperties(@NotNull java.lang.String authenticationID, @Nullable java.lang.String password)
authenticationID
- The authentication ID for the DIGEST-MD5 bind
request. It must not be null
.password
- The password for the DIGEST-MD5 bind request. It
may be null
if anonymous authentication
is to be performed.public DIGESTMD5BindRequestProperties(@NotNull java.lang.String authenticationID, @Nullable byte[] password)
authenticationID
- The authentication ID for the DIGEST-MD5 bind
request. It must not be null
.password
- The password for the DIGEST-MD5 bind request. It
may be null
if anonymous authentication
is to be performed.public DIGESTMD5BindRequestProperties(@NotNull java.lang.String authenticationID, @Nullable ASN1OctetString password)
authenticationID
- The authentication ID for the DIGEST-MD5 bind
request. It must not be null
.password
- The password for the DIGEST-MD5 bind request. It
may be null
if anonymous authentication
is to be performed.@NotNull public java.lang.String getAuthenticationID()
public void setAuthenticationID(@NotNull java.lang.String authenticationID)
null
, and should generally start with "dn:" followed by the
full DN for the target user (or just "dn:" for anonymous), or "u:" followed
by the username for the target user.authenticationID
- The authentication ID for the DIGEST-MD5 bind
request. It must not be null
.@Nullable public java.lang.String getAuthorizationID()
null
if no authorization ID should be included in the
bind request.public void setAuthorizationID(@Nullable java.lang.String authorizationID)
null
if not alternate authorization identity is needed. If
provided, the authorization ID should generally start with "dn:" followed
by the full DN for the target user (or just "dn:" for anonymous), or "u:"
followed by the username for the target user.authorizationID
- The authorization ID for the DIGEST-MD5 bind
request.@NotNull public ASN1OctetString getPassword()
public void setPassword(@NotNull java.lang.String password)
null
or empty when authenticating as the anonymous user.password
- The password for the DIGEST-MD5 bind request. It may be
null
or empty when authenticating as the
anonymous user.public void setPassword(@NotNull byte[] password)
null
or empty when authenticating as the anonymous user.password
- The password for the DIGEST-MD5 bind request. It may be
null
or empty when authenticating as the
anonymous user.public void setPassword(@Nullable ASN1OctetString password)
null
or empty when authenticating as the anonymous user.password
- The password for the DIGEST-MD5 bind request. It may be
null
or empty when authenticating as the
anonymous user.@Nullable public java.lang.String getRealm()
null
if no
realm should be included in the bind request.public void setRealm(@Nullable java.lang.String realm)
null
if no realm should be included in the bind request.realm
- The realm for the DIGEST-MD5 bind request. It may be
null
if no realm should be included in the bind
request.@NotNull public java.util.List<SASLQualityOfProtection> getAllowedQoP()
public void setAllowedQoP(@Nullable java.util.List<SASLQualityOfProtection> allowedQoP)
allowedQoP
- The list of allowed qualities of protection that may be
used for communication that occurs on the connection
after the authentication has completed, in order from
most preferred to least preferred. If this is
null
or empty, then a list containing only the
SASLQualityOfProtection.AUTH
quality of
protection value will be used.public void setAllowedQoP(@Nullable SASLQualityOfProtection... allowedQoP)
allowedQoP
- The list of allowed qualities of protection that may be
used for communication that occurs on the connection
after the authentication has completed, in order from
most preferred to least preferred. If this is
null
or empty, then a list containing only the
SASLQualityOfProtection.AUTH
quality of
protection value will be used.@NotNull public java.lang.String toString()
toString
in class java.lang.Object