tigase.io
Class TLSWrapper

java.lang.Object
  extended by tigase.io.TLSWrapper

public class TLSWrapper
extends Object

Describe class TLSWrapper here. Created: Sat Mar 5 09:13:29 2005

Version:
$Rev$
Author:
Artur Hefczyc

Constructor Summary
TLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, boolean clientMode)
          Creates a new TLSWrapper instance.
 
Method Summary
 int bytesConsumed()
           
 void close()
           
 int getAppBuffSize()
           
 int getNetBuffSize()
           
 int getPacketBuffSize()
           
 TLSStatus getStatus()
           
 boolean isClientMode()
           
 ByteBuffer unwrap(ByteBuffer net, ByteBuffer app)
           
 void wrap(ByteBuffer app, ByteBuffer net)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TLSWrapper

public TLSWrapper(SSLContext sslc,
                  TLSEventHandler eventHandler,
                  boolean clientMode)
Creates a new TLSWrapper instance.

Parameters:
sslc -
eventHandler -
clientMode -
Method Detail

isClientMode

public boolean isClientMode()

close

public void close()
           throws SSLException
Throws:
SSLException

getNetBuffSize

public int getNetBuffSize()

getAppBuffSize

public int getAppBuffSize()

getPacketBuffSize

public int getPacketBuffSize()

getStatus

public TLSStatus getStatus()

unwrap

public ByteBuffer unwrap(ByteBuffer net,
                         ByteBuffer app)
                  throws SSLException
Throws:
SSLException

wrap

public void wrap(ByteBuffer app,
                 ByteBuffer net)
          throws SSLException
Throws:
SSLException

bytesConsumed

public int bytesConsumed()


Copyright © 2001-2006 Tigase Developers Team. All rights Reserved.