Added in API level 1

Principal

interface Principal
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.

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!

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

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.