Package one.nio.net

Class JavaSslClientContext


  • public class JavaSslClientContext
    extends SslContext
    • Field Detail

      • parameters

        private final javax.net.ssl.SSLParameters parameters
      • sslContext

        private final javax.net.ssl.SSLContext sslContext
    • Constructor Detail

      • JavaSslClientContext

        public JavaSslClientContext()
                             throws java.security.NoSuchAlgorithmException,
                                    java.io.IOException
        Throws:
        java.security.NoSuchAlgorithmException
        java.io.IOException
      • JavaSslClientContext

        public JavaSslClientContext​(javax.net.ssl.SSLContext sslContext)
    • Method Detail

      • setDebug

        public void setDebug​(boolean debug)
        Specified by:
        setDebug in class SslContext
      • setRdrand

        public void setRdrand​(boolean rdrand)
                       throws javax.net.ssl.SSLException
        Specified by:
        setRdrand in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setProtocols

        public void setProtocols​(java.lang.String protocols)
                          throws javax.net.ssl.SSLException
        Specified by:
        setProtocols in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setCiphers

        public void setCiphers​(java.lang.String ciphers)
                        throws javax.net.ssl.SSLException
        Specified by:
        setCiphers in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setCurve

        public void setCurve​(java.lang.String curve)
                      throws javax.net.ssl.SSLException
        Specified by:
        setCurve in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setCertificate

        public void setCertificate​(java.lang.String certFile)
                            throws javax.net.ssl.SSLException
        Specified by:
        setCertificate in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setPrivateKey

        public void setPrivateKey​(java.lang.String privateKeyFile)
                           throws javax.net.ssl.SSLException
        Specified by:
        setPrivateKey in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setPassphrase

        public void setPassphrase​(byte[] passphrase)
                           throws javax.net.ssl.SSLException
        Specified by:
        setPassphrase in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setCA

        public void setCA​(java.lang.String caFile)
                   throws javax.net.ssl.SSLException
        Specified by:
        setCA in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setVerify

        public void setVerify​(int verifyMode)
                       throws javax.net.ssl.SSLException
        Specified by:
        setVerify in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setTicketKeys

        public void setTicketKeys​(byte[] keys)
                           throws javax.net.ssl.SSLException
        Specified by:
        setTicketKeys in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setSessionCache

        public void setSessionCache​(java.lang.String mode,
                                    int size)
                             throws javax.net.ssl.SSLException
        Specified by:
        setSessionCache in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setTimeout

        public void setTimeout​(long timeout)
                        throws javax.net.ssl.SSLException
        Specified by:
        setTimeout in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setSessionId

        public void setSessionId​(byte[] sessionId)
                          throws javax.net.ssl.SSLException
        Specified by:
        setSessionId in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setApplicationProtocols

        public void setApplicationProtocols​(java.lang.String[] protocols)
                                     throws javax.net.ssl.SSLException
        Specified by:
        setApplicationProtocols in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setOCSP

        public void setOCSP​(byte[] response)
                     throws javax.net.ssl.SSLException
        Specified by:
        setOCSP in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setSNI

        public void setSNI​(SslConfig[] sni)
                    throws java.io.IOException
        Specified by:
        setSNI in class SslContext
        Throws:
        java.io.IOException
      • setMaxEarlyData

        public void setMaxEarlyData​(int size)
                             throws javax.net.ssl.SSLException
        Specified by:
        setMaxEarlyData in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setKernelTlsEnabled

        public void setKernelTlsEnabled​(boolean kernelTlsEnabled)
                                 throws javax.net.ssl.SSLException
        Specified by:
        setKernelTlsEnabled in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setCompressionAlgorithms

        public void setCompressionAlgorithms​(java.lang.String[] algorithms)
                                      throws javax.net.ssl.SSLException
        Specified by:
        setCompressionAlgorithms in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setAntiReplayEnabled

        public void setAntiReplayEnabled​(boolean antiReplayEnabled)
                                  throws javax.net.ssl.SSLException
        Specified by:
        setAntiReplayEnabled in class SslContext
        Throws:
        javax.net.ssl.SSLException
      • setKeylog

        public void setKeylog​(boolean keylog)
        Specified by:
        setKeylog in class SslContext
      • createSocket

        public javax.net.ssl.SSLSocket createSocket()
                                             throws java.io.IOException
        Throws:
        java.io.IOException