public class SMimeShowDemo extends java.lang.Object
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).
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 and Description |
---|
SMimeShowDemo()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dump(java.lang.Object o)
Dumps the given object (message).
|
static void |
dumpEnvelope(jakarta.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).
|
public SMimeShowDemo()
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 dumpedjava.lang.Exception
- if some error occurspublic static void dumpEnvelope(jakarta.mail.Message m) throws jakarta.mail.MessagingException
m
- the messagejakarta.mail.MessagingException
- if an error occurspublic static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception