Stay organized with collections
Save and categorize content based on your preferences.
javax.security.auth
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
Interfaces
Classes
Exceptions
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.
[[["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 2025-02-10 UTC."],[],[],null,["# javax.security.auth\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\njavax.security.auth\n===================\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\nInterfaces\n----------\n\n|-----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|\n| [Destroyable](/reference/javax/security/auth/Destroyable) | Objects such as credentials may optionally implement this interface to provide the capability to destroy its contents. |\n\nClasses\n-------\n\n|-------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|\n| [AuthPermission](/reference/javax/security/auth/AuthPermission) | Legacy security code; do not use. |\n| [PrivateCredentialPermission](/reference/javax/security/auth/PrivateCredentialPermission) | Legacy security code; do not use. |\n| [Subject](/reference/javax/security/auth/Subject) | A `Subject` represents a grouping of related information for a single entity, such as a person. |\n| [SubjectDomainCombiner](/reference/javax/security/auth/SubjectDomainCombiner) | Legacy security code; do not use. |\n\nExceptions\n----------\n\n|---------------------------------------------------------------------------------|--------------------------------------------|\n| [DestroyFailedException](/reference/javax/security/auth/DestroyFailedException) | Signals that a `destroy` operation failed. |\n\n-\n\n Interfaces\n ----------\n\n - [Destroyable](/reference/javax/security/auth/Destroyable)\n-\n\n Classes\n -------\n\n - [AuthPermission](/reference/javax/security/auth/AuthPermission)\n - [PrivateCredentialPermission](/reference/javax/security/auth/PrivateCredentialPermission)\n - [Subject](/reference/javax/security/auth/Subject)\n - [SubjectDomainCombiner](/reference/javax/security/auth/SubjectDomainCombiner)\n-\n\n Exceptions\n ----------\n\n - [DestroyFailedException](/reference/javax/security/auth/DestroyFailedException)"]]