|
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.SMimeShowDemo
public class SMimeShowDemo
This class demonstrates the usage of the IAIK S/MIME implementation for downloading and verifying/decrypting signed and/or encrypted emails from some mail server.
To run this demo the following packages are required:
iaik_cms.jar
(IAIK-CMS/SMIME)
iaik_jce(_full).jar
(IAIK-JCE Core Crypto Library).
iaik_eccelerate.jar
(IAIK ECC Library, if you want to use Elliptic Curve Cryptography).
mail.jar
(JavaMail API).
activation.jar
(Java Activation Framework; required for JDK versions < 1.6).
SMimeShow [-L url] [-T protocol] [-H host] [-U user] [-P password] [-f mailbox] [msgnum] [-v]Example to display message 2:
SMimeShow -T imap -H mailhost -U test -P test -f INBOX 2
EncryptedContent
,
SignedContent
Constructor Summary | |
---|---|
SMimeShowDemo()
Default constructor. |
Method Summary | |
---|---|
void |
dump(java.lang.Object o)
Dumps the given object (message). |
static void |
dumpEnvelope(javax.mail.Message m)
Prints the envelope of a message. |
static void |
main(java.lang.String[] argv)
Main method. |
void |
show(java.lang.String[] argv)
Connects to the mail server, downloads messages, verifies/decrypts them (if they are signed/encrypted). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SMimeShowDemo()
Method Detail |
---|
public void show(java.lang.String[] argv) throws java.io.IOException
argv
- optional parameters like mailhost, account name,...
java.io.IOException
- if an I/O related error occurspublic void dump(java.lang.Object o) throws java.lang.Exception
o
- the object (message) to be dumped
java.lang.Exception
- if some error occurspublic static void dumpEnvelope(javax.mail.Message m) throws javax.mail.MessagingException
m
- the message
javax.mail.MessagingException
- if an error occurspublic static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
|
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 |
![]() |