Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  //  ========================================================================
  //  Copyright (c) 1995-2012 Mort Bay Consulting Pty. Ltd.
  //  ------------------------------------------------------------------------
  //  All rights reserved. This program and the accompanying materials
  //  are made available under the terms of the Eclipse Public License v1.0
  //  and Apache License v2.0 which accompanies this distribution.
  //
  //      The Eclipse Public License is available at
 //      http://www.eclipse.org/legal/epl-v10.html
 //
 //      The Apache License v2.0 is available at
 //      http://www.opensource.org/licenses/apache2.0.php
 //
 //  You may elect to redistribute this code under either of these licenses.
 //  ========================================================================
 //
 
 package org.eclipse.jetty.server.ssl;
 
 import java.io.File;
 
 
 
 
 /* ------------------------------------------------------------ */
The interface for SSL connectors and their configuration methods.
 
 public interface SslConnector extends Connector
 {
     @Deprecated
     public static final String DEFAULT_KEYSTORE_ALGORITHM=(Security.getProperty("ssl.KeyManagerFactory.algorithm")==null?"SunX509":Security.getProperty("ssl.KeyManagerFactory.algorithm"));
     @Deprecated
     public static final String DEFAULT_TRUSTSTORE_ALGORITHM=(Security.getProperty("ssl.TrustManagerFactory.algorithm")==null?"SunX509":Security.getProperty("ssl.TrustManagerFactory.algorithm"));

    
Default value for the keystore location path.

Deprecated:
 
     @Deprecated
     public static final String DEFAULT_KEYSTORE = System.getProperty("user.home") + . + ".keystore";
    
    
String name of key password property.

Deprecated:
 
     @Deprecated
     public static final String KEYPASSWORD_PROPERTY = "org.eclipse.jetty.ssl.keypassword";
    
    
String name of keystore password property.

Deprecated:
 
     @Deprecated
     public static final String PASSWORD_PROPERTY = "org.eclipse.jetty.ssl.password";
     
     
     /* ------------------------------------------------------------ */
    

Returns:
the instance of SslContextFactory associated with the connector
 
         
     /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
The array of Ciphersuite names to exclude from javax.net.ssl.SSLEngine.setEnabledCipherSuites(java.lang.String[])
 
     @Deprecated
     public abstract String[] getExcludeCipherSuites();
 
     /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
cipherSuites The array of Ciphersuite names to exclude from javax.net.ssl.SSLEngine.setEnabledCipherSuites(java.lang.String[])
 
     @Deprecated
     public abstract void setExcludeCipherSuites(String[] cipherSuites);
 
     /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
The array of Ciphersuite names to include in javax.net.ssl.SSLEngine.setEnabledCipherSuites(java.lang.String[])
 
     @Deprecated
     public abstract String[] getIncludeCipherSuites();
 
     /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
cipherSuites The array of Ciphersuite names to include in javax.net.ssl.SSLEngine.setEnabledCipherSuites(java.lang.String[])
 
     @Deprecated
     public abstract void setIncludeCipherSuites(String[] cipherSuites);
 
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
password The password for the key store
    @Deprecated
    public abstract void setPassword(String password);
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
password The password for the trust store
    @Deprecated
    public abstract void setTrustPassword(String password);
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
password The password (if any) for the specific key within the key store
    @Deprecated
    public abstract void setKeyPassword(String password);
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
The SSL protocol (default "TLS") passed to javax.net.ssl.SSLContext.getInstance(java.lang.String,java.lang.String)
    @Deprecated
    public abstract String getProtocol();
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
protocol The SSL protocol (default "TLS") passed to javax.net.ssl.SSLContext.getInstance(java.lang.String,java.lang.String)
    @Deprecated
    public abstract void setProtocol(String protocol);
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
keystore The file or URL of the SSL Key store.
    @Deprecated
    public abstract void setKeystore(String keystore);
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
The file or URL of the SSL Key store.
    @Deprecated
    public abstract String getKeystore();
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
The type of the key store (default "JKS")
    @Deprecated
    public abstract String getKeystoreType();
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
True if SSL needs client authentication.
See also:
javax.net.ssl.SSLEngine.getNeedClientAuth()
    @Deprecated
    public abstract boolean getNeedClientAuth();
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
True if SSL wants client authentication.
See also:
javax.net.ssl.SSLEngine.getWantClientAuth()
    @Deprecated
    public abstract boolean getWantClientAuth();
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
needClientAuth True if SSL needs client authentication.
See also:
javax.net.ssl.SSLEngine.getNeedClientAuth()
    @Deprecated
    public abstract void setNeedClientAuth(boolean needClientAuth);
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
wantClientAuth True if SSL wants client authentication.
See also:
javax.net.ssl.SSLEngine.getWantClientAuth()
    @Deprecated
    public abstract void setWantClientAuth(boolean wantClientAuth);
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
keystoreType The type of the key store (default "JKS")
    @Deprecated
    public abstract void setKeystoreType(String keystoreType);
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
The SSL provider name, which if set is passed to javax.net.ssl.SSLContext.getInstance(java.lang.String,java.lang.String)
    @Deprecated
    public abstract String getProvider();
    /* ------------------------------------------------------------ */
    
    @Deprecated
    public abstract String getSecureRandomAlgorithm();
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
The algorithm name (default "SunX509") used by the javax.net.ssl.KeyManagerFactory
    @Deprecated
    public abstract String getSslKeyManagerFactoryAlgorithm();
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
The algorithm name (default "SunX509") used by the javax.net.ssl.TrustManagerFactory
    @Deprecated
    public abstract String getSslTrustManagerFactoryAlgorithm();
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
The file name or URL of the trust store location
    @Deprecated
    public abstract String getTruststore();
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
The type of the trust store (default "JKS")
    @Deprecated
    public abstract String getTruststoreType();
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
provider The SSL provider name, which if set is passed to javax.net.ssl.SSLContext.getInstance(java.lang.String,java.lang.String)
    @Deprecated
    public abstract void setProvider(String provider);
    /* ------------------------------------------------------------ */
    
    @Deprecated
    public abstract void setSecureRandomAlgorithm(String algorithm);
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
algorithm The algorithm name (default "SunX509") used by the javax.net.ssl.KeyManagerFactory
    @Deprecated
    public abstract void setSslKeyManagerFactoryAlgorithm(String algorithm);
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
algorithm The algorithm name (default "SunX509") used by the javax.net.ssl.TrustManagerFactory
    @Deprecated
    public abstract void setSslTrustManagerFactoryAlgorithm(String algorithm);
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
truststore The file name or URL of the trust store location
    @Deprecated
    public abstract void setTruststore(String truststore);
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
truststoreType The type of the trust store (default "JKS")
    @Deprecated
    public abstract void setTruststoreType(String truststoreType);
    /* ------------------------------------------------------------ */
    

Deprecated:
Parameters:
sslContext Set a preconfigured SSLContext
    @Deprecated
    public abstract void setSslContext(SSLContext sslContext);
    
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
The SSLContext
    @Deprecated
    public abstract SSLContext getSslContext();
    
    /* ------------------------------------------------------------ */
    

Deprecated:
Returns:
True if SSL re-negotiation is allowed (default false)
    @Deprecated
    public boolean isAllowRenegotiate();
    /* ------------------------------------------------------------ */
    
Set if SSL re-negotiation is allowed. CVE-2009-3555 discovered a vulnerability in SSL/TLS with re-negotiation. If your JVM does not have CVE-2009-3555 fixed, then re-negotiation should not be allowed.

Deprecated:
Parameters:
allowRenegotiate true if re-negotiation is allowed (default false)
    @Deprecated
    public void setAllowRenegotiate(boolean allowRenegotiate);
New to GrepCode? Check out our FAQ X