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