Cumulus4j API
(1.0.0)

org.cumulus4j.store
Class DummyCryptoManager

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

public class DummyCryptoManager
extends AbstractCryptoManager

Dummy crypto-manager for debugging and testing.

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
DummyCryptoManager()
           
 
Method Summary
protected  CryptoSession createCryptoSession()
           Create a new instance of a class implementing CryptoSession.
 
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

DummyCryptoManager

public DummyCryptoManager()
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.

Cumulus4j API
(1.0.0)

Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.