Methods Summary |
---|
public boolean | addMember(java.security.Principal p)Adds the specified member to the group.
// we don't need to add members because the ip address is a
// subnet mask
return true;
|
public boolean | equals(java.lang.Object p)Compares this group to the specified object. Returns true if the object
passed in matches the group represented.
if (p instanceof PrincipalImpl || p instanceof GroupImpl){
if ((super.hashCode() & p.hashCode()) == p.hashCode()) return true;
else return false;
} else {
return false;
}
|
public int | hashCode()
return super.hashCode();
|
public boolean | isMember(java.security.Principal p)Returns true if the passed principal is a member of the group.
if ((p.hashCode() & super.hashCode()) == p.hashCode()) return true;
else return false;
|
public java.util.Enumeration | members()Returns an enumeration which contains the subnet mask.
Vector v = new Vector(1);
v.addElement(this);
return v.elements();
|
public boolean | removeMember(java.security.Principal p)Removes the specified member from the group. (Not implemented)
return true;
|
public java.lang.String | toString()Prints a string representation of this group.
return ("GroupImpl :"+super.getAddress().toString());
|