org.walluck.oscar.handlers.secureim
Class SecureIM

java.lang.Object
  extended byorg.walluck.oscar.handlers.secureim.SecureIM

public class SecureIM
extends java.lang.Object

Handles SecureIM connections.

Since:
1.0
Version:
1.0
Author:
David Walluck

Constructor Summary
SecureIM(AIMSession sess, java.lang.String certificateFilename, java.lang.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,
                java.lang.String certificateFilename,
                java.lang.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 java.io.IOException,
                 java.security.KeyStoreException,
                 java.security.NoSuchAlgorithmException,
                 java.security.NoSuchProviderException,
                 java.security.cert.CertificateException,
                 java.security.InvalidKeyException,
                 javax.crypto.NoSuchPaddingException
Initialize the keystore.

Throws:
java.io.IOException - if an error occurs
java.security.KeyStoreException - if an error occurs
java.security.NoSuchAlgorithmException - if an error occurs
java.security.NoSuchProviderException - if an error occurs
java.security.cert.CertificateException - if an error occurs
java.security.InvalidKeyException - if an error occurs
javax.crypto.NoSuchPaddingException - if an error occurs

getEncoded

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

Returns:
the value of encoded.