public interface Principal
X509Certificate| Modifier and Type | Method and Description |
|---|---|
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. |
boolean equals(Object obj)
Principal object for equality
with this one.equals in class Objectobj - the Object to test for equalityPrincipal is equalObject.hashCode()String toString()
String representation of this
Principal.toString in class ObjectPrincipal represented as a StringObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)int hashCode()
Principal.
Remember the contract of hashCode - two objects which compare as
equals() must have the same hashCode().hashCode in class ObjectObject.equals(Object),
System.identityHashCode(Object)