|
Cumulus4j API (1.2.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
public class GetKeyResponse
Response
implementation to send a specific symmetric secret key to the app-server.
It is the response to a GetKeyRequest
.
GetKeyRequest
,
Serialized FormConstructor Summary | |
---|---|
GetKeyResponse()
Create an empty instance of GetKeyResponse . |
|
GetKeyResponse(Request request,
long keyID,
byte[] keyEncodedEncrypted)
Create an instance of GetKeyResponse in order to reply the given request . |
Method Summary | |
---|---|
byte[] |
getKeyEncodedEncrypted()
Get the encrypted symmetric secret key. |
long |
getKeyID()
Get the identifier of the symmetric secret key transported by this response. |
void |
setKeyEncodedEncrypted(byte[] key)
Set the encrypted symmetric secret key. |
void |
setKeyID(long keyID)
Set the identifier of the symmetric secret key transported by this response. |
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 GetKeyResponse()
GetKeyResponse
.
Only used for serialisation/deserialisation.
public GetKeyResponse(Request request, long keyID, byte[] keyEncodedEncrypted)
GetKeyResponse
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.Method Detail |
---|
public long getKeyID()
setKeyID(long)
public void setKeyID(long keyID)
keyID
- the identifier of the symmetric secret key transported by this response.getKeyID()
public byte[] getKeyEncodedEncrypted()
encrypted
symmetric secret key.
encrypted
symmetric secret key.setKeyEncodedEncrypted(byte[])
public void setKeyEncodedEncrypted(byte[] key)
encrypted
symmetric secret key.
key
- the encrypted
symmetric secret key.getKeyEncodedEncrypted()
|
Cumulus4j API (1.2.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |