public class BindOperationContext extends AbstractOperationContext
| Modifier and Type | Field and Description |
|---|---|
private boolean |
collateralOperation
A flag to tell that this is a collateral operation
|
private byte[] |
credentials
The password
|
private org.apache.mina.core.session.IoSession |
ioSession
The IoSession if any
|
private static org.slf4j.Logger |
LOG
A logger for this class
|
private ReferralHandlingMode |
referralHandlingMode |
private java.lang.String |
saslAuthId
The SASL identifier
|
private java.lang.String |
saslMechanism
The SASL mechanism
|
authorizedPrincipal, byPassed, currentInterceptor, dn, EMPTY_CONTROLS, entry, interceptors, originalEntry, requestControls, responseControls, session, throwReferral| Constructor and Description |
|---|
BindOperationContext(CoreSession session)
Creates a new instance of BindOperationContext.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.directory.api.ldap.model.constants.AuthenticationLevel |
getAuthenticationLevel() |
byte[] |
getCredentials() |
org.apache.mina.core.session.IoSession |
getIoSession() |
java.lang.String |
getName() |
ReferralHandlingMode |
getReferralHandlingMode() |
java.lang.String |
getSaslAuthId() |
java.lang.String |
getSaslMechanism() |
void |
ignoreReferral()
Set the throwReferral flag to false
|
boolean |
isCollateralOperation()
Tells if the current operation is considered a side effect of the
current context
|
boolean |
isReferralIgnored() |
boolean |
isReferralThrown() |
boolean |
isSaslBind() |
void |
setCollateralOperation(boolean collateralOperation) |
void |
setCredentials(byte[] credentials) |
void |
setIoSession(org.apache.mina.core.session.IoSession ioSession) |
void |
setReferralHandlingMode(ReferralHandlingMode referralHandlingMode) |
void |
setSaslAuthId(java.lang.String saslAuthId) |
void |
setSaslMechanism(java.lang.String saslMechanism) |
void |
throwReferral()
Set the throwReferral flag to true
|
java.lang.String |
toString() |
addRequestControl, addRequestControls, addResponseControl, delete, getCurrentInterceptor, getDn, getEffectivePrincipal, getEntry, getNextInterceptor, getOriginalEntry, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, lookup, newLookupContext, setAuthorizedPrincipal, setCurrentInterceptor, setDn, setEntry, setInterceptors, setOriginalEntry, setRequestControls, setSessionprivate static final org.slf4j.Logger LOG
private byte[] credentials
private java.lang.String saslMechanism
private java.lang.String saslAuthId
private boolean collateralOperation
private ReferralHandlingMode referralHandlingMode
private org.apache.mina.core.session.IoSession ioSession
public BindOperationContext(CoreSession session)
public org.apache.directory.api.ldap.model.constants.AuthenticationLevel getAuthenticationLevel()
throws org.apache.directory.api.ldap.model.exception.LdapAuthenticationException
org.apache.directory.api.ldap.model.exception.LdapAuthenticationExceptionpublic java.lang.String getSaslMechanism()
public void setSaslMechanism(java.lang.String saslMechanism)
public byte[] getCredentials()
public void setCredentials(byte[] credentials)
public java.lang.String getSaslAuthId()
public void setSaslAuthId(java.lang.String saslAuthId)
public boolean isSaslBind()
public java.lang.String getName()
getName in interface OperationContextgetName in class AbstractOperationContextpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean isCollateralOperation()
public void setCollateralOperation(boolean collateralOperation)
public ReferralHandlingMode getReferralHandlingMode()
public void setReferralHandlingMode(ReferralHandlingMode referralHandlingMode)
public void throwReferral()
throwReferral in interface OperationContextthrowReferral in class AbstractOperationContextpublic boolean isReferralThrown()
isReferralThrown in interface OperationContextisReferralThrown in class AbstractOperationContexttrue if the referrals are thrownpublic void ignoreReferral()
ignoreReferral in interface OperationContextignoreReferral in class AbstractOperationContextpublic boolean isReferralIgnored()
isReferralIgnored in interface OperationContextisReferralIgnored in class AbstractOperationContexttrue if the referrals are ignoredpublic org.apache.mina.core.session.IoSession getIoSession()
public void setIoSession(org.apache.mina.core.session.IoSession ioSession)
ioSession - the ioSession to set