Interface PostOperationBindOperation
- All Superinterfaces:
PluginOperation,PostOperationOperation
- All Known Implementing Classes:
BindOperation
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
Modifier and TypeMethodDescriptionRetrieves the authentication type for this bind operation.Retrieves a human-readable message providing the reason that the authentication failed, if available.Retrieves the bind DN for this bind operation.Retrieves the user entry associated with the SASL authentication attempt.Retrieves the SASL credentials for this bind operation.Retrieves the SASL mechanism for this bind operation.Retrieves the set of server SASL credentials to include in the bind response.Retrieves the simple authentication password for this bind operation.Retrieves the user entry DN for this bind operation.voidSpecifies the reason that the authentication failed.voidsetServerSASLCredentials(ByteString serverSASLCredentials) Specifies the set of server SASL credentials to include in the bind response.Methods inherited from interface org.opends.server.types.operation.PluginOperation
checkIfCanceled, getAttachment, getAttachments, getClientConnection, getConnectionID, getMessageID, getOperationID, getRequest, getRequestControl, getRequestControl, getRequestControls, getResponseControls, hasPrivilege, isInternalOperation, isSynchronizationOperation, setAttachment, toString, toStringMethods inherited from interface org.opends.server.types.operation.PostOperationOperation
addAdditionalLogItem, addResponseControl, appendErrorMessage, getAdditionalLogItems, getAuthorizationDN, getErrorMessage, getMatchedDN, getReferralURLs, getResultCode, removeResponseControl, setErrorMessage, setMatchedDN, setReferralURLs, setResult, setResultCode
-
Method Details
-
getAuthenticationType
AuthenticationType getAuthenticationType()Retrieves the authentication type for this bind operation.- Returns:
- The authentication type for this bind operation.
-
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
String getSASLMechanism()Retrieves the SASL mechanism for this bind operation.- Returns:
- The SASL mechanism for this bind operation, or
nullif the bind does not use SASL authentication.
-
getSASLCredentials
ByteString getSASLCredentials()Retrieves the SASL credentials for this bind operation.- Returns:
- The SASL credentials for this bind operation, or
nullif there are none or if the bind does not use SASL authentication.
-
getServerSASLCredentials
ByteString 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
nullif there are none.
-
setServerSASLCredentials
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
nullif it was not a SASL authentication or the SASL processing was not able to map the request to a user.
-
getAuthFailureReason
LocalizableMessage 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
nullif none is available.
-
setAuthFailureReason
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
nullif the bind processing has not progressed far enough to identify the user or if the user DN could not be determined.
-