Package com.unboundid.ldap.sdk
Class DIGESTMD5BindRequestProperties
java.lang.Object
com.unboundid.ldap.sdk.DIGESTMD5BindRequestProperties
- All Implemented Interfaces:
Serializable
@Mutable
@ThreadSafety(level=NOT_THREADSAFE)
public final class DIGESTMD5BindRequestProperties
extends Object
implements Serializable
This class provides a data structure that may be used to hold a number of
properties that may be used during processing for a SASL DIGEST-MD5 bind
operation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDIGESTMD5BindRequestProperties(String authenticationID, byte[] password) Creates a new set of DIGEST-MD5 bind request properties with the provided information.DIGESTMD5BindRequestProperties(String authenticationID, ASN1OctetString password) Creates a new set of DIGEST-MD5 bind request properties with the provided information.DIGESTMD5BindRequestProperties(String authenticationID, String password) Creates a new set of DIGEST-MD5 bind request properties with the provided information. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves 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.Retrieves the authentication ID for the DIGEST-MD5 bind request.Retrieves the authorization ID for the DIGEST-MD5 bind request.Retrieves the password for the DIGEST-MD5 bind request.getRealm()Retrieves the realm for the DIGEST-MD5 bind request.voidsetAllowedQoP(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.voidsetAllowedQoP(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.voidsetAuthenticationID(String authenticationID) Specifies the authentication ID for the DIGEST-MD5 bind request.voidsetAuthorizationID(String authorizationID) Specifies the authorization ID for the DIGEST-MD5 bind request.voidsetPassword(byte[] password) Specifies the password for the DIGEST-MD5 bind request.voidsetPassword(ASN1OctetString password) Specifies the password for the DIGEST-MD5 bind request.voidsetPassword(String password) Specifies the password for the DIGEST-MD5 bind request.voidSpecifies the realm for the DIGEST-MD5 bind request.toString()Retrieves a string representation of the DIGEST-MD5 bind request properties.voidtoString(StringBuilder buffer) Appends a string representation of the DIGEST-MD5 bind request properties to the provided buffer.
-
Constructor Details
-
DIGESTMD5BindRequestProperties
Creates a new set of DIGEST-MD5 bind request properties with the provided information.- Parameters:
authenticationID- The authentication ID for the DIGEST-MD5 bind request. It must not benull.password- The password for the DIGEST-MD5 bind request. It may benullif anonymous authentication is to be performed.
-
DIGESTMD5BindRequestProperties
Creates a new set of DIGEST-MD5 bind request properties with the provided information.- Parameters:
authenticationID- The authentication ID for the DIGEST-MD5 bind request. It must not benull.password- The password for the DIGEST-MD5 bind request. It may benullif anonymous authentication is to be performed.
-
DIGESTMD5BindRequestProperties
public DIGESTMD5BindRequestProperties(@NotNull String authenticationID, @Nullable ASN1OctetString password) Creates a new set of DIGEST-MD5 bind request properties with the provided information.- Parameters:
authenticationID- The authentication ID for the DIGEST-MD5 bind request. It must not benull.password- The password for the DIGEST-MD5 bind request. It may benullif anonymous authentication is to be performed.
-
-
Method Details
-
getAuthenticationID
Retrieves the authentication ID for the DIGEST-MD5 bind request.- Returns:
- The authentication ID for the DIGEST-MD5 bind request.
-
setAuthenticationID
Specifies the authentication ID for the DIGEST-MD5 bind request. It must not benull, 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.- Parameters:
authenticationID- The authentication ID for the DIGEST-MD5 bind request. It must not benull.
-
getAuthorizationID
Retrieves the authorization ID for the DIGEST-MD5 bind request.- Returns:
- The authorization ID for the DIGEST-MD5 bind request, or
nullif no authorization ID should be included in the bind request.
-
setAuthorizationID
Specifies the authorization ID for the DIGEST-MD5 bind request. It may benullif 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.- Parameters:
authorizationID- The authorization ID for the DIGEST-MD5 bind request.
-
getPassword
Retrieves the password for the DIGEST-MD5 bind request.- Returns:
- The password for the DIGEST-MD5 bind request.
-
setPassword
Specifies the password for the DIGEST-MD5 bind request. It may benullor empty when authenticating as the anonymous user.- Parameters:
password- The password for the DIGEST-MD5 bind request. It may benullor empty when authenticating as the anonymous user.
-
setPassword
Specifies the password for the DIGEST-MD5 bind request. It may benullor empty when authenticating as the anonymous user.- Parameters:
password- The password for the DIGEST-MD5 bind request. It may benullor empty when authenticating as the anonymous user.
-
setPassword
Specifies the password for the DIGEST-MD5 bind request. It may benullor empty when authenticating as the anonymous user.- Parameters:
password- The password for the DIGEST-MD5 bind request. It may benullor empty when authenticating as the anonymous user.
-
getRealm
Retrieves the realm for the DIGEST-MD5 bind request.- Returns:
- The realm for the DIGEST-MD5 bind request, or
nullif no realm should be included in the bind request.
-
setRealm
Specifies the realm for the DIGEST-MD5 bind request. It may benullif no realm should be included in the bind request.- Parameters:
realm- The realm for the DIGEST-MD5 bind request. It may benullif no realm should be included in the bind request.
-
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.- Returns:
- 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.
-
setAllowedQoP
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.- Parameters:
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 isnullor empty, then a list containing only theSASLQualityOfProtection.AUTHquality of protection value will be used.
-
setAllowedQoP
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.- Parameters:
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 isnullor empty, then a list containing only theSASLQualityOfProtection.AUTHquality of protection value will be used.
-
toString
Retrieves a string representation of the DIGEST-MD5 bind request properties. -
toString
Appends a string representation of the DIGEST-MD5 bind request properties to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended.
-