org.kde.koala
Class KSMIMECrypto

java.lang.Object
  extended by org.kde.koala.KSMIMECrypto
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KSMIMECrypto
extends java.lang.Object
implements org.kde.qt.QtSupport


Field Summary
static int KSC_C_DES_CBC
           
static int KSC_C_DES3_CBC
           
static int KSC_C_RC2_CBC_128
           
static int KSC_C_RC2_CBC_40
           
static int KSC_C_RC2_CBC_64
           
static int KSC_R_FORMAT
           
static int KSC_R_NO_SSL
           
static int KSC_R_NOCIPHER
           
static int KSC_R_NOMEM
           
static int KSC_R_OK
           
static int KSC_R_OTHER
           
static int KSC_R_VERIFY
           
static int KSC_R_WRONGKEY
           
 
Constructor Summary
  KSMIMECrypto()
           
protected KSMIMECrypto(java.lang.Class dummy)
           
 
Method Summary
 int decryptMessage(byte[] cipherText, java.lang.StringBuffer clearText, KSSLPKCS12 privKey)
          Decrypt a message
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KSC_C_DES3_CBC

public static final int KSC_C_DES3_CBC
See Also:
Constant Field Values

KSC_C_RC2_CBC_128

public static final int KSC_C_RC2_CBC_128
See Also:
Constant Field Values

KSC_C_RC2_CBC_64

public static final int KSC_C_RC2_CBC_64
See Also:
Constant Field Values

KSC_C_DES_CBC

public static final int KSC_C_DES_CBC
See Also:
Constant Field Values

KSC_C_RC2_CBC_40

public static final int KSC_C_RC2_CBC_40
See Also:
Constant Field Values

KSC_R_OK

public static final int KSC_R_OK
See Also:
Constant Field Values

KSC_R_OTHER

public static final int KSC_R_OTHER
See Also:
Constant Field Values

KSC_R_NO_SSL

public static final int KSC_R_NO_SSL
See Also:
Constant Field Values

KSC_R_NOCIPHER

public static final int KSC_R_NOCIPHER
See Also:
Constant Field Values

KSC_R_NOMEM

public static final int KSC_R_NOMEM
See Also:
Constant Field Values

KSC_R_FORMAT

public static final int KSC_R_FORMAT
See Also:
Constant Field Values

KSC_R_WRONGKEY

public static final int KSC_R_WRONGKEY
See Also:
Constant Field Values

KSC_R_VERIFY

public static final int KSC_R_VERIFY
See Also:
Constant Field Values
Constructor Detail

KSMIMECrypto

protected KSMIMECrypto(java.lang.Class dummy)

KSMIMECrypto

public KSMIMECrypto()
Method Detail

decryptMessage

public int decryptMessage(byte[] cipherText,
                          java.lang.StringBuffer clearText,
                          KSSLPKCS12 privKey)
Decrypt a message

Parameters:
cipherText - encrypted message block
clearText - returns decrypted message
privKey - private key to use
Returns:
0 on success

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()


isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?