Package tigase.io
Class JcaTLSWrapper
java.lang.Object
tigase.io.JcaTLSWrapper
- All Implemented Interfaces:
TLSWrapper
Describe class TLSWrapper here.
Created: Sat Mar 5 09:13:29 2005
Created: Sat Mar 5 09:13:29 2005
- Author:
- Artur Hefczyc
-
Constructor Summary
ConstructorDescriptionJcaTLSWrapper
(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth) JcaTLSWrapper
(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth, boolean needClientAuth) Creates a newTLSWrapper
instance.JcaTLSWrapper
(SSLContext sslc, TLSEventHandler eventHandler, String remote_hostname, int port, boolean clientMode, boolean wantClientAuth, boolean needClientAuth, String[] enabledCiphers, String[] enabledProtocols) -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
int
getCertificateStatus
(boolean revocationEnabled, SSLContextContainerIfc sslContextContainer) int
int
byte[]
boolean
boolean
void
void
setDebugId
(String id) protected void
toString()
unwrap
(ByteBuffer net, ByteBuffer app) boolean
void
wrap
(ByteBuffer app, ByteBuffer net)
-
Constructor Details
-
JcaTLSWrapper
public JcaTLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth) -
JcaTLSWrapper
public JcaTLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth, boolean needClientAuth) Creates a newTLSWrapper
instance. -
JcaTLSWrapper
public JcaTLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String remote_hostname, int port, boolean clientMode, boolean wantClientAuth, boolean needClientAuth, String[] enabledCiphers, String[] enabledProtocols)
-
-
Method Details
-
tlsEngineHandshakeCompleted
protected void tlsEngineHandshakeCompleted() -
notifyIfHandshakeFinished
public void notifyIfHandshakeFinished()- Specified by:
notifyIfHandshakeFinished
in interfaceTLSWrapper
-
bytesConsumed
public int bytesConsumed()- Specified by:
bytesConsumed
in interfaceTLSWrapper
-
close
- Specified by:
close
in interfaceTLSWrapper
- Throws:
SSLException
-
getAppBuffSize
public int getAppBuffSize()- Specified by:
getAppBuffSize
in interfaceTLSWrapper
-
getCertificateStatus
public CertCheckResult getCertificateStatus(boolean revocationEnabled, SSLContextContainerIfc sslContextContainer) - Specified by:
getCertificateStatus
in interfaceTLSWrapper
-
getHandshakeStatus
- Specified by:
getHandshakeStatus
in interfaceTLSWrapper
-
getLocalCertificates
- Specified by:
getLocalCertificates
in interfaceTLSWrapper
-
getNetBuffSize
public int getNetBuffSize()- Specified by:
getNetBuffSize
in interfaceTLSWrapper
-
getPacketBuffSize
public int getPacketBuffSize()- Specified by:
getPacketBuffSize
in interfaceTLSWrapper
-
getPeerCertificates
- Specified by:
getPeerCertificates
in interfaceTLSWrapper
- Throws:
SSLPeerUnverifiedException
-
getStatus
- Specified by:
getStatus
in interfaceTLSWrapper
-
getTlsUniqueBindingData
public byte[] getTlsUniqueBindingData()- Specified by:
getTlsUniqueBindingData
in interfaceTLSWrapper
-
isClientMode
public boolean isClientMode()- Specified by:
isClientMode
in interfaceTLSWrapper
-
isNeedClientAuth
public boolean isNeedClientAuth()- Specified by:
isNeedClientAuth
in interfaceTLSWrapper
-
setDebugId
- Specified by:
setDebugId
in interfaceTLSWrapper
-
unwrap
- Specified by:
unwrap
in interfaceTLSWrapper
- Throws:
SSLException
-
wantClientAuth
public boolean wantClientAuth()- Specified by:
wantClientAuth
in interfaceTLSWrapper
-
wrap
- Specified by:
wrap
in interfaceTLSWrapper
- Throws:
SSLException
-
toString
-