|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.graph.BasicExecutionContextFactory
public class BasicExecutionContextFactory

Basic implementation of a ExecutionContextFactory that returns basic
ExecutionContexts.
| Constructor Summary | |
|---|---|
BasicExecutionContextFactory()
Create a new instance of this factory. |
|
BasicExecutionContextFactory(String defaultNamespaceUri)
Create a new instance of this factory. |
|
| Method Summary | |
|---|---|
ExecutionContext |
create()
Creates an ExecutionContext using a snapshot of the access control context obtained
from the current calling context. |
ExecutionContext |
create(AccessControlContext accessControlContext)
Creates an ExecutionContext using the supplied access control context. |
ExecutionContext |
create(LoginContext loginContext)
Create an ExecutionContext for the supplied LoginContext. |
ExecutionContext |
create(String name)
|
ExecutionContext |
create(String name,
CallbackHandler callbackHandler)
|
ExecutionContext |
create(String name,
Subject subject)
|
ExecutionContext |
create(String name,
Subject subject,
CallbackHandler callbackHandler)
|
NamespaceRegistry |
getDefaultNamespaces()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicExecutionContextFactory()
public BasicExecutionContextFactory(String defaultNamespaceUri)
defaultNamespaceUri - the URI of the namespace that should be used with names that have no specified namespace prefix
IllegalArgumentException - if the URI is null| Method Detail |
|---|
public NamespaceRegistry getDefaultNamespaces()
public ExecutionContext create()
ExecutionContext using a snapshot of the access control context obtained
from the current calling context.
create in interface ExecutionContextFactorynull.ExecutionContextFactory.create()public ExecutionContext create(AccessControlContext accessControlContext)
ExecutionContext using the supplied access control context.
create in interface ExecutionContextFactoryaccessControlContext - An access control context.
null.ExecutionContextFactory.create(java.security.AccessControlContext)public ExecutionContext create(LoginContext loginContext)
ExecutionContext for the supplied LoginContext.
create in interface ExecutionContextFactoryloginContext - the JAAS login context
ExecutionContextFactory.create(javax.security.auth.login.LoginContext)
public ExecutionContext create(String name)
throws LoginException
create in interface ExecutionContextFactoryname - the name of the JAAS login context
LoginException - if there name is invalid (or there is no login context named "other"), or if the
default callback handler JAAS property was not set or could not be loadedExecutionContextFactory.create(java.lang.String)
public ExecutionContext create(String name,
Subject subject)
throws LoginException
create in interface ExecutionContextFactoryname - the name of the JAAS login contextsubject - the subject to authenticate
LoginException - if there name is invalid (or there is no login context named "other"), if the default
callback handler JAAS property was not set or could not be loaded, or if the subject is null or
unknownExecutionContextFactory.create(java.lang.String, javax.security.auth.Subject)
public ExecutionContext create(String name,
CallbackHandler callbackHandler)
throws LoginException
create in interface ExecutionContextFactoryname - the name of the JAAS login contextcallbackHandler - the callback handler that will be used by LoginModules to communicate with the user.
LoginException - if there name is invalid (or there is no login context named "other"), or if the
callbackHandler is nullExecutionContextFactory.create(java.lang.String, javax.security.auth.callback.CallbackHandler)
public ExecutionContext create(String name,
Subject subject,
CallbackHandler callbackHandler)
throws LoginException
create in interface ExecutionContextFactoryname - the name of the JAAS login contextsubject - the subject to authenticatecallbackHandler - the callback handler that will be used by LoginModules to communicate with the user.
LoginException - if there name is invalid (or there is no login context named "other"), if the default
callback handler JAAS property was not set or could not be loaded, if the subject is null or unknown,
or if the callbackHandler is nullExecutionContextFactory.create(java.lang.String, javax.security.auth.Subject,
javax.security.auth.callback.CallbackHandler)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||