|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityContext
SecurityContext is responsible for managing lifecycle of security object such as
ICredentialsFactory
, IPermissionPolicy
etc, to creating LoginContext
es
for member and client authentications and checking permissions for client operations.
Method Summary | ||
---|---|---|
void |
checkPermission(Permission permission)
Checks whether current Subject has been granted specified permission or not. |
|
LoginContext |
createClientLoginContext(Credentials credentials)
Creates client LoginContext . |
|
LoginContext |
createMemberLoginContext(Credentials credentials)
Creates member LoginContext . |
|
|
createSecureCallable(Subject subject,
Callable<V> callable)
Creates secure callable that runs in a sandbox. |
|
void |
destroy()
Destroys SecurityContext and all security elements. |
|
|
doAsPrivileged(Subject subject,
PrivilegedExceptionAction<T> action)
Performs privileged work as a particular Subject . |
|
ICredentialsFactory |
getCredentialsFactory()
Returns current ICredentialsFactory . |
Method Detail |
---|
LoginContext createMemberLoginContext(Credentials credentials) throws LoginException
LoginContext
.
credentials
- member credentials
LoginContext
LoginException
LoginContext createClientLoginContext(Credentials credentials) throws LoginException
LoginContext
.
credentials
- client credentials
LoginContext
LoginException
ICredentialsFactory getCredentialsFactory()
ICredentialsFactory
.
ICredentialsFactory
void checkPermission(Permission permission) throws AccessControlException
Subject
has been granted specified permission or not.
permission
-
AccessControlException
<T> T doAsPrivileged(Subject subject, PrivilegedExceptionAction<T> action) throws Exception, SecurityException
Subject
.
subject
- action
-
SecurityException
Exception
<V>createSecureCallable(Subject subject, Callable<V> callable)
V
- return type of callablesubject
- callable
-
void destroy()
SecurityContext
and all security elements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |