| Package | Description | 
|---|---|
| java.security | Provides the classes and interfaces for the security framework. | 
| java.security.interfaces | Provides interfaces for generating RSA (Rivest, Shamir and
 Adleman AsymmetricCipher algorithm)
 keys as defined in the RSA Laboratory Technical Note
 PKCS#1, and DSA (Digital Signature
 Algorithm) keys as defined in NIST's FIPS-186. | 
| javax.crypto | Provides the classes and interfaces for cryptographic operations. | 
| javax.crypto.interfaces | Provides interfaces for Diffie-Hellman keys as defined in
RSA Laboratories' PKCS #3. | 
| javax.crypto.spec | Provides classes and interfaces for key specifications and algorithm
parameter specifications. | 
| javax.management.remote | Interfaces for remote access to
        JMX MBean servers. | 
| javax.management.remote.rmi | The RMI connector is a connector for the JMX Remote API that
      uses RMI to transmit client requests to a remote MBean server. | 
| javax.security.auth | This package provides a framework for authentication and
 authorization. | 
| javax.security.auth.kerberos | This package contains utility classes related to the Kerberos network
 authentication protocol. | 
| javax.security.auth.login | This package provides a pluggable authentication framework. | 
| javax.security.auth.spi | This package provides the interface to be used for
 implementing pluggable authentication modules. | 
| javax.security.auth.x500 | This package contains the classes that should be used to store
 X500 Principal and X500 Private Credentials in a
 Subject. | 
| Class | Description | 
|---|---|
| Destroyable | Objects such as credentials may optionally implement this interface
 to provide the capability to destroy its contents. | 
| DestroyFailedException | Signals that a  destroyoperation failed. | 
| Subject |  A  Subjectrepresents a grouping of related information
 for a single entity, such as a person. | 
| Class | Description | 
|---|---|
| Destroyable | Objects such as credentials may optionally implement this interface
 to provide the capability to destroy its contents. | 
| Class | Description | 
|---|---|
| Destroyable | Objects such as credentials may optionally implement this interface
 to provide the capability to destroy its contents. | 
| Class | Description | 
|---|---|
| Destroyable | Objects such as credentials may optionally implement this interface
 to provide the capability to destroy its contents. | 
| Class | Description | 
|---|---|
| Destroyable | Objects such as credentials may optionally implement this interface
 to provide the capability to destroy its contents. | 
| Class | Description | 
|---|---|
| Subject |  A  Subjectrepresents a grouping of related information
 for a single entity, such as a person. | 
| Class | Description | 
|---|---|
| Subject |  A  Subjectrepresents a grouping of related information
 for a single entity, such as a person. | 
| Class | Description | 
|---|---|
| DestroyFailedException | Signals that a  destroyoperation failed. | 
| Policy | Deprecated. 
 as of JDK version 1.4 -- Replaced by java.security.Policy.
              java.security.Policy has a method:
  
      public PermissionCollection getPermissions
          (java.security.ProtectionDomain pd)
 and ProtectionDomain has a constructor:
      public ProtectionDomain
          (CodeSource cs,
           PermissionCollection permissions,
           ClassLoader loader,
           Principal[] principals)
 These two APIs provide callers the means to query the
 Policy for Principal-based Permission entries. | 
| RefreshFailedException | Signals that a  refreshoperation failed. | 
| Subject |  A  Subjectrepresents a grouping of related information
 for a single entity, such as a person. | 
| Class | Description | 
|---|---|
| Destroyable | Objects such as credentials may optionally implement this interface
 to provide the capability to destroy its contents. | 
| DestroyFailedException | Signals that a  destroyoperation failed. | 
| Refreshable | Objects such as credentials may optionally implement this
 interface to provide the capability to refresh itself. | 
| RefreshFailedException | Signals that a  refreshoperation failed. | 
| Class | Description | 
|---|---|
| Subject |  A  Subjectrepresents a grouping of related information
 for a single entity, such as a person. | 
| Class | Description | 
|---|---|
| Subject |  A  Subjectrepresents a grouping of related information
 for a single entity, such as a person. | 
| Class | Description | 
|---|---|
| Destroyable | Objects such as credentials may optionally implement this interface
 to provide the capability to destroy its contents. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.