org.apache.ws.security.processor
Class EncryptedKeyDataRefTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.apache.ws.security.processor.EncryptedKeyDataRefTest

public class EncryptedKeyDataRefTest
extends org.junit.Assert

Test that checks for correct WSDataRef which should be returned by org.apache.ws.security.processor.EncryptedKeyProcessor This test uses the RSA_15 algorithm to transport (wrap) the symmetric key. The test case creates a ReferenceList element that references EncryptedData elements. The ReferencesList element is put into the EncryptedKey. The EncryptedData elements contain a KeyInfo that references the EncryptedKey via a STR/Reference structure. WSDataRef object must contain the correct QName of the decrypted element.


Constructor Summary
EncryptedKeyDataRefTest()
           
 
Method Summary
 void testDataRefEncryptedKeyProcessor()
          Test that check for correct WSDataRef object from EncryptedKey Processor
 
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

EncryptedKeyDataRefTest

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

testDataRefEncryptedKeyProcessor

public void testDataRefEncryptedKeyProcessor()
                                      throws java.lang.Exception
Test that check for correct WSDataRef object from EncryptedKey Processor

Throws:
java.lang.Exception - Thrown when there is an error in encryption or decryption


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