IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1

demo
Class DemoSMimeUtil

java.lang.Object
  extended by demo.DemoUtil
      extended by demo.DemoSMimeUtil

public class DemoSMimeUtil
extends DemoUtil

Some basic utility methods used by the S/MIME demos.


Field Summary
 
Fields inherited from class demo.DemoUtil
CREATE_DEMO_KEYSTORE_AUTOMATICAllY, DEMO_DEBUG, IAIK_JAVA_SECURITY_DEMO_CMS_OID
 
Method Summary
static javax.activation.CommandMap addContentHandlers(javax.activation.MailcapCommandMap mc)
          Adds the IAIK S/MIME content handlers to the given MailcapCommandMap.
static javax.mail.Session getSession()
          Returns (the default) mail session object.
static javax.mail.Session getSession(java.lang.String mailhost)
          Returns a mail session object for the given mailhost.
static void initDemos()
          Perform a some initial setup to allow the demos to work
static void initDemos(boolean quickStart)
          Perform a some initial setup to allow the demos to work
static void registerMailCapEntries()
          Registers the IAIK content handlers for the mailcap command map.
 
Methods inherited from class demo.DemoUtil
addIaikProvider, addProvider, createPssAlgorithmID, getIaikProviderVersion, initRandom, initRandom, waitKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initDemos

public static void initDemos()
Perform a some initial setup to allow the demos to work


initDemos

public static void initDemos(boolean quickStart)
Perform a some initial setup to allow the demos to work

Parameters:
quickStart - whether to init the random generator with a (not strong) seed for quick start (ONLY FOR DEMO PURPOSES; NOT FOR PRODUCTION ENVIRONMENT!)

registerMailCapEntries

public static void registerMailCapEntries()
Registers the IAIK content handlers for the mailcap command map.


addContentHandlers

public static javax.activation.CommandMap addContentHandlers(javax.activation.MailcapCommandMap mc)
Adds the IAIK S/MIME content handlers to the given MailcapCommandMap.

Parameters:
mc - the MailcapCommandMap to which to add the content handlers
Returns:
the MailcapCommandMap to which the content handlers have been added

getSession

public static javax.mail.Session getSession()
Returns (the default) mail session object.

Returns:
(the default) session object.

getSession

public static javax.mail.Session getSession(java.lang.String mailhost)
Returns a mail session object for the given mailhost.

Parameters:
mailhost - the mailhost to be used
Returns:
a mail session object for the given mailhost.

IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1

v6.1
(c) 2002 IAIK, (c) 2003 - 2025 SIC