org.opends.server.types.operation
Interface PostOperationBindOperation

All Superinterfaces:
PluginOperation, PostOperationOperation
All Known Implementing Classes:
LocalBackendBindOperation

@PublicAPI(stability=UNCOMMITTED,
           mayInstantiate=false,
           mayExtend=false,
           mayInvoke=true)
public interface PostOperationBindOperation
extends PostOperationOperation

This class defines a set of methods that are available for use by post-operation plugins for bind operations. Note that this interface is intended only to define an API for use by plugins and is not intended to be implemented by any custom classes.


Method Summary
 AuthenticationType getAuthenticationType()
          Retrieves the authentication type for this bind operation.
 Message getAuthFailureReason()
          Retrieves a human-readable message providing the reason that the authentication failed, if available.
 DN getBindDN()
          Retrieves the bind DN for this bind operation.
 java.lang.String getProtocolVersion()
          Retrieves a string representation of the protocol version associated with this bind request.
 ByteString getRawBindDN()
          Retrieves the raw, unprocessed bind DN for this bind operation as contained in the client request.
 Entry getSASLAuthUserEntry()
          Retrieves the user entry associated with the SASL authentication attempt.
 ASN1OctetString getSASLCredentials()
          Retrieves the SASL credentials for this bind operation.
 java.lang.String getSASLMechanism()
          Retrieves the SASL mechanism for this bind operation.
 ASN1OctetString getServerSASLCredentials()
          Retrieves the set of server SASL credentials to include in the bind response.
 ByteString getSimplePassword()
          Retrieves the simple authentication password for this bind operation.
 DN getUserEntryDN()
          Retrieves the user entry DN for this bind operation.
 void setAuthFailureReason(Message reason)
          Specifies the reason that the authentication failed.
 void setServerSASLCredentials(ASN1OctetString serverSASLCredentials)
          Specifies the set of server SASL credentials to include in the bind response.
 
Methods inherited from interface org.opends.server.types.operation.PostOperationOperation
addResponseControl, appendAdditionalLogMessage, appendErrorMessage, getAdditionalLogMessage, getAuthorizationDN, getErrorMessage, getMatchedDN, getReferralURLs, getResultCode, removeResponseControl, setAdditionalLogMessage, setErrorMessage, setMatchedDN, setReferralURLs, setResponseData, setResultCode
 
Methods inherited from interface org.opends.server.types.operation.PluginOperation
checkIfCanceled, disconnectClient, getAttachment, getAttachments, getClientConnection, getConnectionID, getMessageID, getOperationID, getOperationType, getProcessingStartTime, getRequestControls, getResponseControls, isInternalOperation, isSynchronizationOperation, removeAttachment, setAttachment, toString, toString
 

Method Detail

getAuthenticationType

AuthenticationType getAuthenticationType()
Retrieves the authentication type for this bind operation.

Returns:
The authentication type for this bind operation.

getProtocolVersion

java.lang.String getProtocolVersion()
Retrieves a string representation of the protocol version associated with this bind request.

Returns:
A string representation of the protocol version associated with this bind request.

getRawBindDN

ByteString getRawBindDN()
Retrieves the raw, unprocessed bind DN for this bind operation as contained in the client request. The value may not actually contain a valid DN, as no validation will have been performed.

Returns:
The raw, unprocessed bind DN for this bind operation as contained in the client request.

getBindDN

DN getBindDN()
Retrieves the bind DN for this bind operation.

Returns:
The bind DN for this bind operation.

getSimplePassword

ByteString getSimplePassword()
Retrieves the simple authentication password for this bind operation.

Returns:
The simple authentication password for this bind operation.

getSASLMechanism

java.lang.String getSASLMechanism()
Retrieves the SASL mechanism for this bind operation.

Returns:
The SASL mechanism for this bind operation, or null if the bind does not use SASL authentication.

getSASLCredentials

ASN1OctetString getSASLCredentials()
Retrieves the SASL credentials for this bind operation.

Returns:
The SASL credentials for this bind operation, or null if there are none or if the bind does not use SASL authentication.

getServerSASLCredentials

ASN1OctetString getServerSASLCredentials()
Retrieves the set of server SASL credentials to include in the bind response.

Returns:
The set of server SASL credentials to include in the bind response, or null if there are none.

setServerSASLCredentials

void setServerSASLCredentials(ASN1OctetString serverSASLCredentials)
Specifies the set of server SASL credentials to include in the bind response.

Parameters:
serverSASLCredentials - The set of server SASL credentials to include in the bind response.

getSASLAuthUserEntry

Entry getSASLAuthUserEntry()
Retrieves the user entry associated with the SASL authentication attempt. This should be set by any SASL mechanism in which the processing was able to get far enough to make this determination, regardless of whether the authentication was ultimately successful.

Returns:
The user entry associated with the SASL authentication attempt, or null if it was not a SASL authentication or the SASL processing was not able to map the request to a user.

getAuthFailureReason

Message getAuthFailureReason()
Retrieves a human-readable message providing the reason that the authentication failed, if available.

Returns:
A human-readable message providing the reason that the authentication failed, or null if none is available.

setAuthFailureReason

void setAuthFailureReason(Message reason)
Specifies the reason that the authentication failed.

Parameters:
reason - A human-readable message providing the reason that the authentication failed.

getUserEntryDN

DN getUserEntryDN()
Retrieves the user entry DN for this bind operation. It will only be available if the bind processing has proceeded far enough to identify the user attempting to authenticate.

Returns:
The user entry DN for this bind operation, or null if the bind processing has not progressed far enough to identify the user or if the user DN could not be determined.