Package java.security
Extensible cryptographic service provider infrastructure (SPI) for using
and defining services such as Certificates,
Keys, KeyStores, MessageDigests, and Signatures.
-
Interface Summary Interface Description Certificate Deprecated. DomainCombiner Legacy security code; do not use.Guard Guardimplementors protect access to other objects.Key Keyis the common interface for all keys.KeyStore.Entry Entryis the common marker interface for aKeyStoreentry.KeyStore.LoadStoreParameter LoadStoreParameterrepresents a parameter that specifies how aKeyStorecan be loaded and stored.KeyStore.ProtectionParameter ProtectionParameteris a marker interface for protection parameters.Policy.Parameters Legacy security code; do not use.Principal Principals are objects which have identities.PrivateKey PrivateKeyis the common interface for private keys.PrivilegedAction<T> Legacy security code; do not use.PrivilegedExceptionAction<T> Legacy security code; do not use.PublicKey PublicKeyis the common interface for public keys. -
Class Summary Class Description AccessControlContext Legacy security code; do not use.AccessController Legacy security code; do not use.AlgorithmParameterGenerator AlgorithmParameterGeneratoris an engine class which is capable of generating parameters for the algorithm it was initialized with.AlgorithmParameterGeneratorSpi AlgorithmParameterGeneratorSpiis the Service Provider Interface (SPI) definition forAlgorithmParameterGenerator.AlgorithmParameters AlgorithmParametersis an engine class which provides algorithm parameters.AlgorithmParametersSpi AlgorithmParametersSpiis the Service Provider Interface (SPI) definition forAlgorithmParameters.AllPermission Legacy security code; do not use.AuthProvider Legacy security code; do not use.BasicPermission Legacy security code; do not use.CodeSigner CodeSignerrepresents a signer of code.CodeSource Legacy security code; do not use.DigestInputStream DigestInputStreamis aFilterInputStreamwhich maintains an associated message digest.DigestOutputStream DigestOutputStreamis aFilterOutputStreamwhich maintains an associated message digest.GuardedObject GuardedObjectcontrols access to an object, by checking all requests for the object with aGuard.Identity Deprecated. IdentityScope Deprecated. KeyFactory KeyFactoryis an engine class that can be used to translate between public and private key objects and convert keys between their external representation, that can be easily transported and their internal representation.KeyFactorySpi KeyFactorySpiis the Service Provider Interface (SPI) definition forKeyFactory.KeyPair KeyPairis a container for a public key and a private key.KeyPairGenerator KeyPairGeneratoris an engine class which is capable of generating a private key and its related public key utilizing the algorithm it was initialized with.KeyPairGeneratorSpi KeyPairGeneratorSpiis the Service Provider Interface (SPI) definition forKeyPairGenerator.KeyRep KeyRepis a standardized representation for serializedKeyobjects.KeyStore KeyStoreis responsible for maintaining cryptographic keys and their owners.KeyStore.Builder Builderis used to construct new instances ofKeyStore.KeyStore.CallbackHandlerProtection KeyStore.PasswordProtection PasswordProtectionis aProtectionParameterthat protects aKeyStoreusing a password.KeyStore.PrivateKeyEntry PrivateKeyEntryrepresents aKeyStoreentry that holds a private key.KeyStore.SecretKeyEntry SecretKeyEntryrepresents aKeyStoreentry that holds a secret key.KeyStore.TrustedCertificateEntry TrustedCertificateEntryrepresents aKeyStoreentry that holds a trusted certificate.KeyStoreSpi KeyStoreSpiis the Service Provider Interface (SPI) definition forKeyStore.MessageDigest Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.MessageDigestSpi MessageDigestSpiis the Service Provider Interface (SPI) definition forMessageDigest.Permission Legacy security code; do not use.PermissionCollection Legacy security code; do not use.Permissions Legacy security code; do not use.Policy Legacy security code; do not use.PolicySpi Represents the Service Provider Interface (SPI) for java.security.Policy class.ProtectionDomain Legacy security code; do not use.Provider Provideris the abstract superclass for all security providers in the Java security infrastructure.Provider.Service Servicerepresents a service in the Java Security infrastructure.SecureClassLoader SecureClassLoaderrepresents aClassLoaderwhich associates the classes it loads with a code source and provide mechanisms to allow the relevant permissions to be retrieved.SecureRandom This class generates cryptographically secure pseudo-random numbers.SecureRandomSpi SecureRandomSpiis the Service Provider Interface (SPI) definition forSecureRandom.Security Securityis the central class in the Java Security API.SecurityPermission Legacy security code; do not use.Signature Signatureis an engine class which is capable of creating and verifying digital signatures, using different algorithms that have been registered with theSecurityclass.SignatureSpi SignatureSpiis the Service Provider Interface (SPI) definition forSignature.SignedObject ASignedObjectinstance acts as a container for another object.Signer Deprecated. Use thejava.security.certpackage andPrincipalinstead.Timestamp Timestamprepresents a signed time stamp.UnresolvedPermission Legacy security code; do not use. -
Enum Summary Enum Description KeyRep.Type Typeenumerates the supported key types. -
Exception Summary Exception Description AccessControlException AccessControlExceptionis thrown if the access control infrastructure denies protected access due to missing permissions.DigestException DigestExceptionis a general message digest exception.GeneralSecurityException GeneralSecurityExceptionis a general security exception and the superclass for all security specific exceptions.InvalidAlgorithmParameterException InvalidAlgorithmParameterExceptionindicates the occurrence of invalid algorithm parameters.InvalidKeyException InvalidKeyExceptionindicates exceptional conditions, caused by an invalid key.InvalidParameterException InvalidParameterExceptionindicates exceptional conditions, caused by invalid parameters.KeyException KeyExceptionis the common superclass of all key related exceptions.KeyManagementException KeyManagementExceptionis a general exception, thrown to indicate an exception during processing an operation concerning key management.KeyStoreException KeyStoreExceptionis a generalKeyStoreexception.NoSuchAlgorithmException NoSuchAlgorithmExceptionindicates that a requested algorithm could not be found.NoSuchProviderException NoSuchProviderExceptionindicates that a requested security provider could not be found.PrivilegedActionException Legacy security code; do not use.ProviderException ProviderExceptionis a general exception, thrown by securityProviders.SignatureException SignatureExceptionis a generalSignatureexception.UnrecoverableEntryException UnrecoverableEntryExceptionindicates, that aKeyStore.Entrycannot be recovered from aKeyStore.UnrecoverableKeyException UnrecoverableKeyExceptionindicates, that a key cannot be recovered from aKeyStore.
Certificateinstead.