|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.store.crypto.keymanager.CryptoCacheKeyEncryptionKeyEntry
public class CryptoCacheKeyEncryptionKeyEntry
CryptoCache
-entry wrapping a key-pair
used for asymmetric en-/decryption of secret keys.
Constructor Summary | |
---|---|
protected |
CryptoCacheKeyEncryptionKeyEntry(AsymmetricCipherKeyPair keyPair,
long keyEncryptionKeyActivePeriodMSec)
Create an instance. |
Method Summary | |
---|---|
byte[] |
getEncodedPublicKey()
Get the encoded (serialised) public key. |
Date |
getExpiry()
Get the timestamp after which the key-pair expires. |
AsymmetricCipherKeyPair |
getKeyPair()
Get the key-pair. |
boolean |
isExpired()
Determine, if this entry is expired. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CryptoCacheKeyEncryptionKeyEntry(AsymmetricCipherKeyPair keyPair, long keyEncryptionKeyActivePeriodMSec)
keyPair
- the key-pair used for en-/decrypting secret keys.keyEncryptionKeyActivePeriodMSec
- the length (in milliseconds) how long the key-pair should be used.Method Detail |
---|
public Date getExpiry()
CryptoCacheKeyEncryptionKeyEntry
should be evicted then.
null
.public boolean isExpired()
true
, if the key-pair is expired and should not be used anymore; false
otherwise.public AsymmetricCipherKeyPair getKeyPair()
null
.public byte[] getEncodedPublicKey()
CryptoRegistry.decodePublicKey(byte[])
can be used to decode (deserialise) the byte array
again.
|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |