java.security
Interface Principal
java.lang.Object
|
+--java.security.Principal
public interface Principal
This interface models an entity (such as a user or a certificate authority)
for the purposes of applying the Java security model.
Since:Author:- Aaron M. Renn <arenn@urbanophile.com>
See Also:
equals
public boolean equals(java.lang.Object obj)
This method tests another Principal
object for equality
with this one.
Parameters:
Returns:
- true if the specified
Principal
is equal
getName
public String getName()
This method returns a String
that names this
Principal
.
Returns:
- the name of this
Principal
hashCode
public int hashCode()
This method returns a hash code value for this Principal
.
Remember the contract of hashCode - two objects which compare as
equals() must have the same hashCode().
Returns:
toString
public String toString()
This method returns a String
representation of this
Principal
.
Returns:
- this
Principal
represented as a String