org.opends.server.crypto
Class CryptoManagerSync

java.lang.Object
  extended by org.opends.server.crypto.CryptoManagerSync
All Implemented Interfaces:
BackendInitializationListener, ChangeNotificationListener

public class CryptoManagerSync
extends java.lang.Object
implements BackendInitializationListener, ChangeNotificationListener

This class defines an object that synchronizes certificates from the admin data branch into the trust store backend, and synchronizes secret-key entries from the admin data branch to the crypto manager secret-key cache.


Constructor Summary
CryptoManagerSync()
          Creates a new instance of this trust store synchronization thread.
 
Method Summary
 void handleAddOperation(PostResponseAddOperation addOperation, Entry entry)
          Performs any processing that may be required after an add operation.
 void handleDeleteOperation(PostResponseDeleteOperation deleteOperation, Entry entry)
          Performs any processing that may be required after a delete operation.
 void handleModifyDNOperation(PostResponseModifyDNOperation modifyDNOperation, Entry oldEntry, Entry newEntry)
          Performs any processing that may be required after a modify DN operation.
 void handleModifyOperation(PostResponseModifyOperation modifyOperation, Entry oldEntry, Entry newEntry)
          Performs any processing that may be required after a modify operation.
 void performBackendFinalizationProcessing(Backend backend)
          Performs any processing that may be required whenever a backend is finalized.
 void performBackendInitializationProcessing(Backend backend)
          Performs any processing that may be required whenever a backend is initialized for use in the Directory Server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoManagerSync

public CryptoManagerSync()
                  throws InitializationException
Creates a new instance of this trust store synchronization thread.

Throws:
InitializationException - in case an exception occurs during initialization, such as a failure to publish the instance-key-pair public-key-certificate in ADS.
Method Detail

performBackendInitializationProcessing

public void performBackendInitializationProcessing(Backend backend)
Performs any processing that may be required whenever a backend is initialized for use in the Directory Server. This method will be invoked after the backend has been initialized but before it has been put into service.

Specified by:
performBackendInitializationProcessing in interface BackendInitializationListener
Parameters:
backend - The backend that has been initialized and is about to be put into service.

performBackendFinalizationProcessing

public void performBackendFinalizationProcessing(Backend backend)
Performs any processing that may be required whenever a backend is finalized. This method will be invoked after the backend has been taken out of service but before it has been finalized.

Specified by:
performBackendFinalizationProcessing in interface BackendInitializationListener
Parameters:
backend - The backend that has been taken out of service and is about to be finalized.

handleAddOperation

public void handleAddOperation(PostResponseAddOperation addOperation,
                               Entry entry)
Performs any processing that may be required after an add operation.

Specified by:
handleAddOperation in interface ChangeNotificationListener
Parameters:
addOperation - The add operation that was performed in the server.
entry - The entry that was added to the server.

handleDeleteOperation

public void handleDeleteOperation(PostResponseDeleteOperation deleteOperation,
                                  Entry entry)
Performs any processing that may be required after a delete operation.

Specified by:
handleDeleteOperation in interface ChangeNotificationListener
Parameters:
deleteOperation - The delete operation that was performed in the server.
entry - The entry that was removed from the server.

handleModifyOperation

public void handleModifyOperation(PostResponseModifyOperation modifyOperation,
                                  Entry oldEntry,
                                  Entry newEntry)
Performs any processing that may be required after a modify operation.

Specified by:
handleModifyOperation in interface ChangeNotificationListener
Parameters:
modifyOperation - The modify operation that was performed in the server.
oldEntry - The entry before it was updated.
newEntry - The entry after it was updated.

handleModifyDNOperation

public void handleModifyDNOperation(PostResponseModifyDNOperation modifyDNOperation,
                                    Entry oldEntry,
                                    Entry newEntry)
Performs any processing that may be required after a modify DN operation.

Specified by:
handleModifyDNOperation in interface ChangeNotificationListener
Parameters:
modifyDNOperation - The modify DN operation that was performed in the server.
oldEntry - The entry before it was updated.
newEntry - The entry after it was updated.