Permalink
Browse files

Unregister some providers before registering them to prevent ClassNot…

…Found type exceptions in some containers

git-svn-id: https://svn.apache.org/repos/asf/webservices/wss4j/trunk@1572904 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 0aca720 commit ad72caeeb9beed0f625ecc77a743558ff7a28b9a @coheigea coheigea committed Feb 28, 2014
@@ -71,6 +71,7 @@ public static synchronized void init() {
AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
public Boolean run() {
addXMLDSigRIInternal();
+ Security.removeProvider("BC");
addJceProvider("BC", "org.bouncycastle.jce.provider.BouncyCastleProvider");
return true;
}
@@ -127,6 +128,7 @@ public Boolean run() throws Exception {
}
private static void addXMLDSigRIInternal() {
+ Security.removeProvider("ApacheXMLDSig");
addJceProvider("ApacheXMLDSig", SantuarioUtil.getSantuarioProvider());
}

0 comments on commit ad72cae

Please sign in to comment.