Package org.apache.catalina.net

Examples of org.apache.catalina.net.ServerSocketFactory


     * @return Comma-separated list of SSL cipher suites, or null if all
     * cipher suites supported by the underlying SSL implementation are being
     * enabled
     */
    public String getCiphers() {
        ServerSocketFactory factory = getFactory();
        if (factory instanceof CoyoteServerSocketFactory) {
            return ((CoyoteServerSocketFactory)factory).getCiphers();
        }
        return null;
    }
View Full Code Here


     *
     * @param ciphers Comma-separated list of SSL cipher suites
     */
    public void setCiphers(String ciphers) {
        setProperty("ciphers", ciphers);
        ServerSocketFactory factory = getFactory();
        if (factory instanceof CoyoteServerSocketFactory) {
            ((CoyoteServerSocketFactory)factory).setCiphers(ciphers);
        }
    }
View Full Code Here

     * Gets the SSL protocol variant to be used.
     *
     * @return SSL protocol variant
     */
    public String getSslProtocol() {
        ServerSocketFactory factory = getFactory();
        if (factory instanceof CoyoteServerSocketFactory) {
            return ((CoyoteServerSocketFactory)factory).getProtocol();
        }
        return null;
    }
View Full Code Here

     * Sets the SSL protocol variant to be used.
     *
     * @param sslProtocol SSL protocol variant
     */
    public void setSslProtocol(String sslProtocol) {
        ServerSocketFactory factory = getFactory();
        if (factory instanceof CoyoteServerSocketFactory) {
            ((CoyoteServerSocketFactory)factory).setProtocol(sslProtocol);
        }
    }
View Full Code Here

    }

    // -------------------- Management methods --------------------

    public boolean getClientAuth() {
        ServerSocketFactory factory= this.getFactory();
        if( ! (factory instanceof CoyoteServerSocketFactory) )
            return false;
        CoyoteServerSocketFactory coyoteFactory=(CoyoteServerSocketFactory)factory;
        return coyoteFactory.getClientAuth();
    }
View Full Code Here

        return coyoteFactory.getClientAuth();
    }

    public void setClientAuth(boolean clientAuth) {
        setProperty("clientauth", String.valueOf(clientAuth));
        ServerSocketFactory factory= this.getFactory();
        if( ! (factory instanceof CoyoteServerSocketFactory) )
            return;
        CoyoteServerSocketFactory coyoteFactory=(CoyoteServerSocketFactory)factory;
        coyoteFactory.setClientAuth(clientAuth);
    }
View Full Code Here

        coyoteFactory.setClientAuth(clientAuth);
    }


    public String getKeystoreFile() {
        ServerSocketFactory factory= this.getFactory();
        if( ! (factory instanceof CoyoteServerSocketFactory) )
            return null;
        CoyoteServerSocketFactory coyoteFactory=(CoyoteServerSocketFactory)factory;
        return coyoteFactory.getKeystoreFile();
    }
View Full Code Here

        return coyoteFactory.getKeystoreFile();
    }

    public void setKeystoreFile(String keystoreFile) {
        setProperty("keystore", keystoreFile);
        ServerSocketFactory factory= this.getFactory();
        if( ! (factory instanceof CoyoteServerSocketFactory) )
            return;
        CoyoteServerSocketFactory coyoteFactory=(CoyoteServerSocketFactory)factory;
        coyoteFactory.setKeystoreFile(keystoreFile);
       
View Full Code Here

    /**
     * Return keystorePass
     */
    public String getKeystorePass() {
        ServerSocketFactory factory = getFactory();
        if( factory instanceof CoyoteServerSocketFactory ) {
            return ((CoyoteServerSocketFactory)factory).getKeystorePass();
        }
        return null;
    }
View Full Code Here

    /**
     * Set keystorePass
     */
    public void setKeystorePass(String keystorePass) {
        setProperty("keypass", keystorePass);
        ServerSocketFactory factory = getFactory();
        if( factory instanceof CoyoteServerSocketFactory ) {
            ((CoyoteServerSocketFactory)factory).setKeystorePass(keystorePass);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.catalina.net.ServerSocketFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.