@HandlesMessage(value=be.fedict.eid.applet.shared.SignatureDataMessage.class) public class SignatureDataMessageHandler extends Object implements MessageHandler<be.fedict.eid.applet.shared.SignatureDataMessage>
Modifier and Type | Field and Description |
---|---|
static String |
DIGEST_ALGO_SESSION_ATTRIBUTE |
static String |
DIGEST_VALUE_SESSION_ATTRIBUTE |
static byte[] |
RIPEMD128_DIGEST_INFO_PREFIX |
static byte[] |
RIPEMD160_DIGEST_INFO_PREFIX |
static byte[] |
RIPEMD256_DIGEST_INFO_PREFIX |
static byte[] |
SHA1_DIGEST_INFO_PREFIX |
static byte[] |
SHA224_DIGEST_INFO_PREFIX |
static byte[] |
SHA256_DIGEST_INFO_PREFIX |
static byte[] |
SHA384_DIGEST_INFO_PREFIX |
static byte[] |
SHA512_DIGEST_INFO_PREFIX |
Constructor and Description |
---|
SignatureDataMessageHandler() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final byte[] SHA1_DIGEST_INFO_PREFIX
public static final byte[] SHA224_DIGEST_INFO_PREFIX
public static final byte[] SHA256_DIGEST_INFO_PREFIX
public static final byte[] SHA384_DIGEST_INFO_PREFIX
public static final byte[] SHA512_DIGEST_INFO_PREFIX
public static final byte[] RIPEMD160_DIGEST_INFO_PREFIX
public static final byte[] RIPEMD128_DIGEST_INFO_PREFIX
public static final byte[] RIPEMD256_DIGEST_INFO_PREFIX
public static final String DIGEST_VALUE_SESSION_ATTRIBUTE
public static final String DIGEST_ALGO_SESSION_ATTRIBUTE
public Object handleMessage(be.fedict.eid.applet.shared.SignatureDataMessage message, Map<String,String> httpHeaders, HttpServletRequest request, HttpSession session) throws ServletException
MessageHandler
null
.handleMessage
in interface MessageHandler<be.fedict.eid.applet.shared.SignatureDataMessage>
request
- the request from which the body already may be consumed.ServletException
public void init(ServletConfig config) throws ServletException
MessageHandler
init
in interface MessageHandler<be.fedict.eid.applet.shared.SignatureDataMessage>
ServletException
public static byte[] getDigestValue(HttpSession session)
public static void setDigestValue(byte[] digestValue, String digestAlgo, HttpSession session)
public static String getDigestAlgo(HttpSession session)
Copyright © 2008-2016 FedICT. All Rights Reserved.