public class BindOperationContext extends AbstractOperationContext
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() |
String |
getName() |
ReferralHandlingMode |
getReferralHandlingMode() |
String |
getSaslAuthId() |
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(String saslAuthId) |
void |
setSaslMechanism(String saslMechanism) |
void |
throwReferral()
Set the throwReferral flag to true
|
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, setSessionpublic 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 String getSaslMechanism()
public void setSaslMechanism(String saslMechanism)
public byte[] getCredentials()
public void setCredentials(byte[] credentials)
public String getSaslAuthId()
public void setSaslAuthId(String saslAuthId)
public boolean isSaslBind()
public String getName()
getName in interface OperationContextgetName in class AbstractOperationContextpublic String toString()
toString in class 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 setCopyright © 2021. All rights reserved.