org.rhq.jndi.context
Class AccessCheckingLdapContextDecorator

java.lang.Object
  extended by org.rhq.jndi.context.AccessCheckingContextDecorator
      extended by org.rhq.jndi.context.AccessCheckingDirContextDecorator
          extended by org.rhq.jndi.context.AccessCheckingLdapContextDecorator
All Implemented Interfaces:
Serializable, Context, DirContext, LdapContext, ContextDecorator

public class AccessCheckingLdapContextDecorator
extends AccessCheckingDirContextDecorator
implements LdapContext

Author:
Lukas Krejci
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.naming.ldap.LdapContext
CONTROL_FACTORIES
 
Fields inherited from interface javax.naming.directory.DirContext
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE
 
Fields inherited from interface javax.naming.Context
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
Constructor Summary
AccessCheckingLdapContextDecorator(LdapContext original, String... checkedSchemes)
           
AccessCheckingLdapContextDecorator(String... checkedSchemes)
           
 
Method Summary
 ExtendedResponse extendedOperation(ExtendedRequest request)
           
 Control[] getConnectControls()
           
protected  LdapContext getOriginal()
           
 Control[] getRequestControls()
           
 Control[] getResponseControls()
           
 LdapContext newInstance(Control[] requestControls)
           
 void reconnect(Control[] connCtls)
           
 void setRequestControls(Control[] requestControls)
           
 
Methods inherited from class org.rhq.jndi.context.AccessCheckingDirContextDecorator
bind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, search, search, search, search, search, search, search, search
 
Methods inherited from class org.rhq.jndi.context.AccessCheckingContextDecorator
addToEnvironment, bind, bind, check, check, check, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, equals, getEnvironment, getNameInNamespace, getNameParser, getNameParser, hashCode, init, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.directory.DirContext
bind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, search, search, search, search, search, search, search, search
 
Methods inherited from interface javax.naming.Context
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind
 

Constructor Detail

AccessCheckingLdapContextDecorator

public AccessCheckingLdapContextDecorator(String... checkedSchemes)

AccessCheckingLdapContextDecorator

public AccessCheckingLdapContextDecorator(LdapContext original,
                                          String... checkedSchemes)
Method Detail

getOriginal

protected LdapContext getOriginal()
Overrides:
getOriginal in class AccessCheckingDirContextDecorator

extendedOperation

public ExtendedResponse extendedOperation(ExtendedRequest request)
                                   throws NamingException
Specified by:
extendedOperation in interface LdapContext
Throws:
NamingException

newInstance

public LdapContext newInstance(Control[] requestControls)
                        throws NamingException
Specified by:
newInstance in interface LdapContext
Throws:
NamingException

reconnect

public void reconnect(Control[] connCtls)
               throws NamingException
Specified by:
reconnect in interface LdapContext
Throws:
NamingException

getConnectControls

public Control[] getConnectControls()
                             throws NamingException
Specified by:
getConnectControls in interface LdapContext
Throws:
NamingException

setRequestControls

public void setRequestControls(Control[] requestControls)
                        throws NamingException
Specified by:
setRequestControls in interface LdapContext
Throws:
NamingException

getRequestControls

public Control[] getRequestControls()
                             throws NamingException
Specified by:
getRequestControls in interface LdapContext
Throws:
NamingException

getResponseControls

public Control[] getResponseControls()
                              throws NamingException
Specified by:
getResponseControls in interface LdapContext
Throws:
NamingException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.