WSSecurityException og NoSuchProviderException
Hej,Jeg har et Java program der gør brug af en del sikkerhedsrelaterede teknologier (Såsom WS-Security og OCSP).
Jeg starter og stopper programmet ofte, og mit problem er, at jeg sommetider får nedenstående exceptions. Dette sker især, hvis jeg starter programmet hurtigt igen efter at have lukket det ned.
Caused by: org.apache.ws.security.WSSecurityException: An unsupported signature or encryption algorithm was used (unsupported key transport encryption algorithm: No such algorithm: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p)
at org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:689)
at org.apache.ws.security.message.WSSecEncryptedKey.prepareInternal(WSSecEncryptedKey.java:195)
at org.apache.ws.security.message.WSSecEncrypt.prepare(WSSecEncrypt.java:260)
at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:510)
... 10 more
og:
Caused by: java.security.NoSuchProviderException: no such provider: BC
at sun.security.jca.GetInstance.getService(Unknown Source)
at sun.security.jca.GetInstance.getInstance(Unknown Source)
at java.security.Signature.getInstance(Unknown Source)
at org.bouncycastle.ocsp.BasicOCSPResp.verify(Unknown Source)
at dk.certifikat.ocsp.client.OcspCertificateResponse.verifySignature(OcspCertificateResponse.java:104)
... 9 more
Hvad kan grunden til disse exceptions være?