Cumulus4j API
(1.0.0)

org.cumulus4j.store.crypto.keymanager
Class CryptoCacheKeyDecrypterEntry

java.lang.Object
  extended by org.cumulus4j.store.crypto.keymanager.CryptoCacheKeyDecrypterEntry

public class CryptoCacheKeyDecrypterEntry
extends Object

CryptoCache-entry wrapping a Cipher used for secret-key-decryption.

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

Constructor Summary
protected CryptoCacheKeyDecrypterEntry(CryptoCacheKeyEncryptionKeyEntry keyEncryptionKey, String keyEncryptionTransformation, Cipher keyDecryptor)
          Create a new instance.
 
Method Summary
 Cipher getKeyDecryptor()
          Get the cipher.
 CryptoCacheKeyEncryptionKeyEntry getKeyEncryptionKey()
           
 String getKeyEncryptionTransformation()
          Get the (public-private-key-pair-)transformation used to encrypt the secret keys used for symmetric en-/decryption of the actual data.
 Date getLastUsageTimestamp()
          Get the timestamp when the cipher was used the last time.
 void updateLastUsageTimestamp()
          Update the lastUsageTimestamp (set it to NOW).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoCacheKeyDecrypterEntry

protected CryptoCacheKeyDecrypterEntry(CryptoCacheKeyEncryptionKeyEntry keyEncryptionKey,
                                       String keyEncryptionTransformation,
                                       Cipher keyDecryptor)
Create a new instance.

Parameters:
keyEncryptionKey - corresponding key-pair-entry.
keyEncryptionTransformation - the (public-private-key-pair-)transformation used to encrypt the secret keys used for symmetric encryption/decryption of the actual data.
keyDecryptor - the cipher.
Method Detail

getKeyEncryptionKey

public CryptoCacheKeyEncryptionKeyEntry getKeyEncryptionKey()

getKeyEncryptionTransformation

public String getKeyEncryptionTransformation()
Get the (public-private-key-pair-)transformation used to encrypt the secret keys used for symmetric en-/decryption of the actual data.

Returns:
the (public-private-key-pair-)transformation used to encrypt the secret keys used for symmetric en-/decryption of the actual data.

getKeyDecryptor

public Cipher getKeyDecryptor()
Get the cipher.

Returns:
the cipher.

getLastUsageTimestamp

public Date getLastUsageTimestamp()
Get the timestamp when the cipher was used the last time.

Returns:
the timestamp when the cipher was used the last time.

updateLastUsageTimestamp

public void updateLastUsageTimestamp()
Update the lastUsageTimestamp (set it to NOW).


Cumulus4j API
(1.0.0)

Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.