|
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.keymanager.back.shared.Message org.cumulus4j.keymanager.back.shared.Response org.cumulus4j.keymanager.back.shared.GetKeyResponse org.cumulus4j.keymanager.back.shared.GetActiveEncryptionKeyResponse
public class GetActiveEncryptionKeyResponse
Response
implementation to send the currently active encryption key to the app-server.
It is the response to a GetActiveEncryptionKeyRequest
.
GetActiveEncryptionKeyRequest
,
Serialized FormConstructor Summary | |
---|---|
GetActiveEncryptionKeyResponse()
Create an empty instance of GetActiveEncryptionKeyResponse . |
|
GetActiveEncryptionKeyResponse(Request request,
long keyID,
byte[] keyEncodedEncrypted,
Date activeUntilExcl)
Create an instance of GetActiveEncryptionKeyResponse in order to reply the given request . |
Method Summary | |
---|---|
Date |
getActiveUntilExcl()
Get the moment in time until (excluding) which the key transported by this response should be used for encryption. |
void |
setActiveUntilExcl(Date activeUntilExcl)
Set the moment in time until (excluding) which the key transported by this response should be used for encryption. |
Methods inherited from class org.cumulus4j.keymanager.back.shared.GetKeyResponse |
---|
getKeyEncodedEncrypted, getKeyID, setKeyEncodedEncrypted, setKeyID |
Methods inherited from class org.cumulus4j.keymanager.back.shared.Response |
---|
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 GetActiveEncryptionKeyResponse()
GetActiveEncryptionKeyResponse
.
Only used for serialisation/deserialisation.
public GetActiveEncryptionKeyResponse(Request request, long keyID, byte[] keyEncodedEncrypted, Date activeUntilExcl)
GetActiveEncryptionKeyResponse
in order to reply the given request
.
request
- the request to be replied (an instance of GetActiveEncryptionKeyRequest
).keyID
- the identifier of the key to be sent to the app-server.keyEncodedEncrypted
- the encrypted
symmetric secret key.activeUntilExcl
- the timestamp until which this key should be used for encryption. As soon as this timestamp
is reached, the app-server should again send a GetActiveEncryptionKeyRequest
to the key-manager.Method Detail |
---|
public Date getActiveUntilExcl()
setActiveUntilExcl(Date)
public void setActiveUntilExcl(Date activeUntilExcl)
activeUntilExcl
- the moment in time until which the key transported by this response should be used for encryption.getActiveUntilExcl()
|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |