Java.Security Namespace

Extensible cryptographic service provider infrastructure (SPI) for using and defining services such as ICertificate, Key, KeyStore, MessageDigest, and Signature.

Classes

AccessControlContext

Legacy security code; do not use.

AccessControlException

AccessControlException is thrown if the access control infrastructure denies protected access due to missing permissions.

AccessController

Legacy security code; do not use.

AlgorithmParameterGenerator

AlgorithmParameterGenerator is an engine class which is capable of generating parameters for the algorithm it was initialized with.

AlgorithmParameterGeneratorSpi

AlgorithmParameterGeneratorSpi is the Service Provider Interface (SPI) definition for AlgorithmParameterGenerator.

AlgorithmParameters

AlgorithmParameters is an engine class which provides algorithm parameters.

AlgorithmParametersSpi

AlgorithmParametersSpi is the Service Provider Interface (SPI) definition for AlgorithmParameters.

AllPermission

Legacy security code; do not use.

AuthProvider

Legacy security code; do not use.

BasicPermission

Legacy security code; do not use.

CodeSigner

CodeSigner represents a signer of code.

CodeSource

Legacy security code; do not use.

CryptoPrimitive
DigestException

DigestException is a general message digest exception.

DigestInputStream

DigestInputStream is a FilterInputStream which maintains an associated message digest.

DigestOutputStream

DigestOutputStream is a FilterOutputStream which maintains an associated message digest.

DomainLoadStoreParameter
GeneralSecurityException

GeneralSecurityException is a general security exception and the superclass for all security specific exceptions.

GuardedObject

GuardedObject controls access to an object, by checking all requests for the object with a Guard.

Identity

Identity represents an identity like a person or a company.

IdentityScope

IdentityScope represents a scope for Identity objects.

InvalidAlgorithmParameterException

InvalidAlgorithmParameterException indicates the occurrence of invalid algorithm parameters.

InvalidKeyException

InvalidKeyException indicates exceptional conditions, caused by an invalid key.

InvalidParameterException

InvalidParameterException indicates exceptional conditions, caused by invalid parameters.

Key

Key is the common interface for all keys.

KeyConsts
KeyException

KeyException is the common superclass of all key related exceptions.

KeyFactory
KeyFactorySpi

KeyFactorySpi is the Service Provider Interface (SPI) definition for KeyFactory.

KeyManagementException

KeyManagementException is a general exception, thrown to indicate an exception during processing an operation concerning key management.

KeyPair

KeyPair is a container for a public key and a private key.

KeyPairGenerator

KeyPairGenerator is an engine class which is capable of generating a private key and its related public key utilizing the algorithm it was initialized with.

KeyPairGeneratorSpi

KeyPairGeneratorSpi is the Service Provider Interface (SPI) definition for KeyPairGenerator.

KeyRep

KeyRep is a standardized representation for serialized Key objects.

KeyRep.Type

Type enumerates the supported key types.

KeyStore

KeyStore is responsible for maintaining cryptographic keys and their owners.

KeyStore.Builder

Builder is used to construct new instances of KeyStore.

KeyStore.CallbackHandlerProtection

CallbackHandlerProtection is a ProtectionParameter that encapsulates a ICallbackHandler.

KeyStore.PasswordProtection

PasswordProtection is a ProtectionParameter that protects a KeyStore using a password.

KeyStore.PrivateKeyEntry

PrivateKeyEntry represents a KeyStore entry that holds a private key.

KeyStore.SecretKeyEntry

SecretKeyEntry represents a KeyStore entry that holds a secret key.

KeyStore.TrustedCertificateEntry

TrustedCertificateEntry represents a KeyStore entry that holds a trusted certificate.

KeyStoreException

KeyStoreException is a general KeyStore exception.

KeyStoreSpi

KeyStoreSpi is the Service Provider Interface (SPI) definition for KeyStore.

MessageDigest

Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.

MessageDigestSpi

MessageDigestSpi is the Service Provider Interface (SPI) definition for MessageDigest.

NoSuchAlgorithmException

NoSuchAlgorithmException indicates that a requested algorithm could not be found.

NoSuchProviderException

NoSuchProviderException indicates that a requested security provider could not be found.

Permission

Legacy security code; do not use.

PermissionCollection

Legacy security code; do not use.

Permissions

Legacy security code; do not use.

PKCS12Attribute
Policy

Legacy security code; do not use.

PolicySpi

Represents the Service Provider Interface (SPI) for java.security.

PrivateKey

PrivateKey is the common interface for private keys.

PrivateKeyConsts
PrivilegedActionException

Legacy security code; do not use.

ProtectionDomain

Legacy security code; do not use.

Provider

Provider is the abstract superclass for all security providers in the Java security infrastructure.

Provider.Service

Service represents a service in the Java Security infrastructure.

ProviderException

ProviderException is a general exception, thrown by security Providers.

PublicKey

PublicKey is the common interface for public keys.

PublicKeyConsts
SecureClassLoader

SecureClassLoader represents a ClassLoader which 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

SecureRandomSpi is the Service Provider Interface (SPI) definition for SecureRandom.

Security

Security is the central class in the Java Security API.

SecurityPermission

Legacy security code; do not use.

Signature

Signature is an engine class which is capable of creating and verifying digital signatures, using different algorithms that have been registered with the Security class.

SignatureException

SignatureException is a general Signature exception.

SignatureSpi

SignatureSpi is the Service Provider Interface (SPI) definition for Signature.

SignedObject

A SignedObject instance acts as a container for another object.

Signer

Signer represents an identity (individual or corporation) that owns a private key and the corresponding public key.

Timestamp

Timestamp represents a signed time stamp.

UnrecoverableEntryException

UnrecoverableEntryException indicates, that a KeyStore.Entry cannot be recovered from a KeyStore.

UnrecoverableKeyException

UnrecoverableKeyException indicates, that a key cannot be recovered from a KeyStore.

UnresolvedPermission

Legacy security code; do not use.

Interfaces

IAlgorithmConstraints
ICertificate

Certificate represents an identity certificate, such as X.509 or PGP.

IDomainCombiner

Legacy security code; do not use.

IGuard

Guard implementors protect access to other objects.

IKey

Key is the common interface for all keys.

IPrincipal

Principals are objects which have identities.

IPrivateKey

PrivateKey is the common interface for private keys.

IPrivilegedAction

Legacy security code; do not use.

IPrivilegedExceptionAction

Legacy security code; do not use.

IPublicKey

PublicKey is the common interface for public keys.

KeyStore.IEntry

Entry is the common marker interface for a KeyStore entry.

KeyStore.IEntryAttribute
KeyStore.ILoadStoreParameter

LoadStoreParameter represents a parameter that specifies how a KeyStore can be loaded and stored.

KeyStore.IProtectionParameter

ProtectionParameter is a marker interface for protection parameters.

Policy.IParameters

Legacy security code; do not use.

Enums

SignatureState

Enumerates values returned by several types.