org.entityfs.entityattrs
Class AbstractAccessControllerUidGidSubject
java.lang.Object
org.entityfs.security.AbstractAccessControllerSubject
org.entityfs.entityattrs.AbstractAccessControllerUidGidSubject
- All Implemented Interfaces:
- Serializable, UidGidSubject, Subject
public abstract class AbstractAccessControllerUidGidSubject
- extends AbstractAccessControllerSubject
- implements UidGidSubject
This abstract class can be used as the starting point for an implementation
of an UidGidSubject
that uses an AccessController
.
- Since:
- 1.0
- Author:
- Karl Gustafsson
- See Also:
- Serialized Form
- In_jar:
- entityfs-core
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAccessControllerUidGidSubject
protected AbstractAccessControllerUidGidSubject(AccessController ac,
int uid,
int primaryGid)
AbstractAccessControllerUidGidSubject
protected AbstractAccessControllerUidGidSubject(AccessController ac,
int uid,
int primaryGid,
Collection<Integer> secondaryGids)
getUid
public final int getUid()
- Description copied from interface:
UidGidSubject
- Get the UID.
- Specified by:
getUid
in interface UidGidSubject
- Returns:
- The UID (a positive integer).
getPrimaryGid
public final int getPrimaryGid()
- Description copied from interface:
UidGidSubject
- Get the primary GID.
- Specified by:
getPrimaryGid
in interface UidGidSubject
- Returns:
- The primary GID (a positive integer).
getSecondaryGids
public Set<Integer> getSecondaryGids()
- Description copied from interface:
UidGidSubject
- Get the set of secondary GID:s.
- Specified by:
getSecondaryGids
in interface UidGidSubject
- Returns:
- The set of secondary GID:s. Possibly empty, but never
null
.