This interface represents the abstract notion of a principal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
This interface represents the abstract notion of a principal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
(equals this another)Compares this principal to the specified object. Returns true if the object passed in matches the principal represented by the implementation of this interface.
another - principal to compare with. - java.lang.Object
returns: true if the principal passed in is the same as that
encapsulated by this principal, and false otherwise. - boolean
Compares this principal to the specified object. Returns true if the object passed in matches the principal represented by the implementation of this interface. another - principal to compare with. - `java.lang.Object` returns: true if the principal passed in is the same as that encapsulated by this principal, and false otherwise. - `boolean`
(get-name this)Returns the name of this principal.
returns: the name of this principal. - java.lang.String
Returns the name of this principal. returns: the name of this principal. - `java.lang.String`
(hash-code this)Returns a hashcode for this principal.
returns: a hashcode for this principal. - int
Returns a hashcode for this principal. returns: a hashcode for this principal. - `int`
(implies this subject)Returns true if the specified subject is implied by this principal.
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 - javax.security.auth.Subject
returns: true if subject is non-null and is
implied by this principal, or false otherwise. - default boolean
Returns true if the specified subject is implied by this principal.
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 - `javax.security.auth.Subject`
returns: true if subject is non-null and is
implied by this principal, or false otherwise. - `default boolean`(to-string this)Returns a string representation of this principal.
returns: a string representation of this principal. - java.lang.String
Returns a string representation of this principal. returns: a string representation of this principal. - `java.lang.String`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |