|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdemo.smime.basic.BinarySignedDemo
public class BinarySignedDemo
This class shows how to create, sign and then parse/verify a mulitpart/signed message where the content is not canonicalized.
The only difference to the common usage of this S/MIME library
is to use a binary
canonicalizer
which does not canonicalize the content.
To run this demo the following packages are required:
iaik_cms.jar
(IAIK-CMS/SMIME)
iaik_jce(_full).jar
(IAIK-JCE Core Crypto Library).
mail.jar
(JavaMail API).
activation.jar
(Java Activation Framework; required for JDK versions < 1.6).
SignedContent
,
BinaryCanonicalizer
Constructor Summary | |
---|---|
BinarySignedDemo()
Default constructor. |
Method Summary | |
---|---|
javax.mail.Message |
createSignedMessage(javax.mail.Session session,
javax.activation.DataHandler dataHandler)
Creates a signed message. |
static void |
main(java.lang.String[] argv)
The main method. |
void |
start()
Starts the demo. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinarySignedDemo()
Method Detail |
---|
public void start() throws java.io.IOException
java.io.IOException
- if an I/O related error occurspublic javax.mail.Message createSignedMessage(javax.mail.Session session, javax.activation.DataHandler dataHandler) throws javax.mail.MessagingException
session
- the mail sessiondataHandler
- the content of the message to be signed
javax.mail.MessagingException
- if an error occurs when creating the messagepublic static void main(java.lang.String[] argv) throws java.io.IOException
java.io.IOException
|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC |
![]() |