Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » naming » [javadoc | source]
org.jboss.naming
public class: JBossRemotingContextFactory [javadoc | source]
java.lang.Object
   org.jboss.naming.JBossRemotingContextFactory

All Implemented Interfaces:
    InitialContextFactory, ObjectFactory

Direct Known Subclasses:
    KernelInitializingContextFactory

Creating a JNDI connection using JBoss Remoting. If Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS are set, this InitialContextFactory implementation combines the authentication phase with the InitialContext creation. During the getInitialContext callback from the JNDI naming, layer security context identity is populated with the username obtained from the Context.SECURITY_PRINCIPAL env property and the credentials from the Context.SECURITY_CREDENTIALS env property. There is no actual authentication of this information. It is merely made available to the jboss transport layer for incorporation into subsequent invocations. Authentication and authorization will occur on the server. If Context.SECURITY_PROTOCOL is provided as well as the principal and credentials, then a JAAS login will be performed instead using the security domain provided with the SECURITY_PROTOCOL variable.
Method from org.jboss.naming.JBossRemotingContextFactory Summary:
associateSecurityInformation,   getInitialContext,   getObjectInstance,   login
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.naming.JBossRemotingContextFactory Detail:
 static  void associateSecurityInformation(Object principal,
    Object credentials) 
 public Context getInitialContext(Hashtable env) throws NamingException 
 public Object getObjectInstance(Object obj,
    Name name,
    Context nameCtx,
    Hashtable environment) throws Exception 
 static  void login(Object principal,
    Object credentials,
    Object prop) throws AuthenticationException