|
|||||||||
| 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
org.entityfs.entityattrs.SimpleAccessControllerUidGidSubject
public class SimpleAccessControllerUidGidSubject
This is a simple, immutable UidGidSubject implementation that uses an
AccessController and a fixed list of credentials.
| Constructor Summary | |
|---|---|
SimpleAccessControllerUidGidSubject(AccessController ac,
int uid,
int gid)
Create a UidGidSubject without any principals, credentials or
secondary GID:s. |
|
SimpleAccessControllerUidGidSubject(AccessController ac,
int uid,
int gid,
Collection<Integer> secondaryGids)
Create a UidGidSubject without any principals or credentials. |
|
SimpleAccessControllerUidGidSubject(AccessController ac,
Set<? extends Principal> principals,
Set<?> privateCreds,
Set<?> publicCreds,
int uid,
int gid,
Collection<Integer> secondaryGids)
Create a UidGidSubject with the supplied set of principals and
credentials. |
|
| Method Summary | |
|---|---|
int |
getPrimaryGid()
Get the primary GID. |
Set<Integer> |
getSecondaryGids()
Get the set of secondary GID:s. |
int |
getUid()
Get the UID. |
| Methods inherited from class org.entityfs.security.SimpleAccessControllerSubject |
|---|
getPrincipals, getPrincipals, getPrivateCredentials, getPrivateCredentials, getPublicCredentials, getPublicCredentials |
| 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 |
| Methods inherited from interface org.entityfs.security.Subject |
|---|
doAs, doAs, getPrincipals, getPrincipals, getPrivateCredentials, getPrivateCredentials, getPublicCredentials, getPublicCredentials |
| Constructor Detail |
|---|
public SimpleAccessControllerUidGidSubject(AccessController ac,
int uid,
int gid)
throws IllegalArgumentException
UidGidSubject without any principals, credentials or
secondary GID:s.
ac - The access controller.uid - The Subject's user id.gid - The Subject's primary group id.
IllegalArgumentException - If the user id or the primary group id
is less than zero.
public SimpleAccessControllerUidGidSubject(AccessController ac,
int uid,
int gid,
Collection<Integer> secondaryGids)
throws IllegalArgumentException
UidGidSubject without any principals or credentials.
ac - The access controller.uid - The Subject's user id.gid - The Subject's primary group id.secondaryGids - The Subject's secondary group id:s.
IllegalArgumentException - If any of the id:s is less than zero.
public SimpleAccessControllerUidGidSubject(AccessController ac,
Set<? extends Principal> principals,
Set<?> privateCreds,
Set<?> publicCreds,
int uid,
int gid,
Collection<Integer> secondaryGids)
throws IllegalArgumentException
UidGidSubject 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.uid - The Subject's user id.gid - The Subject's primary group id.secondaryGids - The Subject's secondary group id:s.
IllegalArgumentException - If the user id or the group id is less
than zero.| Method Detail |
|---|
public int getUid()
UidGidSubject
getUid in interface UidGidSubjectpublic int getPrimaryGid()
UidGidSubject
getPrimaryGid in interface UidGidSubjectpublic Set<Integer> getSecondaryGids()
UidGidSubject
getSecondaryGids in interface UidGidSubjectnull.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||