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.

Method Index

 o equals(Object)
This function returns true if the object passed matches the principal represented in this interface.
 o getName()
return the name of the principal.
 o hashCode()
return a hashcode for the principal.
 o toString()
Prints a stringified version of the principal.

Methods

 o 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
 o toString
  public abstract String toString()
Prints a stringified version of the principal.
Returns:
the string representation of the principal.
Overrides:
toString in class Object
 o hashCode
  public abstract int hashCode()
return a hashcode for the principal.
Overrides:
hashCode in class Object
 o getName
  public abstract String getName()
return the name of the principal.

All Packages  Class Hierarchy  This Package  Previous  Next  Index