|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.security.AbstractAccessControllerSubject
org.entityfs.security.SimpleAccessControllerSubject
public class SimpleAccessControllerSubject
This is a simple, immutable Subject implementation that uses an
AccessController and a fixed list of credentials.
| Constructor Summary | |
|---|---|
SimpleAccessControllerSubject(AccessController ac)
Create a Subject without any principals or credentials. |
|
SimpleAccessControllerSubject(AccessController ac,
Set<? extends Principal> principals,
Set<?> privateCreds,
Set<?> publicCreds)
Create a Subject with the supplied set of principals and
credentials. |
|
| Method Summary | ||
|---|---|---|
Set<Principal> |
getPrincipals()
Get the Subject's principals. |
|
|
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. |
|
| Methods inherited from class org.entityfs.security.AbstractAccessControllerSubject |
|---|
doAs, doAs, getSubset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleAccessControllerSubject(AccessController ac)
Subject without any principals or credentials.
ac - The AccessController.
public SimpleAccessControllerSubject(AccessController ac,
Set<? extends Principal> principals,
Set<?> privateCreds,
Set<?> publicCreds)
Subject with the supplied set of principals and
credentials.
ac - The AccessControllerprincipals - The Subject's principals. May be null.
The object stores a shallow copy of this set.privateCreds - The Subject's private credentials. May be
null. The object stores a shallow copy of this set.publicCreds - The Subject's public credentials. May be
null. The object stores a shallow copy of this set.| Method Detail |
|---|
public Set<Principal> getPrincipals()
Subject's principals.
Subject's set of principals.public <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.
public Set<Object> getPrivateCredentials()
public <T> Set<T> getPrivateCredentials(Class<T> c)
c - The credential class.
public Set<Object> getPublicCredentials()
public <T> Set<T> getPublicCredentials(Class<T> c)
c - The credential class.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||