Interface java.security.acl.Principal
All Packages Class Hierarchy This Package Previous Next Index
Interface java.security.acl.Principal
- public interface Principal
- extends Object
This interface represents a principal.
-
equals(Object)
- This function returns true if the object passed matches
the principal represented in this interface.
-
getName()
- return the name of the principal.
-
hashCode()
- return a hashcode for the principal.
-
toString()
- Prints a stringified version of the principal.
equals
public abstract boolean equals(Object another)
- This function returns true if the object passed matches
the principal represented in this interface.
- Parameters:
- another - the Principal to compare with.
- Returns:
- true if the Principal passed is the same as that
encapsulated in this interface, false otherwise
- Overrides:
- equals in class Object
toString
public abstract String toString()
- Prints a stringified version of the principal.
- Returns:
- the string representation of the principal.
- Overrides:
- toString in class Object
hashCode
public abstract int hashCode()
- return a hashcode for the principal.
- Overrides:
- hashCode in class Object
getName
public abstract String getName()
- return the name of the principal.
All Packages Class Hierarchy This Package Previous Next Index