org.cumulus4j.keymanager.channel
Class GetActiveEncryptionKeyRequestHandler
java.lang.Object
org.cumulus4j.keymanager.channel.AbstractRequestHandler<GetActiveEncryptionKeyRequest>
org.cumulus4j.keymanager.channel.GetActiveEncryptionKeyRequestHandler
- All Implemented Interfaces:
- RequestHandler<GetActiveEncryptionKeyRequest>
public class GetActiveEncryptionKeyRequestHandler
- extends AbstractRequestHandler<GetActiveEncryptionKeyRequest>
Handler for GetActiveEncryptionKeyRequest
.
If the Session
is found for the given
cryptoSessionID
and
it is not locked
, this handler determines the currently active
encryption key and sends it in a GetKeyResponse
to the server.
- Author:
- Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetActiveEncryptionKeyRequestHandler
public GetActiveEncryptionKeyRequestHandler()
handle
public Response handle(GetActiveEncryptionKeyRequest request)
throws AuthenticationException,
KeyNotFoundException,
IOException,
GeneralSecurityException,
CryptoException
- Description copied from interface:
RequestHandler
- Handle the given request.
- Parameters:
request
- the request to be handled; never null
.
- Returns:
- the response for the given request; can be
null
, which is sent
as NullResponse
to the server.
- Throws:
AuthenticationException
KeyNotFoundException
IOException
GeneralSecurityException
CryptoException
Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.