|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.node.encryption.MetadataEncryptor
public class MetadataEncryptor
Component to convert encrypt/decrypt properties.
This is a helper; it is up to the client how and when encryption and decryption is done, but metadata integrity enforcement will expect that encrypted properties are already encrypted. This class must always be usedrunning as 'system'
.
Constructor Summary | |
---|---|
MetadataEncryptor()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetadataEncryptor()
Method Detail |
---|
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 encrypt
public java.io.Serializable decrypt(org.alfresco.service.namespace.QName propertyQName, java.io.Serializable inbound)
propertyQName
- the property qualified nameinbound
- the property to decrypt
public java.util.Map encrypt(java.util.Map inbound)
inbound
- the properties to encrypt
public java.util.Map decrypt(java.util.Map inbound)
inbound
- the properties to decrypt
public boolean keyAvailable(java.lang.String keyAlias)
public boolean backupKeyAvailable(java.lang.String keyAlias)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |