Class CryptoProviderTest
- java.lang.Object
-
- org.apache.wss4j.dom.components.crypto.CryptoProviderTest
-
public class CryptoProviderTest extends Object
This is a test for WSS-86 - "CryptoBase.splitAndTrim does not take into account the format of a DN constructed by different providers": http://issues.apache.org/jira/browse/WSS-86 Keystore: keys\wss86.keystore Password: security Generated by: keytool -genkey -validity 3650 -alias wss86 -keyalg RSA -keystore wss86.keystore -dname "1.2.840.113549.1.9.1=#16125765726e6572406578616d706c652e636f6d,CN=Werner, OU=WSS4J,O=Apache,L=Munich,ST=Bayern,C=DE"
-
-
Constructor Summary
Constructors Constructor Description CryptoProviderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testBadInterop()
Test loading a certificate using BouncyCastle, and using it to encrypt a message, but decrypt the message using the Java Keystore provider.void
testInterop()
Test loading a certificate using BouncyCastle, and using it to encrypt a message, but decrypt the message using the Java Keystore providervoid
testSignatureEmailAddress()
Like before but substitute in an "EMAILADDRESS" instead of the OIDvoid
testSignatureOID()
Test signing a SOAP message using a cert with an OIDvoid
testSignatureOtherEmailAddress()
Like before but substitute in an "E" instead of the OID
-
-
-
Method Detail
-
testSignatureOID
@Test public void testSignatureOID() throws Exception
Test signing a SOAP message using a cert with an OID- Throws:
Exception
-
testSignatureEmailAddress
@Test public void testSignatureEmailAddress() throws Exception
Like before but substitute in an "EMAILADDRESS" instead of the OID- Throws:
Exception
-
testSignatureOtherEmailAddress
@Test public void testSignatureOtherEmailAddress() throws Exception
Like before but substitute in an "E" instead of the OID- Throws:
Exception
-
testInterop
@Test public void testInterop() throws Exception
Test loading a certificate using BouncyCastle, and using it to encrypt a message, but decrypt the message using the Java Keystore provider- Throws:
Exception
-
testBadInterop
@Test public void testBadInterop() throws Exception
Test loading a certificate using BouncyCastle, and using it to encrypt a message, but decrypt the message using the Java Keystore provider. In this case though the cert doesn't correspond with the cert in wss86.keystore.- Throws:
Exception
-
-