|
Cumulus4j API (1.2.0-SNAPSHOT) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.keymanager.back.shared.Message org.cumulus4j.keymanager.back.shared.Request org.cumulus4j.keymanager.back.shared.GetActiveEncryptionKeyRequest
public class GetActiveEncryptionKeyRequest
Request
implementation to get the currently active encryption key.
In order to prevent an attacker dumping an app-server's memory from gaining access to all the data, Cumulus4j uses many different keys for encryption. Usually, it rotates the encryption key once per day, but different settings are possible (e.g. once per hour for the very paranoid).
GetActiveEncryptionKeyResponse
,
Serialized FormConstructor Summary | |
---|---|
GetActiveEncryptionKeyRequest()
Create an empty instance of GetActiveEncryptionKeyRequest . |
|
GetActiveEncryptionKeyRequest(String cryptoSessionID,
String keyEncryptionTransformation,
byte[] keyEncryptionPublicKey)
Create an instance of GetActiveEncryptionKeyRequest for asking the key-manager about
the currently active encryption key. |
Method Summary | |
---|---|
byte[] |
getKeyEncryptionPublicKey()
Get the public key to be used to encrypt the symmetric secret key. |
String |
getKeyEncryptionTransformation()
Get the asymmetric encryption algorithm to be used to encrypt the symmetric secret key. |
Date |
getTimestamp()
Get the timestamp which the active encryption key should be determined for. |
void |
setKeyEncryptionPublicKey(byte[] keyEncryptionPublicKey)
Set the public key to be used to encrypt the symmetric secret key. |
void |
setKeyEncryptionTransformation(String keyEncryptionTransformation)
Set the asymmetric encryption algorithm to be used when encrypting the symmetric secret key. |
void |
setTimestamp(Date timestamp)
Set the timestamp which the active encryption key should be determined for |
Methods inherited from class org.cumulus4j.keymanager.back.shared.Request |
---|
getCryptoSessionID, getCryptoSessionIDPrefix, setCryptoSessionID, toString |
Methods inherited from class org.cumulus4j.keymanager.back.shared.Message |
---|
equals, getRequestID, hashCode, setRequestID |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GetActiveEncryptionKeyRequest()
GetActiveEncryptionKeyRequest
.
Only used for serialisation/deserialisation.
public GetActiveEncryptionKeyRequest(String cryptoSessionID, String keyEncryptionTransformation, byte[] keyEncryptionPublicKey)
GetActiveEncryptionKeyRequest
for asking the key-manager about
the currently active encryption key.
cryptoSessionID
- the identifier of the crypto-session in which the request should be processed.
It must exist and be unlocked for this request to succeed.keyEncryptionTransformation
- the asymmetric encryption algorithm (with padding) that should be
used by the key-manager to encrypt the symmetric secret key, before sending it to the app-server. For example
"RSA//OAEPWITHSHA1ANDMGF1PADDING".keyEncryptionPublicKey
- the public key to be used by the key-manager to encrypt the
key when sending it back to the app-server.Method Detail |
---|
public Date getTimestamp()
public void setTimestamp(Date timestamp)
timestamp
- the timestamp which the active encryption key should be determined forpublic String getKeyEncryptionTransformation()
Get the asymmetric encryption algorithm to be used to encrypt the symmetric secret key.
The key-manager uses this transformation
(which should include a padding, e.g. "RSA//OAEPWITHSHA1ANDMGF1PADDING") to
obtain a Cipher
for encrypting the secret key
before sending it to the app-server.
setKeyEncryptionTransformation(String)
public void setKeyEncryptionTransformation(String keyEncryptionTransformation)
keyEncryptionTransformation
- the asymmetric encryption algorithm to be used when encrypting the symmetric secret key.getKeyEncryptionTransformation()
public byte[] getKeyEncryptionPublicKey()
public void setKeyEncryptionPublicKey(byte[] keyEncryptionPublicKey)
keyEncryptionPublicKey
- the public key to be used to encrypt the symmetric secret key.
|
Cumulus4j API (1.2.0-SNAPSHOT) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |