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