aQute.bnd.url
Class HttpsVerification
java.lang.Object
aQute.bnd.url.DefaultURLConnectionHandler
aQute.bnd.url.HttpsVerification
- All Implemented Interfaces:
- Plugin, RegistryPlugin, URLConnectionHandler, Report, Reporter
public class HttpsVerification
- extends DefaultURLConnectionHandler
TODO Needs testing Can be used to override default verification of HTTPS. The
'trusted' property on this plugin must contain a list of issuer certificates
that are trusted. If none are specified the verification is NOT done.
| Methods inherited from class aQute.bnd.url.DefaultURLConnectionHandler |
error, exception, getErrors, getLocation, getWarnings, isOk, isPedantic, matches, matches, progress, setRegistry, setReporter, trace, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpsVerification
public HttpsVerification()
handle
public void handle(URLConnection connection)
throws Exception
- Ensure Https verification is disabled or matches given certificates
- Specified by:
handle in interface URLConnectionHandler- Overrides:
handle in class DefaultURLConnectionHandler
- Parameters:
connection - The connection to modify
- Throws:
Exception
setProperties
public void setProperties(Map<String,String> map)
throws Exception
- Set the properties
- Specified by:
setProperties in interface Plugin- Overrides:
setProperties in class DefaultURLConnectionHandler
- Parameters:
map - attributes and directives for this plugin's clause
- Throws:
Exception
Copyright © 2014 aQute SARL. All rights reserved.