public interface Principal
X509Certificate
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object
Compares this principal to the specified object.
|
String |
getName()
Returns the name of this principal.
|
int |
hashCode()
Returns a hashcode for this principal.
|
default boolean |
implies(Subject
Returns true if the specified subject is implied by this principal.
|
String |
toString()
Returns a string representation of this principal.
|
boolean equals(Objectanother)
equals in class
Object
another - principal to compare with.
Object.hashCode() ,
HashMap
StringtoString()
int hashCode()
hashCode in class
Object
Object.equals(java.lang.Object) ,
System.identityHashCode(java.lang.Object)
StringgetName()
default boolean implies(Subjectsubject)
The default implementation of this method returns true if subject is non-null and contains at least one principal that is equal to this principal.
Subclasses may override this with a different implementation, if necessary.
subject - the
Subject
subject is non-null and is implied by this principal, or false otherwise.