Android Guides | Samples

Java.Security Namespace

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

Remarks

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

Classes

TypeReason
AccessControlContextLegacy security code; do not use.
AccessControlException AccessControlException is thrown if the access control infrastructure denies protected access due to missing permissions.
AccessControllerLegacy 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.
AllPermissionLegacy security code; do not use.
AuthProviderLegacy security code; do not use.
BasicPermissionLegacy security code; do not use.
CodeSigner CodeSigner represents a signer of code.
CodeSourceLegacy security code; do not use.
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.
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.
ICertificate Certificate represents an identity certificate, such as X.509 or PGP.
Identity Identity represents an identity like a person or a company.
IdentityScope IdentityScope represents a scope for Identity objects.
IDomainCombinerLegacy security code; do not use.
IGuard Guard implementors protect access to other objects.
IKey Key is the common interface for all keys.
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.
IPrincipal Principals are objects which have identities.
IPrivateKey PrivateKey is the common interface for private keys.
IPrivilegedActionLegacy security code; do not use.
IPrivilegedExceptionActionLegacy security code; do not use.
IPublicKey PublicKey is the common interface for public keys.
Key Key is the common interface for all keys.
KeyConsts
KeyException KeyException is the common superclass of all key related exceptions.
KeyFactory KeyFactory is 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 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+IEntry Entry is the common marker interface for a KeyStore entry.
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.
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.
MessageDigestUses 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.
PermissionLegacy security code; do not use.
PermissionCollectionLegacy security code; do not use.
PermissionsLegacy security code; do not use.
PolicyLegacy security code; do not use.
Policy+IParametersLegacy security code; do not use.
PolicySpiRepresents the Service Provider Interface (SPI) for java.security.
PrivateKey PrivateKey is the common interface for private keys.
PrivateKeyConsts
PrivilegedActionExceptionLegacy security code; do not use.
ProtectionDomainLegacy 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.
SecureRandomThis 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.
SecurityPermissionLegacy 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.
SignatureStateEnumerates values returned by several types.
SignedObjectA 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.
UnresolvedPermissionLegacy security code; do not use.