Uses of Package
java.security

Packages that usejava.security
Package
Description
com.sun.jdi
This is the core package of the Java Debug Interface (JDI), it defines mirrors for values, types, and the target VirtualMachine itself - as well bootstrapping facilities.
com.sun.net.httpserver
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers.
com.sun.security.auth
Provides implementations ofPrincipal.
com.sun.security.jgss
This package defines classes and interfaces for the JDK extensions to the GSS-API.
com.sun.tools.attach
Provides the API to attach to a Java virtual machine.
java.awt
Contains all of the classes for creating user interfaces and for painting graphics and images.
java.io
Provides for system input and output through data streams, serialization and the file system.
java.lang
Provides classes that are fundamental to the design of the Java programming language.
java.lang.instrument
Provides services that allow Java programming language agents to instrument programs running on the Java Virtual Machine (JVM).
java.lang.management
Provides the management interfaces for monitoring and management of the Java virtual machine and other components in the Java runtime.
java.lang.reflect
Provides classes and interfaces for obtaining reflective information about classes and objects.
java.net
Provides the classes for implementing networking applications.
java.nio.file
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
java.nio.file.attribute
Interfaces and classes providing access to file and file system attributes.
java.security
Provides the classes and interfaces for the security framework.
java.security.cert
Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
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.
java.security.spec
Provides classes and interfaces for key specifications and algorithm parameter specifications.
java.sql
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
java.util
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
java.util.concurrent
Utility classes commonly useful in concurrent programming.
java.util.jar
Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file.
java.util.logging
Provides the classes and interfaces of the Java 2 platform's core logging facilities.
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
Provides the core classes for the Java Management Extensions.
javax.management.remote
Interfaces for remote access to JMX MBean servers.
javax.net.ssl
Provides classes for the secure socket package.
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.x500
This package contains the classes that should be used to store X500 Principal and X500 Private Credentials in aSubject.
javax.security.cert
Provides classes for public key certificates.
javax.smartcardio
Java™ Smart Card I/O API.
javax.sound.sampled
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
javax.xml.crypto
Common classes for XML cryptography.
javax.xml.crypto.dsig
Classes for generating and validating XML digital signatures.
javax.xml.crypto.dsig.dom
DOM-specific classes for thejavax.xml.crypto.dsig package.
javax.xml.crypto.dsig.keyinfo
Classes for parsing and processingKeyInfo elements and structures.
jdk.jfr
This package provides classes to create events and control Flight Recorder.
jdk.net
Platform specific socket options for thejava.net andjava.nio.channels socket classes.
jdk.security.jarsigner
This package defines APIs for signing jar files.
org.ietf.jgss
This package presents a framework that allows application developers to make use of security services like authentication, data integrity and data confidentiality from a variety of underlying security mechanisms like Kerberos, using a unified API.
  • Classes injava.security used bycom.sun.jdi
    Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Class
    Description
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
  • Class
    Description
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
  • Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Classes injava.security used byjava.awt
    Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Classes injava.security used byjava.io
    Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
    Abstract class representing a collection of Permission objects.
  • Classes injava.security used byjava.lang
    Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
    TheProtectionDomain class encapsulates the characteristics of a domain, which encloses a set of classes whose instances are granted a set of permissions.
  • Class
    Description
    TheProtectionDomain class encapsulates the characteristics of a domain, which encloses a set of classes whose instances are granted a set of permissions.
  • Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Classes injava.security used byjava.net
    Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This class extends the concept of a codebase to encapsulate not only the location (URL) but also the certificate chains that were used to verify signed code originating from that location.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
    Abstract class representing a collection of Permission objects.
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
    This class extendsClassLoader with additional support for defining classes with an associated code source and permissions.
  • Classes injava.security used byjava.nio.file
    Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Class
    Description
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
  • Classes injava.security used byjava.security
    Class
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class was only useful in conjunction with thethe Security Manager, which is no longer supported.
    Deprecated, for removal: This API element is subject to removal in a future version.
    This exception was only useful in conjunction withthe Security Manager, which is no longer supported.
    TheAlgorithmParameterGenerator class is used to generate a set of parameters to be used with a certain algorithm.
    This class defines theService Provider Interface (SPI) for theAlgorithmParameterGenerator class, which is used to generate a set of parameters to be used with a certain algorithm.
    This class is used as an opaque representation of cryptographic parameters.
    This class defines theService Provider Interface (SPI) for theAlgorithmParameters class, which is used to manage algorithm parameters.
    An asymmetric key, which can be either a public key or a private key.
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class is deprecated and subject to removal in a future version of Java SE.
    This class encapsulates information about a code signer.
    This class extends the concept of a codebase to encapsulate not only the location (URL) but also the certificate chains that were used to verify signed code originating from that location.
    An enumeration of cryptographic primitives.
    This is the generic Message Digest exception.
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class was only useful in conjunction withthe Security Manager, which is no longer supported.
    The reseedable and prediction resistance capabilities of a DRBG.
    DRBG parameters for instantiation.
    DRBG parameters for random bits generation.
    DRBG parameters for reseed.
    TheGeneralSecurityException class is a generic security exception class that provides type safety for all the security-related exception classes that extend from it.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class is deprecated and subject to removal in a future version of Java SE.
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class is deprecated and subject to removal in a future version of Java SE.
    This is the exception for invalid or inappropriate algorithm parameters.
    This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc.).
    This exception, designed for use by the JCA/JCE engine classes, is thrown when an invalid parameter is passed to a method.
    TheKey interface is the top-level interface for all keys.
    This is the basic key exception.
    Key factories are used to convertkeys (opaque cryptographic keys of typeKey) intokey specifications (transparent representations of the underlying key material), and vice versa.
    This class defines theService Provider Interface (SPI) for theKeyFactory class.
    This is the general key management exception for all operations dealing with key management.
    This class is a simple holder for a key pair (a public key and a private key).
    TheKeyPairGenerator class is used to generate pairs of public and private keys.
    This class defines theService Provider Interface (SPI) for theKeyPairGenerator class, which is used to generate pairs of public and private keys.
    Key type.
    This class represents a storage facility for cryptographic keys and certificates.
    A description of a to-be-instantiatedKeyStore object.
    A marker interface forKeyStore entry types.
    An attribute associated with a keystore entry.
    A marker interface forKeyStoreload andstore parameters.
    A marker interface for keystore protection parameters.
    This is the generic KeyStore exception.
    This class defines theService Provider Interface (SPI) for theKeyStore class.
    ThisMessageDigest class provides applications the functionality of a message digest algorithm, such as SHA-1 or SHA-256.
    This class defines theService Provider Interface (SPI) for theMessageDigest class, which provides the functionality of a message digest algorithm, such as MD5 or SHA.
    This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
    This exception is thrown when a particular security provider is requested but is not available in the environment.
    Abstract class for representing access to a system resource.
    Abstract class representing a collection of Permission objects.
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class was only useful in conjunction withthe Security Manager, which is no longer supported.
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class was only useful in conjunction withthe Security Manager, which is no longer supported.
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
    A private key.
    A computation to be performed by invokingAccessController.doPrivileged on thePrivilegedAction object.
    This exception is thrown bydoPrivileged(PrivilegedExceptionAction) anddoPrivileged(PrivilegedExceptionAction, AccessControlContext context) to indicate that the action being performed threw a checked exception.
    A computation to be performed that throws one or more checked exceptions.
    TheProtectionDomain class encapsulates the characteristics of a domain, which encloses a set of classes whose instances are granted a set of permissions.
    This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.
    The description of a security service.
    A public key.
    This class provides a cryptographically strong random number generator (RNG).
    A marker interface for parameters used in variousSecureRandom methods.
    This class defines theService Provider Interface (SPI) for theSecureRandom class.
    TheSignature class is used to provide applications the functionality of a digital signature algorithm.
    This is the generic Signature exception.
    This class defines theService Provider Interface (SPI) for theSignature class, which is used to provide the functionality of a digital signature algorithm.
    This class encapsulates information about a signed timestamp.
    This exception is thrown if an entry in the keystore cannot be recovered.
    This exception is thrown if a key in the keystore cannot be recovered.
  • Class
    Description
    TheGeneralSecurityException class is a generic security exception class that provides type safety for all the security-related exception classes that extend from it.
    This is the exception for invalid or inappropriate algorithm parameters.
    This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc.).
    This class represents a storage facility for cryptographic keys and certificates.
    This is the generic KeyStore exception.
    This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
    This exception is thrown when a particular security provider is requested but is not available in the environment.
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
    This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.
    A public key.
    This is the generic Signature exception.
  • Class
    Description
    An asymmetric key, which can be either a public key or a private key.
    TheKey interface is the top-level interface for all keys.
    A private key.
    A public key.
    This class provides a cryptographically strong random number generator (RNG).
  • Class
    Description
    TheGeneralSecurityException class is a generic security exception class that provides type safety for all the security-related exception classes that extend from it.
  • Classes injava.security used byjava.sql
    Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Classes injava.security used byjava.util
    Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
    Abstract class representing a collection of Permission objects.
  • Class
    Description
    A computation to be performed by invokingAccessController.doPrivileged on thePrivilegedAction object.
    A computation to be performed that throws one or more checked exceptions.
  • Classes injava.security used byjava.util.jar
    Class
    Description
    This class encapsulates information about a code signer.
  • Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Classes injava.security used byjavax.crypto
    Class
    Description
    This class is used as an opaque representation of cryptographic parameters.
    TheGeneralSecurityException class is a generic security exception class that provides type safety for all the security-related exception classes that extend from it.
    This is the exception for invalid or inappropriate algorithm parameters.
    This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc.).
    TheKey interface is the top-level interface for all keys.
    This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
    This exception is thrown when a particular security provider is requested but is not available in the environment.
    A private key.
    This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.
    A public key.
    This class provides a cryptographically strong random number generator (RNG).
  • Class
    Description
    An asymmetric key, which can be either a public key or a private key.
    TheKey interface is the top-level interface for all keys.
    A private key.
    A public key.
  • Class
    Description
    This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc.).
    TheKey interface is the top-level interface for all keys.
  • Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
  • Classes injava.security used byjavax.net.ssl
    Class
    Description
    This interface specifies constraints for cryptographic algorithms, keys (key sizes), and other algorithm parameters.
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    This is the exception for invalid or inappropriate algorithm parameters.
    This is the general key management exception for all operations dealing with key management.
    This class represents a storage facility for cryptographic keys and certificates.
    A description of a to-be-instantiatedKeyStore object.
    This is the generic KeyStore exception.
    This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
    This exception is thrown when a particular security provider is requested but is not available in the environment.
    Abstract class for representing access to a system resource.
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
    A private key.
    This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.
    This class provides a cryptographically strong random number generator (RNG).
    This exception is thrown if a key in the keystore cannot be recovered.
  • Class
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class was only useful in conjunction with thethe Security Manager, which is no longer supported.
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class was only useful in conjunction withthe Security Manager, which is no longer supported.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
    Abstract class representing a collection of Permission objects.
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
    A computation to be performed by invokingAccessController.doPrivileged on thePrivilegedAction object.
    This exception is thrown bydoPrivileged(PrivilegedExceptionAction) anddoPrivileged(PrivilegedExceptionAction, AccessControlContext context) to indicate that the action being performed threw a checked exception.
    A computation to be performed that throws one or more checked exceptions.
    TheProtectionDomain class encapsulates the characteristics of a domain, which encloses a set of classes whose instances are granted a set of permissions.
  • Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    TheKey interface is the top-level interface for all keys.
    Abstract class for representing access to a system resource.
    Abstract class representing a collection of Permission objects.
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
  • Class
    Description
    TheGeneralSecurityException class is a generic security exception class that provides type safety for all the security-related exception classes that extend from it.
    This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
    This exception is thrown when a particular security provider is requested but is not available in the environment.
    This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.
  • Class
    Description
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
    A private key.
  • Class
    Description
    This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc.).
    This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
    This exception is thrown when a particular security provider is requested but is not available in the environment.
    This interface represents the abstract notion of aPrincipal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
    A public key.
    This is the generic Signature exception.
  • Class
    Description
    This interface represents a guard, which is an object that is used to protect access to another object.
    This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
    This exception is thrown when a particular security provider is requested but is not available in the environment.
    Abstract class for representing access to a system resource.
    This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.
  • Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Class
    Description
    TheKey interface is the top-level interface for all keys.
  • Class
    Description
    This is the exception for invalid or inappropriate algorithm parameters.
    This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
    This exception is thrown when a particular security provider is requested but is not available in the environment.
    This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.
  • Class
    Description
    TheKey interface is the top-level interface for all keys.
  • Class
    Description
    This is the basic key exception.
    This exception is thrown when a particular security provider is requested but is not available in the environment.
    This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.
    A public key.
  • Classes injava.security used byjdk.jfr
    Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Classes injava.security used byjdk.net
    Class
    Description
    TheBasicPermission class extends thePermission class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission.
    This interface represents a guard, which is an object that is used to protect access to another object.
    Abstract class for representing access to a system resource.
  • Class
    Description
    AKeyStore entry that holds aPrivateKey and corresponding certificate chain.
    This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
    A private key.
    This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.
  • Classes injava.security used byorg.ietf.jgss
    Class
    Description
    This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.