org.apache.ws.security.components.crypto
Class CryptoProviderTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.apache.ws.security.components.crypto.CryptoProviderTest

public class CryptoProviderTest
extends org.junit.Assert

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
CryptoProviderTest()
           
 
Method Summary
 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 provider
 void testSignatureOID()
          Test signing a SOAP message using a cert with an OID
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoProviderTest

public CryptoProviderTest()
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

testSignatureOID

public void testSignatureOID()
                      throws java.lang.Exception
Test signing a SOAP message using a cert with an OID

Throws:
java.lang.Exception

testInterop

public void testInterop()
                 throws java.lang.Exception
Test loading a certificate using BouncyCastle, and using it to encrypt a message, but decrypt the message using the Java Keystore provider

Throws:
java.lang.Exception

testBadInterop

public void testBadInterop()
                    throws java.lang.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:
java.lang.Exception


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.