Class BasicAuthentication
java.lang.Object
aQute.bnd.url.DefaultURLConnectionHandler
aQute.bnd.url.BasicAuthentication
- All Implemented Interfaces:
Plugin, RegistryPlugin, URLConnectionHandler, aQute.service.reporter.Report, aQute.service.reporter.Reporter
Provide Http Basic Authentication. This URL Connection Handler plugin will
add basic authentication to the matching URL Connections. The following
properties must be specified.
MATCH— The URLGlobexpressions.password— The password for basic authenticationuser— The user ID
-
Nested Class Summary
Nested classes/interfaces inherited from interface aQute.service.reporter.Report
aQute.service.reporter.Report.LocationNested classes/interfaces inherited from interface aQute.service.reporter.Reporter
aQute.service.reporter.Reporter.SetLocation -
Field Summary
Fields inherited from class DefaultURLConnectionHandler
registryFields inherited from interface URLConnectionHandler
MATCH -
Constructor Summary
ConstructorsConstructorDescriptionBasicAuthentication(String user, String password, aQute.service.reporter.Reporter reporter) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(URLConnection connection) Not doing anything is perfect okvoidsetProperties(Map<String, String> map) Set the properties for this plugin.toString()Methods inherited from class DefaultURLConnectionHandler
addMatcher, error, exception, getErrors, getLocation, getWarnings, isOk, isPedantic, matches, matches, progress, setRegistry, setReporter, trace, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface URLConnectionHandler
maxConcurrentConnections
-
Constructor Details
-
BasicAuthentication
public BasicAuthentication() -
BasicAuthentication
-
-
Method Details
-
setProperties
Description copied from class:DefaultURLConnectionHandlerSet the properties for this plugin. Subclasses should call this method before they handle their own properties.- Specified by:
setPropertiesin interfacePlugin- Overrides:
setPropertiesin classDefaultURLConnectionHandler- Parameters:
map- attributes and directives for this plugin's clause- Throws:
Exception
-
handle
Description copied from class:DefaultURLConnectionHandlerNot doing anything is perfect ok- Specified by:
handlein interfaceURLConnectionHandler- Overrides:
handlein classDefaultURLConnectionHandler- Parameters:
connection- The connection to modify
-
toString
-