Since: API Level 1
package

java.security

Classes | Description

This package provides all the classes and interfaces that constitute the Java security framework.

more...

Interfaces

Certificate This interface is deprecated. Replaced by behavior in java.security.cert 
DomainCombinerDomainCombiner is used to update and optimize ProtectionDomains from an AccessControlContext
GuardGuard implementors protect access to other objects. 
KeyKey is the common interface for all keys. 
KeyStore.EntryEntry is the common marker interface for a KeyStore entry. 
KeyStore.LoadStoreParameterLoadStoreParameter represents a parameter that specifies how a KeyStore can be loaded and stored. 
KeyStore.ProtectionParameterProtectionParameter is a marker interface for protection parameters. 
Policy.ParametersA marker interface for Policy parameters. 
PrincipalPrincipals are objects which have identities. 
PrivateKeyPrivateKey is the common interface for private keys. 
PrivilegedAction<T>PrivilegedAction represents an action that can be executed privileged regarding access control. 
PrivilegedExceptionAction<T>PrivilegedAction represents an action, that can be executed privileged regarding access control. 
PublicKeyPublicKey is the common interface for public keys. 

Classes

AccessControlContextAccessControlContext encapsulates the ProtectionDomains on which access control decisions are based. 
AccessControllerAccessController provides static methods to perform access control checks and privileged operations. 
AlgorithmParameterGeneratorAlgorithmParameterGenerator is an engine class which is capable of generating parameters for the algorithm it was initialized with. 
AlgorithmParameterGeneratorSpiAlgorithmParameterGeneratorSpi is the Service Provider Interface (SPI) definition for AlgorithmParameterGenerator
AlgorithmParametersAlgorithmParameters is an engine class which provides algorithm parameters. 
AlgorithmParametersSpiAlgorithmParametersSpi is the Service Provider Interface (SPI) definition for AlgorithmParameters
AllPermissionAllPermission represents the permission to perform any operation. 
AuthProviderAuthProvider is an abstract superclass for Java Security Provider which provide login and logout. 
BasicPermissionBasicPermission is the common base class of all permissions which have a name but no action lists. 
CodeSignerCodeSigner represents a signer of code. 
CodeSourceCodeSource encapsulates the location from where code is loaded and the certificates that were used to verify that code. 
DigestInputStreamDigestInputStream is a FilterInputStream which maintains an associated message digest. 
DigestOutputStreamDigestOutputStream is a FilterOutputStream which maintains an associated message digest. 
GuardedObjectGuardedObject controls access to an object, by checking all requests for the object with a Guard
Identity This class is deprecated. The functionality of this class has been replace by Principal, KeyStore and the java.security.cert package.  
IdentityScope This class is deprecated. The functionality of this class has been replace by Principal, KeyStore and the java.security.cert package.  
KeyFactoryKeyFactory 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. 
KeyFactorySpiKeyFactorySpi is the Service Provider Interface (SPI) definition for KeyFactory
KeyPairKeyPair is a container for a public key and a private key. 
KeyPairGeneratorKeyPairGenerator is an engine class which is capable of generating a private key and its related public key utilizing the algorithm it was initialized with. 
KeyPairGeneratorSpiKeyPairGeneratorSpi is the Service Provider Interface (SPI) definition for KeyPairGenerator
KeyRepKeyRep is a standardized representation for serialized Key objects. 
KeyStoreKeyStore is responsible for maintaining cryptographic keys and their owners. 
KeyStore.BuilderBuilder is used to construct new instances of KeyStore
KeyStore.CallbackHandlerProtectionCallbackHandlerProtection is a ProtectionParameter that encapsulates a CallbackHandler
KeyStore.PasswordProtectionPasswordProtection is a ProtectionParameter that protects a KeyStore using a password. 
KeyStore.PrivateKeyEntryPrivateKeyEntry represents a KeyStore entry that holds a private key. 
KeyStore.SecretKeyEntrySecretKeyEntry represents a KeyStore entry that holds a secret key. 
KeyStore.TrustedCertificateEntryTrustedCertificateEntry represents a KeyStore entry that holds a trusted certificate. 
KeyStoreSpiKeyStoreSpi 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. 
MessageDigestSpiMessageDigestSpi is the Service Provider Interface (SPI) definition for MessageDigest
PermissionPermission is the common base class of all permissions that participate in the access control security framework around AccessController and AccessControlContext
PermissionCollectionPermissionCollection is the common base class for all collections that provide a convenient method for determining whether or not a given permission is implied by any of the permissions present in this collection. 
PermissionsPermissions represents a PermissionCollection where the contained permissions can be of different types. 
PolicyPolicy is the common super type of classes which represent a system security policy. 
PolicySpiRepresents the Service Provider Interface (SPI) for java.security.Policy class. 
ProtectionDomainProtectionDomain represents all permissions that are granted to a specific code source. 
ProviderProvider is the abstract superclass for all security providers in the Java security infrastructure. 
Provider.ServiceService represents a service in the Java Security infrastructure. 
SecureClassLoaderSecureClassLoader 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. 
SecureRandomSpiSecureRandomSpi is the Service Provider Interface (SPI) definition for SecureRandom
SecuritySecurity is the central class in the Java Security API. 
SecurityPermissionSecurityPermission objects guard access to the mechanisms which implement security. 
SignatureSignature is an engine class which is capable of creating and verifying digital signatures, using different algorithms that have been registered with the Security class. 
SignatureSpiSignatureSpi is the Service Provider Interface (SPI) definition for Signature
SignedObjectA SignedObject instance acts as a container for another object. 
Signer This class is deprecated. Replaced by behavior in java.security.cert package and Principal  
TimestampTimestamp represents a signed time stamp. 
UnresolvedPermissionAn UnresolvedPermission represents a Permission whose type should be resolved lazy and not during initialization time of the Policy

Enums

KeyRep.TypeType enumerates the supported key types. 

Exceptions

AccessControlExceptionAccessControlException is thrown if the access control infrastructure denies protected access due to missing permissions. 
DigestExceptionDigestException is a general message digest exception. 
GeneralSecurityExceptionGeneralSecurityException is a general security exception and the superclass for all security specific exceptions. 
InvalidAlgorithmParameterExceptionInvalidAlgorithmParameterException indicates the occurrence of invalid algorithm parameters. 
InvalidKeyExceptionInvalidKeyException indicates exceptional conditions, caused by an invalid key. 
InvalidParameterExceptionInvalidParameterException indicates exceptional conditions, caused by invalid parameters. 
KeyExceptionKeyException is the common superclass of all key related exceptions. 
KeyManagementExceptionKeyManagementException is a general exception, thrown to indicate an exception during processing an operation concerning key management. 
KeyStoreExceptionKeyStoreException is a general KeyStore exception. 
NoSuchAlgorithmExceptionNoSuchAlgorithmException indicates that a requested algorithm could not be found. 
NoSuchProviderExceptionNoSuchProviderException indicates that a requested security provider could not be found. 
PrivilegedActionExceptionPrivilegedActionException wraps exceptions which are thrown from within privileged operations. 
ProviderExceptionProviderException is a general exception, thrown by security Providers
SignatureExceptionSignatureException is a general Signature exception. 
UnrecoverableEntryExceptionUnrecoverableEntryException indicates, that a KeyStore.Entry cannot be recovered from a KeyStore
UnrecoverableKeyExceptionUnrecoverableKeyException indicates, that a key cannot be recovered from a KeyStore