public interface Principal
X509Certificate
Modifier and Type | Method and Description |
---|---|
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
in class Object
another
- principal to compare with.Object.hashCode()
,
HashMap
String toString()
int hashCode()
hashCode
in class Object
Object.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 Subject
subject
is non-null and is
implied by this principal, or false otherwise. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.