aQute.bnd.url
Class BndAuthentication

java.lang.Object
  extended by aQute.bnd.url.DefaultURLConnectionHandler
      extended by aQute.bnd.url.BndAuthentication
All Implemented Interfaces:
Plugin, RegistryPlugin, URLConnectionHandler, Report, Reporter

public class BndAuthentication
extends DefaultURLConnectionHandler

bnd has a builtin delegated authentication mechanism, see Settings. This URL Connection Handler plugin will use this information to add signing information to the URL.

We add a X_A_QUTE_AUTHORIZATION header with a formatted string that contains the email of the user, the machine name (for documentation), the public key, and a signed date header (SHA1WithRSA). This information can be parameterized with the following plugin properties or the default settings can be used.

T


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
BndAuthentication()
           
 
Method Summary
 void handle(URLConnection connection)
          Not doing anything is perfect ok
 void setProperties(Map<String,String> map)
          Set the properties for this plugin.
 
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

BndAuthentication

public BndAuthentication()
Method Detail

handle

public void handle(URLConnection connection)
            throws Exception
Description copied from class: DefaultURLConnectionHandler
Not doing anything is perfect ok

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
Description copied from class: DefaultURLConnectionHandler
Set the properties for this plugin. Subclasses should call this method before they handle their own 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.