com.silverpeas.util.security
Class ConcurrentExecutionTest

java.lang.Object
  extended by com.silverpeas.util.security.ContentEncryptionServiceTest
      extended by com.silverpeas.util.security.ConcurrentExecutionTest

public class ConcurrentExecutionTest
extends ContentEncryptionServiceTest

Unit tests on the execution of the different DefaultContentEncryptionService's methods in a concurrent way.


Field Summary
 
Fields inherited from class com.silverpeas.util.security.ContentEncryptionServiceTest
ACTUAL_KEY_FILE_PATH, CIPHER_KEY, DEPRECATED_KEY_FILE_PATH
 
Constructor Summary
ConcurrentExecutionTest()
           
 
Method Summary
 void generateKeyFile()
           
 void testTheCipherRenewingIsBlockedWhenAContentIsDecrypted()
           
 void testTheCipherRenewingIsBlockedWhenAContentIsEncrypted()
           
 void testTheCipherRenewingIsBlocking()
           
 void testTheKeyUpdateIsBlockedWhenAContentIsDecrypted()
           
 void testTheKeyUpdateIsBlockedWhenAContentIsEncrypted()
           
 void testTheKeyUpdateIsBlocking()
           
 
Methods inherited from class com.silverpeas.util.security.ContentEncryptionServiceTest
createKeyFileWithTheActualKey, createKeyFileWithTheDeprecatedKey, createSecurityDirectoryAndSetupJCEProviders, deleteKeyFile, deleteSecurityDirectory, encryptTextContents, generateAESKey, generateTextContents, getContentEncryptionService, setUpContentEncryptionService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcurrentExecutionTest

public ConcurrentExecutionTest()
Method Detail

generateKeyFile

public void generateKeyFile()
                     throws Exception
Throws:
Exception

testTheCipherRenewingIsBlocking

public void testTheCipherRenewingIsBlocking()

testTheCipherRenewingIsBlockedWhenAContentIsEncrypted

public void testTheCipherRenewingIsBlockedWhenAContentIsEncrypted()

testTheCipherRenewingIsBlockedWhenAContentIsDecrypted

public void testTheCipherRenewingIsBlockedWhenAContentIsDecrypted()

testTheKeyUpdateIsBlocking

public void testTheKeyUpdateIsBlocking()

testTheKeyUpdateIsBlockedWhenAContentIsEncrypted

public void testTheKeyUpdateIsBlockedWhenAContentIsEncrypted()

testTheKeyUpdateIsBlockedWhenAContentIsDecrypted

public void testTheKeyUpdateIsBlockedWhenAContentIsDecrypted()


Copyright © 2016 Silverpeas. All Rights Reserved.