org.eclipse.jetty.server.ssl
Interface SslConnector
- All Superinterfaces:
- Connector, LifeCycle
- All Known Implementing Classes:
- SslSelectChannelConnector, SslSocketConnector
public interface SslConnector
- extends Connector
The interface for SSL connectors and their configuration methods.
Methods inherited from interface org.eclipse.jetty.server.Connector |
close, customize, getConfidentialPort, getConfidentialScheme, getConnection, getConnections, getConnectionsDurationAve, getConnectionsDurationMax, getConnectionsDurationMin, getConnectionsDurationTotal, getConnectionsOpen, getConnectionsOpenMax, getConnectionsOpenMin, getConnectionsRequestsAve, getConnectionsRequestsMax, getConnectionsRequestsMin, getHost, getIntegralPort, getIntegralScheme, getLocalPort, getLowResourceMaxIdleTime, getMaxIdleTime, getName, getPort, getRequestBuffers, getRequestBufferSize, getRequestHeaderSize, getRequests, getResolveNames, getResponseBuffers, getResponseBufferSize, getResponseHeaderSize, getServer, getStatsOn, getStatsOnMs, isConfidential, isIntegral, isLowResources, open, persist, setHost, setLowResourceMaxIdleTime, setMaxIdleTime, setPort, setRequestBufferSize, setRequestHeaderSize, setResponseBufferSize, setResponseHeaderSize, setServer, setStatsOn, statsReset |
DEFAULT_KEYSTORE
static final String DEFAULT_KEYSTORE
- Default value for the keystore location path.
KEYPASSWORD_PROPERTY
static final String KEYPASSWORD_PROPERTY
- String name of key password property.
- See Also:
- Constant Field Values
PASSWORD_PROPERTY
static final String PASSWORD_PROPERTY
- String name of keystore password property.
- See Also:
- Constant Field Values
getExcludeCipherSuites
String[] getExcludeCipherSuites()
- Returns:
- The array of Ciphersuite names to exclude from
SSLEngine.setEnabledCipherSuites(String[])
setExcludeCipherSuites
void setExcludeCipherSuites(String[] cipherSuites)
- Parameters:
cipherSuites
- The array of Ciphersuite names to exclude from
SSLEngine.setEnabledCipherSuites(String[])
setPassword
void setPassword(String password)
- Parameters:
password
- The password for the key store
setTrustPassword
void setTrustPassword(String password)
- Parameters:
password
- The password for the trust store
setKeyPassword
void setKeyPassword(String password)
- Parameters:
password
- The password (if any) for the specific key within
the key store
getProtocol
String getProtocol()
- Returns:
- The SSL protocol (default "TLS") passed to
SSLContext.getInstance(String, String)
setProtocol
void setProtocol(String protocol)
- Parameters:
protocol
- The SSL protocol (default "TLS") passed to SSLContext.getInstance(String, String)
setKeystore
void setKeystore(String keystore)
- Parameters:
keystore
- The file or URL of the SSL Key store.
getKeystore
String getKeystore()
- Returns:
- The file or URL of the SSL Key store.
getKeystoreType
String getKeystoreType()
- Returns:
- The type of the key store (default "JKS")
getNeedClientAuth
boolean getNeedClientAuth()
- Returns:
- True if SSL needs client authentication.
- See Also:
SSLEngine.getNeedClientAuth()
getWantClientAuth
boolean getWantClientAuth()
- Returns:
- True if SSL wants client authentication.
- See Also:
SSLEngine.getWantClientAuth()
setNeedClientAuth
void setNeedClientAuth(boolean needClientAuth)
- Parameters:
needClientAuth
- True if SSL needs client authentication.- See Also:
SSLEngine.getNeedClientAuth()
setWantClientAuth
void setWantClientAuth(boolean wantClientAuth)
- Parameters:
wantClientAuth
- True if SSL wants client authentication.- See Also:
SSLEngine.getWantClientAuth()
setKeystoreType
void setKeystoreType(String keystoreType)
- Parameters:
keystoreType
- The type of the key store (default "JKS")
getProvider
String getProvider()
- Returns:
- The SSL provider name, which if set is passed to
SSLContext.getInstance(String, String)
getSecureRandomAlgorithm
String getSecureRandomAlgorithm()
- Returns:
- The algorithm name, which if set is passed to
SecureRandom.getInstance(String)
to obtain the SecureRandom
instance passed to SSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], SecureRandom)
getSslKeyManagerFactoryAlgorithm
String getSslKeyManagerFactoryAlgorithm()
- Returns:
- The algorithm name (default "SunX509") used by the
KeyManagerFactory
getSslTrustManagerFactoryAlgorithm
String getSslTrustManagerFactoryAlgorithm()
- Returns:
- The algorithm name (default "SunX509") used by the
TrustManagerFactory
getTruststore
String getTruststore()
- Returns:
- The file name or URL of the trust store location
getTruststoreType
String getTruststoreType()
- Returns:
- The type of the trust store (default "JKS")
setProvider
void setProvider(String provider)
- Parameters:
provider
- The SSL provider name, which if set is passed to
SSLContext.getInstance(String, String)
setSecureRandomAlgorithm
void setSecureRandomAlgorithm(String algorithm)
- Parameters:
algorithm
- The algorithm name, which if set is passed to
SecureRandom.getInstance(String)
to obtain the SecureRandom
instance passed to SSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], SecureRandom)
setSslKeyManagerFactoryAlgorithm
void setSslKeyManagerFactoryAlgorithm(String algorithm)
- Parameters:
algorithm
- The algorithm name (default "SunX509") used by
the KeyManagerFactory
setSslTrustManagerFactoryAlgorithm
void setSslTrustManagerFactoryAlgorithm(String algorithm)
- Parameters:
algorithm
- The algorithm name (default "SunX509") used by the TrustManagerFactory
setTruststore
void setTruststore(String truststore)
- Parameters:
truststore
- The file name or URL of the trust store location
setTruststoreType
void setTruststoreType(String truststoreType)
- Parameters:
truststoreType
- The type of the trust store (default "JKS")
setSslContext
void setSslContext(SSLContext sslContext)
- Parameters:
sslContext
- Set a preconfigured SSLContext
getSslContext
SSLContext getSslContext()
- Returns:
- The SSLContext
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.