public class MetadataEncryptor
extends java.lang.Object
running as 'system'.| Constructor and Description |
|---|
MetadataEncryptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
backupKeyAvailable(java.lang.String keyAlias) |
java.util.Map |
decrypt(java.util.Map inbound)
Decrypt properties if they are decryptable.
|
java.io.Serializable |
decrypt(org.alfresco.service.namespace.QName propertyQName,
java.io.Serializable inbound)
Decrypt a property if the data definition (model-specific) requires it.
|
java.util.Map |
encrypt(java.util.Map inbound)
Encrypt properties if their data definition (model-specific) requires it.
|
java.io.Serializable |
encrypt(org.alfresco.service.namespace.QName propertyQName,
java.io.Serializable inbound)
Encrypt a properties if the data definition (model-specific) requires it.
|
boolean |
keyAvailable(java.lang.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 java.io.Serializable encrypt(org.alfresco.service.namespace.QName propertyQName,
java.io.Serializable inbound)
propertyQName - the property qualified nameinbound - the property to encryptpublic java.io.Serializable decrypt(org.alfresco.service.namespace.QName propertyQName,
java.io.Serializable inbound)
propertyQName - the property qualified nameinbound - the property to decryptpublic java.util.Map encrypt(java.util.Map inbound)
inbound - the properties to encryptpublic java.util.Map decrypt(java.util.Map inbound)
inbound - the properties to decryptpublic boolean keyAvailable(java.lang.String keyAlias)
public boolean backupKeyAvailable(java.lang.String keyAlias)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.