Group, GroupPrincipal, UserPrincipalIdentity, IdentityScope, Signer, X500Principalpublic interface Principal
X509Certificate| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
equals(Object another) |
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 subject) |
Returns true if the specified subject is implied by this principal.
|
String |
toString() |
Returns a string representation of this principal.
|
boolean equals(Object another)
equals 在类中 Objectanother - principal to compare with.Object.hashCode(),
HashMapString toString()
int hashCode()
hashCode 在类中 ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)String getName()
default boolean implies(Subject subject)
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 Subjectsubject is non-null and is
implied by this principal, or false otherwise.