org.apache.ws.security.message
Class EncryptionCRLTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.apache.ws.security.message.EncryptionCRLTest

public class EncryptionCRLTest
extends org.junit.Assert

This is a test for Certificate Revocation List checking before encryption. This test reuse the revoked certificate from SignatureCRLTest


Constructor Summary
EncryptionCRLTest()
           
 
Method Summary
 void setUp()
          Setup method
 void testEncryptionWithOutRevocationCheck()
          Test that encrypts without certificate revocation check so it should pass
 void testEncryptionWithRevocationCheck()
          Test that encrypts with certificate revocation check so it should fail
 
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

EncryptionCRLTest

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

setUp

public void setUp()
           throws java.lang.Exception
Setup method

Throws:
java.lang.Exception - Thrown when there is a problem in setup

testEncryptionWithOutRevocationCheck

public void testEncryptionWithOutRevocationCheck()
                                          throws java.lang.Exception
Test that encrypts without certificate revocation check so it should pass

Throws:
java.lang.Exception - Thrown when there is any problem in encryption or decryption

testEncryptionWithRevocationCheck

public void testEncryptionWithRevocationCheck()
                                       throws java.lang.Exception
Test that encrypts with certificate revocation check so it should fail

Throws:
java.lang.Exception - Thrown when there is any problem in encryption or decryption


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