|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.graph.BasicExecutionContextFactory
public class BasicExecutionContextFactory
Basic implementation of a ExecutionContextFactory
that returns basic
ExecutionContext
s.
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 nullMethod 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 ExecutionContextFactory
null
.ExecutionContextFactory.create()
public ExecutionContext create(AccessControlContext accessControlContext)
ExecutionContext
using the supplied access control context
.
create
in interface ExecutionContextFactory
accessControlContext
- An access control context.
null
.ExecutionContextFactory.create(java.security.AccessControlContext)
public ExecutionContext create(LoginContext loginContext)
ExecutionContext
for the supplied LoginContext
.
create
in interface ExecutionContextFactory
loginContext
- the JAAS login context
ExecutionContextFactory.create(javax.security.auth.login.LoginContext)
public ExecutionContext create(String name) throws LoginException
create
in interface ExecutionContextFactory
name
- 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 ExecutionContextFactory
name
- 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 ExecutionContextFactory
name
- the name of the JAAS login contextcallbackHandler
- the callback handler that will be used by LoginModule
s 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 ExecutionContextFactory
name
- the name of the JAAS login contextsubject
- the subject to authenticatecallbackHandler
- the callback handler that will be used by LoginModule
s 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 |