|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jnp.interfaces.NamingContextFactory (src)
org.jboss.security.jndi.LoginInitialContextFactory
A naming provider InitialContextFactory implementation that combines the authentication phase with the InitialContext creation. During the getInitialContext callback from the JNDI naming layer a JAAS LoginContext is created using the login configuration name passed in as the Context.SECURITY_PROTOCOL env property. The CallbackHandler used is a org.jboss.security.auth.callback.UsernamePasswordHandler that is populated with the username obtained from the Context.SECURITY_PRINCIPAL env property and the credentials from the Context.SECURITY_CREDENTIALS env property.
InitialContextFactory| Constructor Summary | |
LoginInitialContextFactory()
|
|
| Method Summary | |
javax.naming.Context |
getInitialContext(java.util.Hashtable env)
Create new initial context by invoking the NamingContextFactory version of this method after performing a JAAS login. |
| Methods inherited from class org.jnp.interfaces.NamingContextFactory (src) |
getObjectInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LoginInitialContextFactory()
| Method Detail |
public javax.naming.Context getInitialContext(java.util.Hashtable env)
throws javax.naming.NamingException
getInitialContext in interface javax.naming.spi.InitialContextFactorygetInitialContext in class NamingContextFactory (src) javax.naming.NamingException
|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||