tigase.io
Class TLSWrapper

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

public class TLSWrapper
extends java.lang.Object

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

Version:
$Rev: 1172 $
Author:
Artur Hefczyc

Constructor Summary
TLSWrapper(javax.net.ssl.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()
           
 java.nio.ByteBuffer unwrap(java.nio.ByteBuffer net, java.nio.ByteBuffer app)
           
 void wrap(java.nio.ByteBuffer app, java.nio.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(javax.net.ssl.SSLContext sslc,
                  TLSEventHandler eventHandler,
                  boolean clientMode)
Creates a new TLSWrapper instance.

Method Detail

isClientMode

public boolean isClientMode()

close

public void close()
           throws javax.net.ssl.SSLException
Throws:
javax.net.ssl.SSLException

getNetBuffSize

public int getNetBuffSize()

getAppBuffSize

public int getAppBuffSize()

getPacketBuffSize

public int getPacketBuffSize()

getStatus

public TLSStatus getStatus()

unwrap

public java.nio.ByteBuffer unwrap(java.nio.ByteBuffer net,
                                  java.nio.ByteBuffer app)
                           throws javax.net.ssl.SSLException
Throws:
javax.net.ssl.SSLException

wrap

public void wrap(java.nio.ByteBuffer app,
                 java.nio.ByteBuffer net)
          throws javax.net.ssl.SSLException
Throws:
javax.net.ssl.SSLException

bytesConsumed

public int bytesConsumed()


Copyright © 2009 Tigase. All Rights Reserved.