Added in API level 1
Principal
interface Principal
| java.security.Principal |
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.
Summary
| Public methods | |
|---|---|
| abstract String! |
getName()Returns the name of this principal. |
| open Boolean |
Returns true if the specified subject is implied by this principal. |
Public methods
getName
Added in API level 1
abstract fun getName(): String!
Returns the name of this principal.
| Return | |
|---|---|
String! |
the name of this principal. |
implies
Added in API level 26
open fun implies(subject: Subject!): Boolean
Returns true if the specified subject is implied by this principal.
| Parameters | |
|---|---|
subject |
Subject!: the Subject |
| Return | |
|---|---|
Boolean |
true if subject is non-null and is implied by this principal, or false otherwise. |