Cumulus4j API
(1.1.1)

org.cumulus4j.keymanager.channel
Class GetActiveEncryptionKeyRequestHandler

java.lang.Object
  extended by org.cumulus4j.keymanager.channel.AbstractRequestHandler<GetActiveEncryptionKeyRequest>
      extended by 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

Constructor Summary
GetActiveEncryptionKeyRequestHandler()
           
 
Method Summary
 Response handle(GetActiveEncryptionKeyRequest request)
          Handle the given request.
 
Methods inherited from class org.cumulus4j.keymanager.channel.AbstractRequestHandler
getKeyManagerChannelManager, setKeyManagerChannelManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetActiveEncryptionKeyRequestHandler

public GetActiveEncryptionKeyRequestHandler()
Method Detail

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

Cumulus4j API
(1.1.1)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.