|
Cumulus4j API (1.1.1) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.store.crypto.keymanager.CryptoCacheCipherEntry
public class CryptoCacheCipherEntry
CryptoCache
-entry wrapping a Cipher
used for symmetric data-en-/decryption.
Constructor Summary | |
---|---|
protected |
CryptoCacheCipherEntry(CryptoCacheKeyEntry keyEntry,
CryptoCacheCipherEntry original)
Create a new instance copying an old one. |
protected |
CryptoCacheCipherEntry(CryptoCacheKeyEntry keyEntry,
String cipherTransformation,
Cipher cipher)
Create a new instance. |
Method Summary | |
---|---|
Cipher |
getCipher()
Get the cipher. |
String |
getCipherTransformation()
Get the transformation (as passed to CryptoRegistry.createCipher(String) ). |
CryptoCacheKeyEntry |
getKeyEntry()
Get the corresponding key-entry. |
Date |
getLastUsageTimestamp()
Get the timestamp when the cipher was used the last time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CryptoCacheCipherEntry(CryptoCacheKeyEntry keyEntry, String cipherTransformation, Cipher cipher)
keyEntry
- the corresponding key-entry. Must not be null
.cipherTransformation
- the transformation (as passed to CryptoRegistry.createCipher(String)
). Must not be null
.cipher
- the cipher. Must not be null
.protected CryptoCacheCipherEntry(CryptoCacheKeyEntry keyEntry, CryptoCacheCipherEntry original)
lastUsageTimestamp
) while keeping this class immutable.
keyEntry
- the key-entry.original
- the original from which to copy.Method Detail |
---|
public CryptoCacheKeyEntry getKeyEntry()
null
.public String getCipherTransformation()
CryptoRegistry.createCipher(String)
).
CryptoRegistry.createCipher(String)
); never null
.public Cipher getCipher()
null
.public Date getLastUsageTimestamp()
|
Cumulus4j API (1.1.1) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |