java.security
public interface Principal
Since: 1.1
See Also: X509Certificate
UNKNOWN: updated to 1.4
Method Summary | |
---|---|
boolean | equals(Object obj)
This method tests another Principal object for equality
with this one.
|
String | getName()
This method returns a String that names this
Principal .
|
int | hashCode()
This method returns a hash code value for this Principal .
|
String | toString()
This method returns a String representation of this
Principal .
|
Principal
object for equality
with this one.
Parameters: obj the Object to test for equality
Returns: true if the specified Principal
is equal
String
that names this
Principal
.
Returns: the name of this Principal
Principal
.
Remember the contract of hashCode - two objects which compare as
equals() must have the same hashCode().
Returns: a hash value
String
representation of this
Principal
.
Returns: this Principal
represented as a String