be.fedict.eid.applet.service.impl.handler
Class SignatureDataMessageHandler

java.lang.Object
  extended by be.fedict.eid.applet.service.impl.handler.SignatureDataMessageHandler
All Implemented Interfaces:
MessageHandler<be.fedict.eid.applet.shared.SignatureDataMessage>

@HandlesMessage(value=be.fedict.eid.applet.shared.SignatureDataMessage.class)
public class SignatureDataMessageHandler
extends Object
implements MessageHandler<be.fedict.eid.applet.shared.SignatureDataMessage>

Signature data message protocol handler.

Author:
Frank Cornelis

Field Summary
static String DIGEST_ALGO_SESSION_ATTRIBUTE
           
static String DIGEST_VALUE_SESSION_ATTRIBUTE
           
 
Constructor Summary
SignatureDataMessageHandler()
           
 
Method Summary
static String getDigestAlgo(HttpSession session)
           
static byte[] getDigestValue(HttpSession session)
           
 Object handleMessage(be.fedict.eid.applet.shared.SignatureDataMessage message, Map<String,String> httpHeaders, HttpServletRequest request, HttpSession session)
          Handles the given message.
 void init(ServletConfig config)
          Initializes this message handler.
static void setDigestValue(byte[] digestValue, String digestAlgo, HttpSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIGEST_VALUE_SESSION_ATTRIBUTE

public static final String DIGEST_VALUE_SESSION_ATTRIBUTE

DIGEST_ALGO_SESSION_ATTRIBUTE

public static final String DIGEST_ALGO_SESSION_ATTRIBUTE
Constructor Detail

SignatureDataMessageHandler

public SignatureDataMessageHandler()
Method Detail

handleMessage

public Object handleMessage(be.fedict.eid.applet.shared.SignatureDataMessage message,
                            Map<String,String> httpHeaders,
                            HttpServletRequest request,
                            HttpSession session)
                     throws ServletException
Description copied from interface: MessageHandler
Handles the given message. Returns the response message to send back, this can be null.

Specified by:
handleMessage in interface MessageHandler<be.fedict.eid.applet.shared.SignatureDataMessage>
request - the request from which the body already may be consumed.
Returns:
the optional response message to send back.
Throws:
ServletException

init

public void init(ServletConfig config)
          throws ServletException
Description copied from interface: MessageHandler
Initializes this message handler.

Specified by:
init in interface MessageHandler<be.fedict.eid.applet.shared.SignatureDataMessage>
Throws:
ServletException

getDigestValue

public static byte[] getDigestValue(HttpSession session)

setDigestValue

public static void setDigestValue(byte[] digestValue,
                                  String digestAlgo,
                                  HttpSession session)

getDigestAlgo

public static String getDigestAlgo(HttpSession session)


Copyright © 2008-2013 FedICT. All Rights Reserved.