com.silverpeas.util.security
Class KeyManagementTest

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

public class KeyManagementTest
extends ContentEncryptionServiceTest

Unit tests on encryption management done by the DefaultContentEncryptionService instances.


Field Summary
 
Fields inherited from class com.silverpeas.util.security.ContentEncryptionServiceTest
ACTUAL_KEY_FILE_PATH, CIPHER_KEY, DEPRECATED_KEY_FILE_PATH
 
Constructor Summary
KeyManagementTest()
           
 
Method Summary
 void testCipherRenewFailureWhenUpdatingCipherKey()
           
 void testKeyCreation()
           
 void testKeyUpdate()
           
 void testKeyUpdateWithRegisteredContentIterators()
           
 
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

KeyManagementTest

public KeyManagementTest()
Method Detail

testKeyCreation

public void testKeyCreation()
                     throws Exception
Throws:
Exception

testKeyUpdate

public void testKeyUpdate()
                   throws Exception
Throws:
Exception

testKeyUpdateWithRegisteredContentIterators

public void testKeyUpdateWithRegisteredContentIterators()
                                                 throws Exception
Throws:
Exception

testCipherRenewFailureWhenUpdatingCipherKey

public void testCipherRenewFailureWhenUpdatingCipherKey()
                                                 throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.