public class DemoSMimeUtil extends DemoUtil
CREATE_DEMO_KEYSTORE_AUTOMATICAllY, DEMO_DEBUG, IAIK_JAVA_SECURITY_DEMO_CMS_OID
Modifier and Type | Method and Description |
---|---|
static jakarta.activation.CommandMap |
addContentHandlers(jakarta.activation.MailcapCommandMap mc)
Adds the IAIK S/MIME content handlers to the given MailcapCommandMap.
|
static jakarta.mail.Session |
getSession()
Returns (the default) mail session object.
|
static jakarta.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.
|
addIaikProvider, addProvider, createPssAlgorithmID, getIaikProviderVersion, initRandom, initRandom, waitKey
public static void initDemos()
public static void initDemos(boolean quickStart)
quickStart
- whether to init the random generator with a
(not strong) seed for quick start (ONLY FOR
DEMO PURPOSES; NOT FOR PRODUCTION ENVIRONMENT!)public static void registerMailCapEntries()
public static jakarta.activation.CommandMap addContentHandlers(jakarta.activation.MailcapCommandMap mc)
mc
- the MailcapCommandMap to which to add the content handlerspublic static jakarta.mail.Session getSession()
public static jakarta.mail.Session getSession(java.lang.String mailhost)
mailhost
- the mailhost to be used