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.


Constructor Index

 o PrincipalImpl(String)
Construct a principal from a string user name.

Method Index

 o equals(Object)
This function returns true if the object passed matches the principal represented in this implementation
 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.

Constructors

 o PrincipalImpl
 public PrincipalImpl(String user)
Construct a principal from a string user name.

Parameters:
user - The string form of the principal name.

Methods

 o 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
 o toString
 public String toString()
Prints a stringified version of the principal.

Overrides:
toString in class Object
 o hashCode
 public int hashCode()
return a hashcode for the principal.

Overrides:
hashCode in class Object
 o getName
 public String getName()
return the name of the principal.


All Packages  Class Hierarchy  This Package  Previous  Next  Index