public class EncryptionTests
extends junit.framework.TestCase
| Constructor and Description |
|---|
EncryptionTests() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createEncryptedProperties(java.util.List nodes) |
byte[] |
generateKeyData() |
protected java.security.Key |
generateSecretKey(java.lang.String keyAlgorithm) |
protected org.alfresco.encryption.KeyProvider |
getKeyProvider(org.alfresco.encryption.KeyMap keys) |
protected org.alfresco.encryption.KeyProvider |
getKeyProvider(org.alfresco.encryption.KeyStoreParameters keyStoreParameters) |
void |
setBackupKeyStoreParameters(org.alfresco.encryption.KeyStoreParameters backupKeyStoreParameters) |
void |
setUp() |
protected void |
tearDown() |
void |
testBootstrapReEncrypt() |
void |
testChangeKeys() |
void |
testChangeKeysCachedCiphers() |
protected void |
testChangeKeysImpl(boolean cacheCiphers) |
void |
testFailedEncryptionWithCachedCiphers() |
void |
testReEncrypt() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatpublic void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionprotected org.alfresco.encryption.KeyProvider getKeyProvider(org.alfresco.encryption.KeyStoreParameters keyStoreParameters)
public void setBackupKeyStoreParameters(org.alfresco.encryption.KeyStoreParameters backupKeyStoreParameters)
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionprotected org.alfresco.encryption.KeyProvider getKeyProvider(org.alfresco.encryption.KeyMap keys)
protected void createEncryptedProperties(java.util.List nodes)
public byte[] generateKeyData()
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionprotected java.security.Key generateSecretKey(java.lang.String keyAlgorithm)
throws java.security.InvalidKeyException,
java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException
java.security.InvalidKeyExceptionjava.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionpublic void testReEncrypt()
public void testBootstrapReEncrypt()
protected void testChangeKeysImpl(boolean cacheCiphers)
throws java.lang.Throwable
java.lang.Throwablepublic void testChangeKeys()
throws java.lang.Throwable
java.lang.Throwablepublic void testChangeKeysCachedCiphers()
throws java.lang.Throwable
java.lang.Throwablepublic void testFailedEncryptionWithCachedCiphers()
throws java.lang.Throwable
java.lang.ThrowableCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.