osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.300.v20110815-1744.jar@1\:start
osgi.bundles=reference\:file\:SecurityAgent_1.0.0.jar@1\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503-sap.jar@2\:start
<string> ::= *( <stringchar> | <pair> ) | '"' *( <stringchar> | <special> | <pair> ) '"' | "#" <hex> <pair> ::= "\" ( <special> | "\" | '"') <special> ::= "," | "=" | <CR> | "+" | "<" | ">" | "#" | ";"
Backslashes must already be escaped in Java strings, requiring 2 backslashes in Java source code. For example: DN: cn = Bugs Bunny, o = ACME++, C=US Canonical form: cn=bugs bunny,o=acme\+\+,c=us Java String: "cn=Bugs Bunny,o=ACME\\+\\+,c=US"
Actually looking at this specification text I think you may need to escape the comma with double backslash. Does that work?
String name = "cn=Bugs Bunny,o=ACME\\+\\+,c=US";
Why don't you try with the location-based approach for starters.
Also when I use BundleSignerCondition with argument "CN=*, OU=*, O=*, L=Ottawa, ST=*, C=*" to match org.eclipse.equinox.simpleconfigurator_1.0.300.v20110815-17 bundle...