mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Changed metadata encryption to have a new dictionary type: d:encrypted
- Properties have to be encrypted and decrypted in code using MetadataEncryptor ('metadataEncryptor') - No conversion, encryption or decryption is done by Alfresco - Unencrypted values cannot be persisted and get thrown out - ALF-8646: RINF 38: Text data encryption - ALF-8956: RINF 38: Encryption key password specified by installer - ALF-9055: RINF 38: Support encryption against existing data git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28480 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -354,31 +354,6 @@ public class RepoDictionaryDAOTest extends TestCase
|
||||
propertyDef.isMandatoryEnforced());
|
||||
}
|
||||
|
||||
public void testEncrypted()
|
||||
{
|
||||
// get the properties for the test type
|
||||
QName testEncryptedQName = QName.createQName(TEST_URL, "encrypted");
|
||||
ClassDefinition testEncryptedClassDef = service.getClass(testEncryptedQName);
|
||||
Map<QName, PropertyDefinition> testEncryptedPropertyDefs = testEncryptedClassDef.getProperties();
|
||||
|
||||
PropertyDefinition propertyDef = null;
|
||||
|
||||
QName testTextEncryptedQName = QName.createQName(TEST_URL, "text_encrypted");
|
||||
propertyDef = testEncryptedPropertyDefs.get(testTextEncryptedQName);
|
||||
assertNotNull("Property not found: " + testTextEncryptedQName,
|
||||
propertyDef);
|
||||
assertTrue("Expected property to be encrypted: " + testTextEncryptedQName,
|
||||
propertyDef.isEncrypted());
|
||||
|
||||
QName testMLTextEncryptedQName = QName.createQName(TEST_URL, "mltext_encrypted");
|
||||
propertyDef = testEncryptedPropertyDefs.get(testMLTextEncryptedQName);
|
||||
assertNotNull("Property not found: " + testMLTextEncryptedQName,
|
||||
propertyDef);
|
||||
assertTrue("Expected property to be encrypted: " + testMLTextEncryptedQName,
|
||||
propertyDef.isEncrypted());
|
||||
// TODO test for encrypted == false?
|
||||
}
|
||||
|
||||
public void testSubClassOf()
|
||||
{
|
||||
QName invalid = QName.createQName(TEST_URL, "invalid");
|
||||
|
Reference in New Issue
Block a user