|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.alfresco.encryption.EncryptionTests
public class EncryptionTests
Constructor Summary | |
---|---|
EncryptionTests()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, 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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EncryptionTests()
Method Detail |
---|
public void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected 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.TestCase
java.lang.Exception
protected 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.NoSuchAlgorithmException
protected java.security.Key generateSecretKey(java.lang.String keyAlgorithm) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
public void testReEncrypt()
public void testBootstrapReEncrypt()
protected void testChangeKeysImpl(boolean cacheCiphers) throws java.lang.Throwable
java.lang.Throwable
public void testChangeKeys() throws java.lang.Throwable
java.lang.Throwable
public void testChangeKeysCachedCiphers() throws java.lang.Throwable
java.lang.Throwable
public void testFailedEncryptionWithCachedCiphers() throws java.lang.Throwable
java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |