Principal  |  API reference  |  Android Developers (original) (raw)

interface Principal

Known Direct Subclasses

Group This interface is used to represent a group of principals.
Identity This class represents identities: real-world objects such as people, companies or organizations whose identities can be authenticated using their public keys.
UserPrincipal A Principal representing an identity used to determine access rights to objects in a file system.
X500Principal This class represents an X.

Known Indirect Subclasses

GroupPrincipal A UserPrincipal representing a group identity, used to determine access rights to objects in a file system.
IdentityScope This class represents a scope for identities.
Signer This class is used to represent an Identity that can also digitally sign data.

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 implies(subject: Subject!) Returns true if the specified subject is implied by this principal.

Public methods

getName

abstract fun getName(): String!

Returns the name of this principal.

Return
String! the name of this principal.

implies

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.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.