Package net.jini.url.file
Class FileIntegrityVerifier
java.lang.Object
net.jini.url.file.FileIntegrityVerifier
- All Implemented Interfaces:
IntegrityVerifier
Integrity verifier for FILE URLs. This class is intended to be specified in a resource to
configure the operation of
Security.verifyCodebaseIntegrity. Do not use this verifier if your operating system is configured to mount remote file systems and the underlying file system protocols do not provide adequate data integrity or authentication of the remote hosts.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprovidesIntegrity(URL url) Returnstrueif the specified URL uses the "file" protocol and the host isnull, empty, "~", or "localhost"; returnsfalseotherwise.
-
Constructor Details
-
FileIntegrityVerifier
public FileIntegrityVerifier()
-
-
Method Details
-
providesIntegrity
Returnstrueif the specified URL uses the "file" protocol and the host isnull, empty, "~", or "localhost"; returnsfalseotherwise.- Specified by:
providesIntegrityin interfaceIntegrityVerifier- Parameters:
url- URL to verify- Returns:
trueif the specified URL is known to provide content integrity;falseotherwise- Throws:
NullPointerException- if the URL isnull
-