org.walluck.oscar.handlers.secureim
Class SecureIM

java.lang.Object
  extended by org.walluck.oscar.handlers.secureim.SecureIM

public class SecureIM
extends Object

Handles SecureIM connections.

Since:
1.0
Version:
1.0
Author:
David Walluck

Constructor Summary
SecureIM(AIMSession sess, String certificateFilename, String certificatePassword)
          Creates a new SecureIM.
 
Method Summary
 byte[] getEncoded()
          Get the value of encoded.
 void init()
          Initialize the keystore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureIM

public SecureIM(AIMSession sess,
                String certificateFilename,
                String certificatePassword)
Creates a new SecureIM.

Parameters:
sess - the oscar session
certificateFilename - the certificate filename (.p12 format)
certificatePassword - the certifcate password
Method Detail

init

public void init()
          throws IOException,
                 KeyStoreException,
                 NoSuchAlgorithmException,
                 NoSuchProviderException,
                 CertificateException,
                 InvalidKeyException,
                 NoSuchPaddingException
Initialize the keystore.

Throws:
IOException - if an error occurs
KeyStoreException - if an error occurs
NoSuchAlgorithmException - if an error occurs
NoSuchProviderException - if an error occurs
CertificateException - if an error occurs
InvalidKeyException - if an error occurs
NoSuchPaddingException - if an error occurs

getEncoded

public byte[] getEncoded()
Get the value of encoded.

Returns:
the value of encoded.