org.webdocwf.util.smime.test
Class TestSigEncGeneratedHtml

java.lang.Object
  |
  +--org.webdocwf.util.smime.test.TestSigEncGeneratedHtml

public class TestSigEncGeneratedHtml
extends java.lang.Object

Tests signing and enveloping process. Signed and enveloped text/html message with attachments can be sent by this test. This example is test for composing of email message content by html code which is generated by application, and adding resources assocated in html code from the application, and from the file system. Also, attachments are added to message from the application, or from file system. To get help for this example type: "java org.webdocwf.util.smime.test.TestSigEncGeneratedHtml" in command line. It is assumed that smime200tests.jar is in your classpath.

Parameters passed to example are:
<mailHost> <mailAddress> <cerFileName> <algorithmName> <digestAlgorithm> <includingCert> <includingSignAttrib> <pfxFileName> [<attachment>]

<digestAlgorithm> could be: SHA1_WITH_RSA, MD2_WITH_RSA, MD5_WITH_RSA or SHA1_WITH_DSA.
<includingCert> could be: true/false
<includingSignAttrib> could be: true/false
<algorithmName> could be: RC240, RC264, RC2128, 3DES or 3DES

Note that for this example passwords for .pfx or .p12 files are fixed to "sea1". All .pfx files or .p12 files provided with this example have this password. Also, email address "FROM" is fixed to: "sender@seateam.co.yu". You should change this values in source code of TestSigEncGeneratedHtml.java in order to use them with other .pfx or .p12 files and corresponding "FROM" addresses and passwords.


Constructor Summary
TestSigEncGeneratedHtml()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSigEncGeneratedHtml

public TestSigEncGeneratedHtml()
Method Detail

main

public static void main(java.lang.String[] args)


Copyright © 2002-2002 Together Teamlösungen. All Rights Reserved.