javax.security.auth
Stay organized with collections
Save and categorize content based on your preferences.
This package provides a framework for authentication and
authorization. The framework allows
authentication to be performed in pluggable fashion. Different
authentication modules can be plugged under an application without
requiring modifications to the application itself. The
authorization component allows specification of access controls
based on code location, code signers and code executors
(Subjects).
Interfaces
Destroyable |
Objects such as credentials may optionally implement this interface
to provide the capability to destroy its contents. |
Classes
Exceptions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-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 2024-07-10 UTC."],[[["\u003cp\u003eThis package offers a pluggable framework for authentication, allowing different modules to be used without altering the application's code.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is managed through access controls determined by code location, signers, and executors, represented as 'Subjects'.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSubject\u003c/code\u003e class embodies a collection of information associated with a single entity, like a user or service.\u003c/p\u003e\n"],["\u003cp\u003eWhile containing legacy elements, the package's core functionality centers on flexible authentication and granular authorization.\u003c/p\u003e\n"]]],[],null,["# javax.security.auth\n\nThis package provides a framework for authentication and authorization. The framework allows authentication to be performed in pluggable fashion. Different authentication modules can be plugged under an application without requiring modifications to the application itself. The authorization component allows specification of access controls based on code location, code signers and code executors (Subjects).\n\n### Interfaces\n\n|---------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|\n| [Destroyable](../../../../reference/javax/security/auth/Destroyable.html) | Objects such as credentials may optionally implement this interface to provide the capability to destroy its contents. |\n\n### Classes\n\n|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|\n| [PrivateCredentialPermission](../../../../reference/javax/security/auth/PrivateCredentialPermission.html) | Legacy security code; do not use. |\n| [Subject](../../../../reference/javax/security/auth/Subject.html) | A `Subject` represents a grouping of related information for a single entity, such as a person. |\n| [SubjectDomainCombiner](../../../../reference/javax/security/auth/SubjectDomainCombiner.html) | Legacy security code; do not use. |\n\n### Exceptions\n\n|-------------------------------------------------------------------------------------------------|--------------------------------------------|\n| [DestroyFailedException](../../../../reference/javax/security/auth/DestroyFailedException.html) | Signals that a `destroy` operation failed. |"]]