|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutionContextFactory
A factory for creating ExecutionContext
instances. Each execution context is affiliated with a JAAS Subject
,
and thus the factory methods take the same parameters that the JAAS LoginContext
take.
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)
|
Method Detail |
---|
ExecutionContext create()
ExecutionContext
using a snapshot of the access control context
obtained
from the current calling context.
null
.AccessController.getContext()
ExecutionContext create(AccessControlContext accessControlContext)
ExecutionContext
using the supplied access control context
.
accessControlContext
- An access control context.
null
.
IllegalArgumentException
- if accessControlContext
is null
.ExecutionContext create(LoginContext loginContext)
ExecutionContext
for the supplied LoginContext
.
loginContext
- the JAAS login context
IllegalArgumentException
- if the loginContext
is nullExecutionContext create(String name) throws LoginException
name
- the name of the JAAS login context
IllegalArgumentException
- if the name
is null
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 loadedExecutionContext create(String name, Subject subject) throws LoginException
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
unknownExecutionContext create(String name, CallbackHandler callbackHandler) throws LoginException
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 nullExecutionContext create(String name, Subject subject, CallbackHandler callbackHandler) throws LoginException
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 null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |