Enhydra-Oyster 2.1-7 API

org.enhydra.oyster.test
Class TestSignedKeyStore

java.lang.Object
  extended byorg.enhydra.oyster.test.TestSignedKeyStore

public class TestSignedKeyStore
extends java.lang.Object

Tests signing process. Signed text/plain message with or withouth attachments can be sent by this test. This example is test for signing of email message by usage of keys and certificates from optional KeyStore storage file. To get help for this example type: "java org.enhydra.oyster.test.TestSignedKeyStore" in command line. It is assumed that oyster_tests.jar is in your classpath.

Parameters passed to example are:
<mailHost> <mailAddress> <digestAlgorithm> <includingCert> <includingSignAttrib> <pfxFileName> <externalSigning> [<attachment>]

<digestAlgorithm> could be: SHA1_WITH_RSA, MD2_WITH_RSA, MD5_WITH_RSA or SHA1_WITH_DSA.
<includingCert> could be: true/false
<includingSignAttrib> could be: true/false
<externalSigning> could be: true/false

Note that password for KeyStore file ('keystore.ks') used in this example, is "together", and the KeyStore has type 'BKS'. You may change this values in source code of TestSignedKeyStore.java in order to use them with other KeyStore files. Also, email address "FROM" is fixed to: "sender@together.at", and should change too, in order to use them with other KeyStore file entryes. Aliases which exist in keystore.ks for corresponding private keys and certificate chains are: 'senderDSA512.pfx', 'recipient1024.pfx', 'recipient2048.pfx', 'recipient512.pfx', 'recipientDSA1024.pfx', 'recipientDSA512.pfx', 'sender1024.pfx', 'sender2048.pfx', 'sender512.pfx', 'senderDSA1024.pfx'.


Constructor Summary
TestSignedKeyStore()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSignedKeyStore

public TestSignedKeyStore()
Method Detail

main

public static void main(java.lang.String[] args)

Enhydra-Oyster 2.1-7 API