com.silverpeas.util.security
Class ContentEncryptionTest

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

public class ContentEncryptionTest
extends ContentEncryptionServiceTest

Unit tests on the encryption of contents 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
ContentEncryptionTest()
           
 
Method Summary
 void decryptAContent()
           
 void decryptInlineAContent()
           
 void decryptSeveralContentsFromSeveralProvidersInBatch()
           
 void decryptSeveralContentsInBatch()
           
 void encryptAContent()
           
 void encryptInlineAContent()
           
 void encryptSeveralContentsFromSeveralProvidersInBatch()
           
 void encryptSeveralContentsInBatch()
           
 void generateKeyFile()
           
 void renewContentCipher()
           
 
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

ContentEncryptionTest

public ContentEncryptionTest()
Method Detail

generateKeyFile

public void generateKeyFile()
                     throws Exception
Throws:
Exception

encryptInlineAContent

public void encryptInlineAContent()
                           throws Exception
Throws:
Exception

encryptAContent

public void encryptAContent()
                     throws Exception
Throws:
Exception

encryptSeveralContentsInBatch

public void encryptSeveralContentsInBatch()
                                   throws Exception
Throws:
Exception

encryptSeveralContentsFromSeveralProvidersInBatch

public void encryptSeveralContentsFromSeveralProvidersInBatch()
                                                       throws Exception
Throws:
Exception

decryptInlineAContent

public void decryptInlineAContent()
                           throws Exception
Throws:
Exception

decryptAContent

public void decryptAContent()
                     throws Exception
Throws:
Exception

decryptSeveralContentsInBatch

public void decryptSeveralContentsInBatch()
                                   throws Exception
Throws:
Exception

decryptSeveralContentsFromSeveralProvidersInBatch

public void decryptSeveralContentsFromSeveralProvidersInBatch()
                                                       throws Exception
Throws:
Exception

renewContentCipher

public void renewContentCipher()
                        throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.