org.kde.koala

Class KSMIMECrypto

public class KSMIMECrypto extends Object implements QtSupport

Field Summary
static intKSC_C_DES3_CBC
static intKSC_C_DES_CBC
static intKSC_C_RC2_CBC_128
static intKSC_C_RC2_CBC_40
static intKSC_C_RC2_CBC_64
static intKSC_R_FORMAT
static intKSC_R_NOCIPHER
static intKSC_R_NOMEM
static intKSC_R_NO_SSL
static intKSC_R_OK
static intKSC_R_OTHER
static intKSC_R_VERIFY
static intKSC_R_WRONGKEY
Constructor Summary
protected KSMIMECrypto(Class dummy)
KSMIMECrypto()
Method Summary
intdecryptMessage(byte[] cipherText, StringBuffer clearText, KSSLPKCS12 privKey)
Decrypt a message
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?

Field Detail

KSC_C_DES3_CBC

public static final int KSC_C_DES3_CBC

KSC_C_DES_CBC

public static final int KSC_C_DES_CBC

KSC_C_RC2_CBC_128

public static final int KSC_C_RC2_CBC_128

KSC_C_RC2_CBC_40

public static final int KSC_C_RC2_CBC_40

KSC_C_RC2_CBC_64

public static final int KSC_C_RC2_CBC_64

KSC_R_FORMAT

public static final int KSC_R_FORMAT

KSC_R_NOCIPHER

public static final int KSC_R_NOCIPHER

KSC_R_NOMEM

public static final int KSC_R_NOMEM

KSC_R_NO_SSL

public static final int KSC_R_NO_SSL

KSC_R_OK

public static final int KSC_R_OK

KSC_R_OTHER

public static final int KSC_R_OTHER

KSC_R_VERIFY

public static final int KSC_R_VERIFY

KSC_R_WRONGKEY

public static final int KSC_R_WRONGKEY

Constructor Detail

KSMIMECrypto

protected KSMIMECrypto(Class dummy)

KSMIMECrypto

public KSMIMECrypto()

Method Detail

decryptMessage

public int decryptMessage(byte[] cipherText, 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

UNKNOWN: Decrypt a message

dispose

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

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

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