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.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.