Stay organized with collections
Save and categorize content based on your preferences.
Principal
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! |
Returns the name of this principal.
|
open Boolean |
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 2022-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-02-10 UTC."],[],[]]