public class HttpsIntegrityVerifier extends Object implements IntegrityVerifier
Security.verifyCodebaseIntegrity
.
This verifier assumes the HTTPS URL protocol handler is configured to provide adequate data integrity and server authentication.
Constructor and Description |
---|
HttpsIntegrityVerifier() |
Modifier and Type | Method and Description |
---|---|
boolean |
providesIntegrity(URL url)
Returns
true if the specified URL uses the "https"
protocol; returns false otherwise. |
public boolean providesIntegrity(URL url)
true
if the specified URL uses the "https"
protocol; returns false
otherwise.providesIntegrity
in interface IntegrityVerifier
url
- URL to verifytrue
if the specified URL is known to provide
content integrity; false
otherwiseNullPointerException
- if the URL is null
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.