Class JavaSslClientContext
java.lang.Object
one.nio.net.SslContext
one.nio.net.JavaSslClientContext
-
Field Summary
FieldsFields inherited from class SslContext
currentConfig, VERIFY_NONE, VERIFY_ONCE, VERIFY_PEER, VERIFY_REQUIRE_PEER_CERT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetDebug()voidsetAntiReplayEnabled(boolean antiReplayEnabled) voidsetApplicationProtocols(String[] protocols) voidvoidsetCertificate(String certFile) voidsetCiphers(String ciphers) voidsetCompressionAlgorithms(String[] algorithms) voidvoidsetDebug(boolean debug) voidsetKernelTlsEnabled(boolean kernelTlsEnabled) voidsetKeylog(boolean keylog) voidsetMaxEarlyData(int size) voidsetOCSP(byte[] response) voidsetPassphrase(byte[] passphrase) voidsetPrivateKey(String privateKeyFile) voidsetProtocols(String protocols) voidsetRdrand(boolean rdrand) voidsetSessionCache(String mode, int size) voidsetSessionId(byte[] sessionId) voidvoidsetTicketKeys(byte[] keys) voidsetTimeout(long timeout) voidsetVerify(int verifyMode) Methods inherited from class SslContext
close, configure, create, getDefault, refresh, updateCertificates, updateOCSP, updateTicketKeys
-
Field Details
-
parameters
-
sslContext
-
-
Constructor Details
-
JavaSslClientContext
- Throws:
NoSuchAlgorithmExceptionIOException
-
JavaSslClientContext
-
-
Method Details
-
setDebug
public void setDebug(boolean debug) - Specified by:
setDebugin classSslContext
-
getDebug
public boolean getDebug()- Specified by:
getDebugin classSslContext
-
setRdrand
- Specified by:
setRdrandin classSslContext- Throws:
SSLException
-
setProtocols
- Specified by:
setProtocolsin classSslContext- Throws:
SSLException
-
setCiphers
- Specified by:
setCiphersin classSslContext- Throws:
SSLException
-
setCurve
- Specified by:
setCurvein classSslContext- Throws:
SSLException
-
setCertificate
- Specified by:
setCertificatein classSslContext- Throws:
SSLException
-
setPrivateKey
- Specified by:
setPrivateKeyin classSslContext- Throws:
SSLException
-
setPassphrase
- Specified by:
setPassphrasein classSslContext- Throws:
SSLException
-
setCA
- Specified by:
setCAin classSslContext- Throws:
SSLException
-
setVerify
- Specified by:
setVerifyin classSslContext- Throws:
SSLException
-
setTicketKeys
- Specified by:
setTicketKeysin classSslContext- Throws:
SSLException
-
setSessionCache
- Specified by:
setSessionCachein classSslContext- Throws:
SSLException
-
setTimeout
- Specified by:
setTimeoutin classSslContext- Throws:
SSLException
-
setSessionId
- Specified by:
setSessionIdin classSslContext- Throws:
SSLException
-
setApplicationProtocols
- Specified by:
setApplicationProtocolsin classSslContext- Throws:
SSLException
-
setOCSP
- Specified by:
setOCSPin classSslContext- Throws:
SSLException
-
setSNI
- Specified by:
setSNIin classSslContext- Throws:
IOException
-
setMaxEarlyData
- Specified by:
setMaxEarlyDatain classSslContext- Throws:
SSLException
-
setKernelTlsEnabled
- Specified by:
setKernelTlsEnabledin classSslContext- Throws:
SSLException
-
setCompressionAlgorithms
- Specified by:
setCompressionAlgorithmsin classSslContext- Throws:
SSLException
-
setAntiReplayEnabled
- Specified by:
setAntiReplayEnabledin classSslContext- Throws:
SSLException
-
setKeylog
public void setKeylog(boolean keylog) - Specified by:
setKeylogin classSslContext
-
createSocket
- Throws:
IOException
-