Cumulus4j API
(1.0.0)

org.cumulus4j.store.crypto.keymanager
Class KeyManagerCryptoManager

java.lang.Object
  extended by org.cumulus4j.store.crypto.AbstractCryptoManager
      extended by org.cumulus4j.store.crypto.keymanager.KeyManagerCryptoManager
All Implemented Interfaces:
CryptoManager

public class KeyManagerCryptoManager
extends AbstractCryptoManager

Implementation of CryptoManager working with a key-manager as shown in Deployment scenarios.

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Field Summary
 
Fields inherited from interface org.cumulus4j.store.crypto.CryptoManager
MAC_ALGORITHM_NONE, PROPERTY_CRYPTO_MANAGER_ID, PROPERTY_CRYPTO_SESSION_EXPIRY_AGE, PROPERTY_CRYPTO_SESSION_EXPIRY_TIMER_ENABLED, PROPERTY_CRYPTO_SESSION_EXPIRY_TIMER_PERIOD, PROPERTY_ENCRYPTION_ALGORITHM, PROPERTY_MAC_ALGORITHM
 
Constructor Summary
KeyManagerCryptoManager()
           
 
Method Summary
protected  CryptoSession createCryptoSession()
           Create a new instance of a class implementing CryptoSession.
 CryptoCache getCryptoCache()
           
 
Methods inherited from class org.cumulus4j.store.crypto.AbstractCryptoManager
closeExpiredCryptoSessions, getCryptoManagerID, getCryptoManagerRegistry, getCryptoSession, getCryptoSessionExpiryAge, getCryptoSessionExpiryTimerEnabled, getCryptoSessionExpiryTimerPeriod, getEncryptionAlgorithm, getMACAlgorithm, onCloseCryptoSession, setCryptoManagerID, setCryptoManagerRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyManagerCryptoManager

public KeyManagerCryptoManager()
Method Detail

createCryptoSession

protected CryptoSession createCryptoSession()
Description copied from class: AbstractCryptoManager

Create a new instance of a class implementing CryptoSession.

This method is called by AbstractCryptoManager.getCryptoSession(String), if it needs a new CryptoSession instance.

Implementors should simply instantiate and return their implementation of CryptoSession. It is not necessary to call CryptoSession.setCryptoSessionID(String) and the like here - this is automatically done afterwards by AbstractCryptoManager.getCryptoSession(String).

Specified by:
createCryptoSession in class AbstractCryptoManager
Returns:
the new CryptoSession instance.

getCryptoCache

public CryptoCache getCryptoCache()

Cumulus4j API
(1.0.0)

Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.