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: 2996 $
Author:
Artur Hefczyc

Constructor Summary
TLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, boolean clientMode)
          Creates a new TLSWrapper instance.
 
Method Summary
 int bytesConsumed()
          Method description
 void close()
          Method description
 int getAppBuffSize()
          Method description
 tigase.cert.CertCheckResult getCertificateStatus(boolean revocationEnabled)
          Method description
 int getNetBuffSize()
          Method description
 int getPacketBuffSize()
          Method description
 TLSStatus getStatus()
          Method description
 boolean isClientMode()
          Method description
 void setDebugId(String id)
          Method description
 ByteBuffer unwrap(ByteBuffer net, ByteBuffer app)
          Method description
 void wrap(ByteBuffer app, ByteBuffer net)
          Method description
 
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

bytesConsumed

public int bytesConsumed()
Method description

Returns:

close

public void close()
           throws SSLException
Method description

Throws:
SSLException

getAppBuffSize

public int getAppBuffSize()
Method description

Returns:

getCertificateStatus

public tigase.cert.CertCheckResult getCertificateStatus(boolean revocationEnabled)
Method description

Parameters:
revocationEnabled -
Returns:

getNetBuffSize

public int getNetBuffSize()
Method description

Returns:

getPacketBuffSize

public int getPacketBuffSize()
Method description

Returns:

getStatus

public TLSStatus getStatus()
Method description

Returns:

isClientMode

public boolean isClientMode()
Method description

Returns:

setDebugId

public void setDebugId(String id)
Method description

Parameters:
id -

unwrap

public ByteBuffer unwrap(ByteBuffer net,
                         ByteBuffer app)
                  throws SSLException
Method description

Parameters:
net -
app -
Returns:
Throws:
SSLException

wrap

public void wrap(ByteBuffer app,
                 ByteBuffer net)
          throws SSLException
Method description

Parameters:
app -
net -
Throws:
SSLException


Copyright © 2012 Tigase. All Rights Reserved.