public class JcaTLSWrapper extends Object implements TLSWrapper
Constructor and Description |
---|
JcaTLSWrapper(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 new
TLSWrapper instance. |
JcaTLSWrapper(SSLContext sslc,
TLSEventHandler eventHandler,
String hostname,
int port,
boolean clientMode,
boolean wantClientAuth,
boolean needClientAuth,
String[] enabledCiphers,
String[] enabledProtocols) |
Modifier and Type | Method and Description |
---|---|
int |
bytesConsumed() |
void |
close() |
int |
getAppBuffSize() |
CertCheckResult |
getCertificateStatus(boolean revocationEnabled,
SSLContextContainerIfc sslContextContainer) |
SSLEngineResult.HandshakeStatus |
getHandshakeStatus() |
Certificate[] |
getLocalCertificates() |
int |
getNetBuffSize() |
int |
getPacketBuffSize() |
Certificate[] |
getPeerCertificates() |
TLSStatus |
getStatus() |
byte[] |
getTlsUniqueBindingData() |
boolean |
isClientMode() |
boolean |
isNeedClientAuth() |
void |
setDebugId(String id) |
ByteBuffer |
unwrap(ByteBuffer net,
ByteBuffer app) |
boolean |
wantClientAuth() |
void |
wrap(ByteBuffer app,
ByteBuffer net) |
public JcaTLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth)
public JcaTLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth, boolean needClientAuth)
TLSWrapper
instance.sslc
- eventHandler
- hostname
- port
- clientMode
- wantClientAuth
- public JcaTLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth, boolean needClientAuth, String[] enabledCiphers, String[] enabledProtocols)
public int bytesConsumed()
bytesConsumed
in interface TLSWrapper
public void close() throws SSLException
close
in interface TLSWrapper
SSLException
public int getAppBuffSize()
getAppBuffSize
in interface TLSWrapper
public CertCheckResult getCertificateStatus(boolean revocationEnabled, SSLContextContainerIfc sslContextContainer)
getCertificateStatus
in interface TLSWrapper
public SSLEngineResult.HandshakeStatus getHandshakeStatus()
getHandshakeStatus
in interface TLSWrapper
public Certificate[] getLocalCertificates()
getLocalCertificates
in interface TLSWrapper
public int getNetBuffSize()
getNetBuffSize
in interface TLSWrapper
public int getPacketBuffSize()
getPacketBuffSize
in interface TLSWrapper
public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
getPeerCertificates
in interface TLSWrapper
SSLPeerUnverifiedException
public TLSStatus getStatus()
getStatus
in interface TLSWrapper
public byte[] getTlsUniqueBindingData()
getTlsUniqueBindingData
in interface TLSWrapper
public boolean isClientMode()
isClientMode
in interface TLSWrapper
public boolean isNeedClientAuth()
isNeedClientAuth
in interface TLSWrapper
public void setDebugId(String id)
setDebugId
in interface TLSWrapper
public ByteBuffer unwrap(ByteBuffer net, ByteBuffer app) throws SSLException
unwrap
in interface TLSWrapper
SSLException
public boolean wantClientAuth()
wantClientAuth
in interface TLSWrapper
public void wrap(ByteBuffer app, ByteBuffer net) throws SSLException
wrap
in interface TLSWrapper
SSLException
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.