Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

CDC 1.1.2

Package java.security

Provides the classes and interfaces for the security framework.

See:
          Description

Interface Summary
DomainCombiner A DomainCombiner provides a means to dynamically update the ProtectionDomains associated with the current AccessControlContext.
Guard This interface represents a guard, which is an object that is used to protect access to another object.
Key The Key interface is the top-level interface for all keys.
Principal This interface represents the abstract notion of a principal, which can be used to represent any entity, such as an individual, a corporation, and a login id.
PrivilegedAction A computation to be performed with privileges enabled.
PrivilegedExceptionAction A computation to be performed with privileges enabled, that throws one or more checked exceptions.
PublicKey A public key.
 

Class Summary
AccessControlContext An AccessControlContext is used to make system resource access decisions based on the context it encapsulates.
AccessController The AccessController class is used for access control operations and decisions.
AllPermission The AllPermission is a permission that implies all other permissions.
BasicPermission The BasicPermission class extends the Permission class, and can be used as the base class for permissions that want to follow the same naming convention as BasicPermission.
CodeSource This class extends the concept of a codebase to encapsulate not only the location (URL) but also the certificate(s) that were used to verify signed code originating from that location.
DigestOutputStream A transparent stream that updates the associated message digest using the bits going through the stream.
GuardedObject A GuardedObject is an object that is used to protect access to another object.
MessageDigest This MessageDigest class provides applications the functionality of a message digest algorithm, such as MD5 or SHA.
MessageDigestSpi This class defines the Service Provider Interface (SPI) for the MessageDigest class, which provides the functionality of a message digest algorithm, such as MD5 or SHA.
Permission Abstract class for representing access to a system resource.
PermissionCollection Abstract class representing a collection of Permission objects.
Permissions This class represents a heterogeneous collection of Permissions.
Policy This is an abstract class for representing the system security policy for a Java application environment (specifying which permissions are available for code from various sources).
ProtectionDomain This ProtectionDomain class encapsulates the characteristics of a domain, which encloses a set of classes whose instances are granted a set of permissions when being executed on behalf of a given set of Principals.
Provider This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.
SecureClassLoader This class extends ClassLoader with additional support for defining classes with an associated code source and permissions which are retrieved by the system policy by default.
Security This class centralizes all security properties and common security methods.
SecurityPermission This class is for security permissions.
UnresolvedPermission The UnresolvedPermission class is used to hold Permissions that were "unresolved" when the Policy was initialized.
 

Exception Summary
AccessControlException This exception is thrown by the AccessController to indicate that a requested access (to a critical system resource such as the file system or the network) is denied.
DigestException This is the generic Message Digest exception.
GeneralSecurityException The GeneralSecurityException class is a generic security exception class that provides type safety for all the security-related exception classes that extend from it.
InvalidAlgorithmParameterException This is the exception for invalid or inappropriate algorithm parameters.
InvalidKeyException This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc).
InvalidParameterException This exception, designed for use by the JCA/JCE engine classes, is thrown when an invalid parameter is passed to a method.
KeyException This is the basic key exception.
NoSuchAlgorithmException This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
NoSuchProviderException This exception is thrown when a particular security provider is requested but is not available in the environment.
PrivilegedActionException This exception is thrown by doPrivileged(PrivilegedExceptionAction) and doPrivileged(PrivilegedExceptionAction, AccessControlContext context) to indicate that the action being performed threw a checked exception.
ProviderException A runtime exception for Provider exceptions (such as misconfiguration errors), which may be subclassed by Providers to throw specialized, provider-specific runtime errors.
SignatureException This is the generic Signature exception.
 

Package java.security Description

Provides the classes and interfaces for the security framework. This includes classes that implement an easily configurable, fine-grained access control security architecture. This package also supports the generation and storage of cryptographic public key pairs, as well as a number of exportable cryptographic operations including those for message digest and signature generation. Finally, this package provides classes that support signed/guarded objects and secure random number generation. Many of the classes provided in this package (the cryptographic and secure random number generator classes in particular) are provider-based. The class itself defines a programming interface to which applications may write. The implementations themselves may then be written by independent third-party vendors and plugged in seamlessly as needed. Therefore application developers may take advantage of any number of provider-based implementations without having to add or rewrite code.

Package Specification

Related Documentation

The following is informative documentation from J2SE:

Since:
JDK1.1

CDC 1.1.2

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 218 specification.