demo.midp
Class MidletRSA

java.lang.Object
  |
  +--javax.microedition.midlet.MIDlet
        |
        +--demo.midp.MidletRSA
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public class MidletRSA
extends javax.microedition.midlet.MIDlet
implements javax.microedition.lcdui.CommandListener

This class demonstrates the usage of the IAIK-Crytotoolkit with MIDlets


Constructor Summary
MidletRSA()
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable s)
          Revceives commands from input etc. and processes them.
 void destroyApp(boolean unconditional)
          Destroy must cleanup everything.
static void main(String[] args)
           
 void pauseApp()
          Time to pause, free any space we don't need right now.
 void rsaDecrypt()
          Starts the RSA decryption with the RSA private key.
 void rsaEncryption()
          Performs the actual encryption.
 void rsaEncryptionForm()
          Starts the RSA encryption with the RSA public key.
 void rsaGenerateKeys()
          Generates a new RSA keypair.
 void start()
          Starts the actual security tasks...
 void startApp()
          Startmethod for MIDlet.
 
Methods inherited from class javax.microedition.midlet.MIDlet
getAppProperty, notifyDestroyed, notifyPaused, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidletRSA

public MidletRSA()
Method Detail

rsaGenerateKeys

public void rsaGenerateKeys()
                     throws CryptoException
Generates a new RSA keypair.

rsaEncryptionForm

public void rsaEncryptionForm()
                       throws CryptoException
Starts the RSA encryption with the RSA public key.

rsaEncryption

public void rsaEncryption()
                   throws CryptoException
Performs the actual encryption.

rsaDecrypt

public void rsaDecrypt()
                throws CryptoException
Starts the RSA decryption with the RSA private key.

start

public void start()
Starts the actual security tasks...

startApp

public void startApp()
Startmethod for MIDlet. This method is requrired for MIDlets to start.
Overrides:
startApp in class javax.microedition.midlet.MIDlet

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable s)
Revceives commands from input etc. and processes them. This method is requrired for MIDlets.
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

pauseApp

public void pauseApp()
Time to pause, free any space we don't need right now. This method is requrired for MIDlets.
Overrides:
pauseApp in class javax.microedition.midlet.MIDlet

destroyApp

public void destroyApp(boolean unconditional)
Destroy must cleanup everything. This method is requrired for MIDlets.
Overrides:
destroyApp in class javax.microedition.midlet.MIDlet

main

public static void main(String[] args)

This Javadoc may contain text parts from IETF Internet Standard specifications, see copyright note) and RSA Data Security Public-Key Cryptography Standards (see copyright note).

IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC