HTTPMD URLs provide a way to insure the integrity of data retrieved from an HTTP URL. The HTTPMD URL includes a message digest for the data to be retrieved from the URL. The URL input stream insures that the data has the correct message digest when the end of file for the stream is reached.
The {@link net.jini.url.httpmd.Handler} class defines a stream handler for HTTPMD URLs. You can specify that this class be used for HTTPMD URLs by setting the "java.protocol.handler.pkgs" system property to "net.jini.url". See {@link java.net.URL#URL(java.lang.String, java.lang.String, int, java.lang.String)} for more details on specifying a URL stream protocol handler.
The {@link net.jini.url.httpmd.HttpmdIntegrityVerifier} class defines an integrity verifier for HTTPMD URLs. This class is intended to be specified in a resource to configure the operation of {@link net.jini.security.Security#verifyCodebaseIntegrity Security.verifyCodebaseIntegrity}.
The {@link net.jini.url.httpmd.HttpmdUtil} class provides utility
methods for computing the message digest of data specified by a URL and
for computing HTTPMD URLs for use in codebases.
@since 2.0
@version 2.0
@org.apache.river.impl
This implementation of HTTPMD URLs uses the {@link
java.util.logging.Logger} named net.jini.url.httpmd
to log
information at the following logging levels:
Level | Description |
---|---|
{@link org.apache.river.logging.Levels#FAILED FAILED} | URL input stream detects an incorrect message digest |
See the {@link org.apache.river.logging.LogManager} class for one way to use
the FAILED
logging level in standard logging configuration
files.