|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.encryption.ReEncryptor
public class ReEncryptor
Re-encrypts encryptable repository properties using a new set of encryption keys. Decrypts the repository properties using the default encryptor, falling back to a backup decryptor (using the old encryption keys) if necessary, and then re-encrypts the properties. Can run in one of two ways:
Constructor Summary | |
---|---|
ReEncryptor()
|
Method Summary | |
---|---|
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(java.util.List properties,
java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReEncryptor()
Method Detail |
---|
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(java.util.List properties, java.lang.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |