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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJcaTLSWrapper(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 newTLSWrapperinstance.JcaTLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String remote_hostname, int port, boolean clientMode, boolean wantClientAuth, boolean needClientAuth, String[] enabledCiphers, String[] enabledProtocols) -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()intgetCertificateStatus(boolean revocationEnabled, SSLContextContainerIfc sslContextContainer) intintbyte[]byte[]booleanbooleanvoidvoidsetDebugId(String id) protected voidtoString()unwrap(ByteBuffer net, ByteBuffer app) booleanvoidwrap(ByteBuffer app, ByteBuffer net)
-
Field Details
-
tlsEngine
-
-
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 newTLSWrapperinstance. -
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:
notifyIfHandshakeFinishedin interfaceTLSWrapper
-
bytesConsumed
public int bytesConsumed()- Specified by:
bytesConsumedin interfaceTLSWrapper
-
close
- Specified by:
closein interfaceTLSWrapper- Throws:
SSLException
-
getAppBuffSize
public int getAppBuffSize()- Specified by:
getAppBuffSizein interfaceTLSWrapper
-
getCertificateStatus
public CertCheckResult getCertificateStatus(boolean revocationEnabled, SSLContextContainerIfc sslContextContainer) - Specified by:
getCertificateStatusin interfaceTLSWrapper
-
getHandshakeStatus
- Specified by:
getHandshakeStatusin interfaceTLSWrapper
-
getLocalCertificates
- Specified by:
getLocalCertificatesin interfaceTLSWrapper
-
getNetBuffSize
public int getNetBuffSize()- Specified by:
getNetBuffSizein interfaceTLSWrapper
-
getPacketBuffSize
public int getPacketBuffSize()- Specified by:
getPacketBuffSizein interfaceTLSWrapper
-
getPeerCertificates
- Specified by:
getPeerCertificatesin interfaceTLSWrapper- Throws:
SSLPeerUnverifiedException
-
getStatus
- Specified by:
getStatusin interfaceTLSWrapper
-
getTlsUniqueBindingData
public byte[] getTlsUniqueBindingData()- Specified by:
getTlsUniqueBindingDatain interfaceTLSWrapper
-
getTlsExporterBindingData
public byte[] getTlsExporterBindingData()- Specified by:
getTlsExporterBindingDatain interfaceTLSWrapper
-
isClientMode
public boolean isClientMode()- Specified by:
isClientModein interfaceTLSWrapper
-
isNeedClientAuth
public boolean isNeedClientAuth()- Specified by:
isNeedClientAuthin interfaceTLSWrapper
-
setDebugId
- Specified by:
setDebugIdin interfaceTLSWrapper
-
unwrap
- Specified by:
unwrapin interfaceTLSWrapper- Throws:
SSLException
-
wantClientAuth
public boolean wantClientAuth()- Specified by:
wantClientAuthin interfaceTLSWrapper
-
wrap
- Specified by:
wrapin interfaceTLSWrapper- Throws:
SSLException
-
toString
-