org.kde.koala
Class KSMIMECrypto
java.lang.Object
org.kde.koala.KSMIMECrypto
- All Implemented Interfaces:
- org.kde.qt.QtSupport
public class KSMIMECrypto
- extends java.lang.Object
- implements org.kde.qt.QtSupport
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 |
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
KSMIMECrypto
protected KSMIMECrypto(java.lang.Class dummy)
KSMIMECrypto
public KSMIMECrypto()
decryptMessage
public int decryptMessage(byte[] cipherText,
java.lang.StringBuffer clearText,
KSSLPKCS12 privKey)
- Decrypt a message
- Parameters:
cipherText
- encrypted message blockclearText
- returns decrypted messageprivKey
- 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?