public class BindOperationContext extends AbstractOperationContext
authorizedPrincipal, byPassed, currentInterceptor, dn, EMPTY_CONTROLS, entry, interceptors, originalEntry, partition, requestControls, responseControls, session, throwReferral, transaction
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() |
org.apache.directory.api.ldap.model.entry.Entry |
getPrincipal() |
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 |
setPrincipal(org.apache.directory.api.ldap.model.entry.Entry principal) |
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, getPartition, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, getTransaction, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, lookup, newLookupContext, setAuthorizedPrincipal, setCurrentInterceptor, setDn, setEntry, setInterceptors, setOriginalEntry, setPartition, setRequestControls, setSession, setTransaction
public BindOperationContext(CoreSession session)
session
- The session to usepublic 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.LdapAuthenticationException
- If we can't get the AuthenticationLevelpublic 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 toString()
toString
in class Object
Object.toString()
public boolean isCollateralOperation()
public void setCollateralOperation(boolean collateralOperation)
public ReferralHandlingMode getReferralHandlingMode()
public void setReferralHandlingMode(ReferralHandlingMode referralHandlingMode)
public void throwReferral()
throwReferral
in interface OperationContext
throwReferral
in class AbstractOperationContext
public boolean isReferralThrown()
isReferralThrown
in interface OperationContext
isReferralThrown
in class AbstractOperationContext
true
if the referrals are thrownpublic void ignoreReferral()
ignoreReferral
in interface OperationContext
ignoreReferral
in class AbstractOperationContext
public boolean isReferralIgnored()
isReferralIgnored
in interface OperationContext
isReferralIgnored
in class AbstractOperationContext
true
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 setpublic org.apache.directory.api.ldap.model.entry.Entry getPrincipal()
public void setPrincipal(org.apache.directory.api.ldap.model.entry.Entry principal)
principal
- the principal to setCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.