Jakarta Mailer Taglib 2.0
Tag encrypt


JSP tag <b>mt:encrypt</b> is used to S/MIME encrypt a previously stored message. <p/> mt:encrypt does not have any child tags.

Example:
<mt:mail var="message" subject="Encrypted Mail" from="john.doe@example.com"
    to="jane.doe@example.com" server="smtp.example.com">
    Hi Jane, this mail has been signed and encrypted.
</mt:mail>
</mt:encrypt message="${message}" var="encryptedMessage" keystore="keystore.p12"
    alias="johndoe" storepass="secret"/>
</mt:send message="${encryptedMessage}"/>
        


Tag Information
Tag Classorg.apache.taglibs.mailer2.EncryptTag
TagExtraInfo ClassNone
Body Contentempty
Display Namemt:encrypt

Attributes
NameRequiredRequest-timeTypeDescription
messageyesyesjavax.mail.internet.MimeMessageThe message to encrypt
keystoreyesyesjava.lang.StringThe name of the keystore file (e.g. keystore.p12 or keystore.pfx)
storepassnoyesjava.lang.StringThe password to open the keystore
storetypenoyesjava.lang.StringThe type of keystore file, e.g. "PKCS12" (default, for .p12 or .pfx keystores), or "JKS", etc.
aliasyesyesjava.lang.StringThe alias of the private key in the keystore to encrypt the message with
varyesnojava.lang.StringThe name of the variable to store the encrypted message in
scopenoyesjava.lang.StringThe scope to store the encrypted message in, either "page" (default), "request", "session", or "application"

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.