| java.lang.Object org.apache.harmony.auth.UnixNumericGroupPrincipal
UnixNumericGroupPrincipal | public class UnixNumericGroupPrincipal implements Serializable,Principal(Code) | | This class represents a unix groups by its group id.
|
Method Summary | |
public boolean | equals(Object o) Tests objects for equality.
The objects are considered equals if they both are of type
UnixNumericGroupPrincipal and have the same gid. | public String | getName() Returns String representation of the stored GID. | public String | getObjectName() Returns group name. | public int | hashCode() Returns hash code of this object. | public long | longValue() Returns numeric representation of the stored gid. | public String | toString() Returns String representation of this object. |
UnixNumericGroupPrincipal | public UnixNumericGroupPrincipal(String gid, boolean primary)(Code) | | Creates the object using a String representation of gid.
Parameters: gid - string representation of gid Parameters: primary - shows whether the group is primarythrows NullPointerException if gid is null |
UnixNumericGroupPrincipal | public UnixNumericGroupPrincipal(long gid, boolean primary)(Code) | | Creates the object using gid passed.
Parameters: gid - gid Parameters: primary - shows whether the group is primary |
UnixNumericGroupPrincipal | public UnixNumericGroupPrincipal(long gid, String gname, boolean primary)(Code) | | Creates the object using gid and group's name passed.
Parameters: gid - gid Parameters: gname - group name Parameters: primary - shows whether the group is primary |
equals | public boolean equals(Object o)(Code) | | Tests objects for equality.
The objects are considered equals if they both are of type
UnixNumericGroupPrincipal and have the same gid.
|
getName | public String getName()(Code) | | Returns String representation of the stored GID.
|
getObjectName | public String getObjectName()(Code) | | Returns group name.
|
hashCode | public int hashCode()(Code) | | Returns hash code of this object.
|
longValue | public long longValue()(Code) | | Returns numeric representation of the stored gid.
|
toString | public String toString()(Code) | | Returns String representation of this object.
|
|
|