|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Subject
This is EntityFS take on JAAS' Subject
class.
Method Summary | ||
---|---|---|
|
doAs(PrivilegedAction<T> action)
Perform the action as this subject. |
|
|
doAs(PrivilegedExceptionAction<T> action)
Perform the action as this subject. |
|
Set<Principal> |
getPrincipals()
Get the set of JAAS Principal :s for this subject. |
|
|
getPrincipals(Class<T> c)
Get a set of Principal :s for this subject that are instances or
subclasses of the given class. |
|
Set<Object> |
getPrivateCredentials()
Return the set of private credentials held by this subject. |
|
|
getPrivateCredentials(Class<T> c)
Return a set of private credentials for this subject where the credentials are instances or subclasses of the given class. |
|
Set<Object> |
getPublicCredentials()
Return the set of public credentials held by this subject. |
|
|
getPublicCredentials(Class<T> c)
Return a set of public credentials for this subject where the credentials are instances or subclasses of the given class. |
Method Detail |
---|
<T> T doAs(PrivilegedAction<T> action)
action
- The action to perform.
<T> T doAs(PrivilegedExceptionAction<T> action) throws Exception
action
- The action to perform.
Exception
- Any exception thrown from the action.Set<Principal> getPrincipals()
Principal
:s for this subject.
<T extends Principal> Set<T> getPrincipals(Class<T> c)
Principal
:s for this subject that are instances or
subclasses of the given class.
c
- The class
Set<Object> getPrivateCredentials()
<T> Set<T> getPrivateCredentials(Class<T> c)
c
- The credential class.
Set<Object> getPublicCredentials()
<T> Set<T> getPublicCredentials(Class<T> c)
c
- The credential class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |