Class HttpsServer

    • Constructor Detail

      • HttpsServer

        public HttpsServer()
      • HttpsServer

        public HttpsServer​(java.lang.Integer port)
    • Method Detail

      • create

        public static void create​(java.lang.Integer port,
                                  Context... contexts)
      • getKeystorePassword

        public final java.lang.String getKeystorePassword()
        Return the key store password.
        Returns:
        Key store password.
      • setKeystorePassword

        public final void setKeystorePassword​(java.lang.String keystorePassword)
        Set the key store password.
        Parameters:
        keystorePassword - Key store password.
      • getKeyPassword

        public final java.lang.String getKeyPassword()
        Return the key password.
        Returns:
        Key password.
      • setKeyPassword

        public final void setKeyPassword​(java.lang.String keyPassword)
        Set the kwy password.
        Parameters:
        keyPassword - Key password.
      • getKeystoreFilePath

        public final java.nio.file.Path getKeystoreFilePath()
        Return the path where the key store file is.
        Returns:
        Key store file path.
      • setKeystoreFilePath

        public final void setKeystoreFilePath​(java.nio.file.Path keystoreFilePath)
        Set the path where the key store file is.
        Parameters:
        keystoreFilePath - Key store file path.
      • getTrustedCertsFilePath

        public final java.nio.file.Path getTrustedCertsFilePath()
        Return the path where trusted certs file is.
        Returns:
        Trusted certs file path.
      • setTrustedCertsFilePath

        public final void setTrustedCertsFilePath​(java.nio.file.Path trustedCertsFilePath)
        Set the path where trusted certs file is.
        Parameters:
        trustedCertsFilePath - Trusted certs file path.
      • getKeyType

        public final java.lang.String getKeyType()
        Return the key type.
        Returns:
        Key type.
      • setKeyType

        public final void setKeyType​(java.lang.String keyType)
        Set the key type.
        Parameters:
        keyType - Key type.
      • getSslProtocol

        public final java.lang.String getSslProtocol()
        Return the ssl protocol.
        Returns:
        Ssl protocol.
      • setSslProtocol

        public final void setSslProtocol​(java.lang.String sslProtocol)
        Set the ssl protocol.
        Parameters:
        sslProtocol - Ssl protocol.
      • getProvider

        public final java.security.Provider getProvider()
        Return the java security provider.
        Returns:
        Java security provider implementation.
      • setProvider

        public final void setProvider​(java.security.Provider provider)
        Set the java security provider.
        Parameters:
        provider - Java security provider implementation.
      • createKeyManagers

        protected javax.net.ssl.KeyManager[] createKeyManagers()
                                                        throws java.lang.Exception
        Creates the key managers required to initiate the SSLContext.
        Returns:
        KeyManager array that will be used to initiate the SSLContext.
        Throws:
        java.lang.Exception - Key managers creation exception
      • createTrustManagers

        protected javax.net.ssl.TrustManager[] createTrustManagers()
                                                            throws java.lang.Exception
        Creates the trust managers required to initiate the SSLContext, using a JKS keystore as an input.
        Returns:
        TrustManager array, that will be used to initiate the SSLContext.
        Throws:
        java.lang.Exception - Trust manager creation exception