Cumulus4j API
(1.2.0)

org.cumulus4j.store.crypto.keymanager
Class CryptoCacheKeyEntry

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

public class CryptoCacheKeyEntry
extends Object

CryptoCache-entry wrapping a secret key used for symmetric en-/decryption of actual data.

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

Constructor Summary
protected CryptoCacheKeyEntry(long keyID, byte[] keyData)
          Create a new instance.
 
Method Summary
protected  void finalize()
           
 byte[] getKeyData()
          Get the actual raw key data.
 long getKeyID()
          Get the identifier of the key being cached.
 Date getLastUsageTimestamp()
          Get the timestamp when the key was used the last time.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoCacheKeyEntry

protected CryptoCacheKeyEntry(long keyID,
                              byte[] keyData)
Create a new instance.

Parameters:
keyID - identifier of the key to be cached; must be >= 0.
keyData - actual key data (raw). Warning: This byte array will be overwritten with 0 by the finalize() method!
Method Detail

getKeyID

public long getKeyID()
Get the identifier of the key being cached.

Returns:
the identifier of the key being cached.

getKeyData

public byte[] getKeyData()
Get the actual raw key data.

Returns:
the actual raw key data.

getLastUsageTimestamp

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

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

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

Cumulus4j API
(1.2.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.