org.apache.ws.security.processor
Class ReferenceListDataRefTest

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

public class ReferenceListDataRefTest
extends org.junit.Assert

Test that checks for correct WSDataRef which should be returned by org.apache.ws.security.processor.ReferenceListProcessor 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 Security header, not as child of 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
ReferenceListDataRefTest()
           
 
Method Summary
 void testDataRefReferenceListProcessor()
          Test that check for correct WSDataRef object from ReferenceList 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

ReferenceListDataRefTest

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

testDataRefReferenceListProcessor

public void testDataRefReferenceListProcessor()
                                       throws java.lang.Exception
Test that check for correct WSDataRef object from ReferenceList 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.