org.entityfs.entityattrs
Class AbstractAccessControllerUidGidSubject

java.lang.Object
  extended by org.entityfs.security.AbstractAccessControllerSubject
      extended by 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

Constructor Summary
protected AbstractAccessControllerUidGidSubject(AccessController ac, int uid, int primaryGid)
           
protected AbstractAccessControllerUidGidSubject(AccessController ac, int uid, int primaryGid, Collection<Integer> secondaryGids)
           
 
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.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

AbstractAccessControllerUidGidSubject

protected AbstractAccessControllerUidGidSubject(AccessController ac,
                                                int uid,
                                                int primaryGid)

AbstractAccessControllerUidGidSubject

protected AbstractAccessControllerUidGidSubject(AccessController ac,
                                                int uid,
                                                int primaryGid,
                                                Collection<Integer> secondaryGids)
Method Detail

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.