aQute.bnd.url
Class HttpsVerification

java.lang.Object
  extended by aQute.bnd.url.DefaultURLConnectionHandler
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter
Reporter.SetLocation
 
Nested classes/interfaces inherited from interface aQute.service.reporter.Report
Report.Location
 
Field Summary
 
Fields inherited from class aQute.bnd.url.DefaultURLConnectionHandler
registry
 
Fields inherited from interface aQute.bnd.service.url.URLConnectionHandler
MATCH
 
Constructor Summary
HttpsVerification()
           
 
Method Summary
 void handle(URLConnection connection)
          Ensure Https verification is disabled or matches given certificates
 void setProperties(Map<String,String> map)
          Set the properties
 
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
 

Constructor Detail

HttpsVerification

public HttpsVerification()
Method Detail

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.