jce
Tag hmac


JSP tag used for creating HMAC (message authentication code) of strings and files


Tag Information
Tag Classnet.sourceforge.jcetaglib.taglib.crypto.HMAC
TagExtraInfo ClassNone
Body ContentJSP
Display NameHMAC

Attributes
NameRequiredRequest-timeTypeDescription
valuefalsetruejava.lang.StringBufferOptional attribute, the string to generate the MAC from. The body of the tag will be taken if omitted.
varfalsefalsejava.lang.StringOptional attribute, variable to store the MAC. The MAC will be printed if omitted.
scopefalsefalsejava.lang.StringScope of the 'var' attribute. Can be 'page', 'session', 'request' or 'application'. Default is 'page'.
hmacnamefalsetruejava.lang.StringThe MAC algorithm. See the next paragraph under 'MAC' for supported algorithms. Default is 'HMac-SHA512'.
filefalsetruejava.lang.StringCreate a MAC from a file instead of a string
keyfiletruetruejava.lang.StringThe symmetric key file(name)
passphrasetruetruejava.lang.StringBufferKeystore passphrase
algorithmfalsetruejava.lang.StringThe key algorithm. Default is 'AES'

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.