public class FileIntegrityVerifier extends Object implements IntegrityVerifier
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.
| Constructor and Description |
|---|
FileIntegrityVerifier() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
providesIntegrity(URL url)
Returns
true if the specified URL uses the "file"
protocol and the host is null, empty, "~", or "localhost";
returns false otherwise. |
public boolean providesIntegrity(URL url)
true if the specified URL uses the "file"
protocol and the host is null, empty, "~", or "localhost";
returns false otherwise.providesIntegrity in interface IntegrityVerifierurl - URL to verifytrue if the specified URL is known to provide
content integrity; false otherwiseNullPointerException - if the URL is nullCopyright © GigaSpaces.