public class MetadataEncryptor extends Object
running as 'system'.| Constructor and Description |
|---|
MetadataEncryptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
backupKeyAvailable(String keyAlias) |
Map<QName,Serializable> |
decrypt(Map<QName,Serializable> inbound)
Decrypt properties if they are decryptable.
|
Serializable |
decrypt(QName propertyQName,
Serializable inbound)
Decrypt a property if the data definition (model-specific) requires it.
|
Map<QName,Serializable> |
encrypt(Map<QName,Serializable> inbound)
Encrypt properties if their data definition (model-specific) requires it.
|
Serializable |
encrypt(QName propertyQName,
Serializable inbound)
Encrypt a properties if the data definition (model-specific) requires it.
|
boolean |
keyAvailable(String keyAlias) |
void |
setDictionaryService(DictionaryService dictionaryService) |
void |
setEncryptor(FallbackEncryptor encryptor) |
public void setDictionaryService(DictionaryService dictionaryService)
dictionaryService - service to check if properties need encryptingpublic void setEncryptor(FallbackEncryptor encryptor)
encryptor - the class that does the encryption/decryptionpublic Serializable encrypt(QName propertyQName, Serializable inbound)
propertyQName - the property qualified nameinbound - the property to encryptpublic Serializable decrypt(QName propertyQName, Serializable inbound)
propertyQName - the property qualified nameinbound - the property to decryptpublic Map<QName,Serializable> encrypt(Map<QName,Serializable> inbound)
inbound - the properties to encryptpublic Map<QName,Serializable> decrypt(Map<QName,Serializable> inbound)
inbound - the properties to decryptpublic boolean keyAvailable(String keyAlias)
public boolean backupKeyAvailable(String keyAlias)
Copyright © 2005–2021 Alfresco Software. All rights reserved.