public class ReEncryptor extends Object implements org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
ReEncryptor() |
Modifier and Type | Method and Description |
---|---|
int |
bootstrapReEncrypt()
Re-encrypt using the configured backup keystore to decrypt and the main keystore to encrypt
|
MetadataEncryptor |
getMetadataEncryptor() |
int |
reEncrypt()
Re-encrypt by decrypting using the configured keystore and encrypting using a keystore configured using the provided new key store parameters.
|
protected int |
reEncryptImpl() |
protected void |
reEncryptProperties(List<NodePropertyEntity> properties,
String lockToken) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setChunkSize(int chunkSize) |
void |
setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO) |
void |
setJobLockService(JobLockService jobLockService) |
void |
setMetadataEncryptor(MetadataEncryptor metadataEncryptor) |
void |
setNodeDAO(NodeDAO nodeDAO) |
void |
setNumThreads(int numThreads) |
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setSplitTxns(boolean splitTxns) |
void |
setTransactionService(TransactionService transactionService)
Set the transaction provider so that each execution can be performed within a transaction
|
public void setTransactionService(TransactionService transactionService)
public void setMetadataEncryptor(MetadataEncryptor metadataEncryptor)
public MetadataEncryptor getMetadataEncryptor()
public void setJobLockService(JobLockService jobLockService)
public void setNumThreads(int numThreads)
public void setChunkSize(int chunkSize)
public void setSplitTxns(boolean splitTxns)
public void setNodeDAO(NodeDAO nodeDAO)
public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
public void setQnameDAO(QNameDAO qnameDAO)
protected void reEncryptProperties(List<NodePropertyEntity> properties, String lockToken)
public int bootstrapReEncrypt() throws org.alfresco.encryption.MissingKeyException
org.alfresco.encryption.MissingKeyException
public int reEncrypt() throws org.alfresco.encryption.MissingKeyException
org.alfresco.encryption.MissingKeyException
protected int reEncryptImpl()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2005–2017 Alfresco Software. All rights reserved.