Cumulus4j API
(1.0.1)

org.cumulus4j.keymanager.channel
Class GetKeyRequestHandler

java.lang.Object
  extended by org.cumulus4j.keymanager.channel.AbstractRequestHandler<GetKeyRequest>
      extended by org.cumulus4j.keymanager.channel.GetKeyRequestHandler
All Implemented Interfaces:
RequestHandler<GetKeyRequest>

public class GetKeyRequestHandler
extends AbstractRequestHandler<GetKeyRequest>

Handler for GetKeyRequest.

If the Session is found for the given cryptoSessionID and it is not locked, this handler looks up the desired key and sends it in a GetKeyResponse to the server.

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Constructor Summary
GetKeyRequestHandler()
           
 
Method Summary
 Response handle(GetKeyRequest 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

GetKeyRequestHandler

public GetKeyRequestHandler()
Method Detail

handle

public Response handle(GetKeyRequest request)
                throws AuthenticationException,
                       KeyNotFoundException,
                       GeneralSecurityException,
                       IOException,
                       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
GeneralSecurityException
IOException
CryptoException

Cumulus4j API
(1.0.1)

Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.