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.
|
Field Summary |
static java.lang.String |
DEFAULT_KEYSTORE
Default value for the keystore location path. |
static java.lang.String |
KEYPASSWORD_PROPERTY
String name of key password property. |
static java.lang.String |
PASSWORD_PROPERTY
String name of keystore password property. |
| 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 java.lang.String DEFAULT_KEYSTORE
- Default value for the keystore location path.
KEYPASSWORD_PROPERTY
static final java.lang.String KEYPASSWORD_PROPERTY
- String name of key password property.
- See Also:
- Constant Field Values
PASSWORD_PROPERTY
static final java.lang.String PASSWORD_PROPERTY
- String name of keystore password property.
- See Also:
- Constant Field Values
getExcludeCipherSuites
java.lang.String[] getExcludeCipherSuites()
- Returns:
- The array of Ciphersuite names to exclude from
SSLEngine.setEnabledCipherSuites(String[])
setExcludeCipherSuites
void setExcludeCipherSuites(java.lang.String[] cipherSuites)
- Parameters:
cipherSuites - The array of Ciphersuite names to exclude from
SSLEngine.setEnabledCipherSuites(String[])
setPassword
void setPassword(java.lang.String password)
- Parameters:
password - The password for the key store
setTrustPassword
void setTrustPassword(java.lang.String password)
- Parameters:
password - The password for the trust store
setKeyPassword
void setKeyPassword(java.lang.String password)
- Parameters:
password - The password (if any) for the specific key within
the key store
getProtocol
java.lang.String getProtocol()
- Returns:
- The SSL protocol (default "TLS") passed to
SSLContext.getInstance(String, String)
setProtocol
void setProtocol(java.lang.String protocol)
- Parameters:
protocol - The SSL protocol (default "TLS") passed to SSLContext.getInstance(String, String)
setKeystore
void setKeystore(java.lang.String keystore)
- Parameters:
keystore - The file or URL of the SSL Key store.
getKeystore
java.lang.String getKeystore()
- Returns:
- The file or URL of the SSL Key store.
getKeystoreType
java.lang.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(java.lang.String keystoreType)
- Parameters:
keystoreType - The type of the key store (default "JKS")
getProvider
java.lang.String getProvider()
- Returns:
- The SSL provider name, which if set is passed to
SSLContext.getInstance(String, String)
getSecureRandomAlgorithm
java.lang.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
java.lang.String getSslKeyManagerFactoryAlgorithm()
- Returns:
- The algorithm name (default "SunX509") used by the
KeyManagerFactory
getSslTrustManagerFactoryAlgorithm
java.lang.String getSslTrustManagerFactoryAlgorithm()
- Returns:
- The algorithm name (default "SunX509") used by the
TrustManagerFactory
getTruststore
java.lang.String getTruststore()
- Returns:
- The file name or URL of the trust store location
getTruststoreType
java.lang.String getTruststoreType()
- Returns:
- The type of the trust store (default "JKS")
setProvider
void setProvider(java.lang.String provider)
- Parameters:
provider - The SSL provider name, which if set is passed to
SSLContext.getInstance(String, String)
setSecureRandomAlgorithm
void setSecureRandomAlgorithm(java.lang.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(java.lang.String algorithm)
- Parameters:
algorithm - The algorithm name (default "SunX509") used by
the KeyManagerFactory
setSslTrustManagerFactoryAlgorithm
void setSslTrustManagerFactoryAlgorithm(java.lang.String algorithm)
- Parameters:
algorithm - The algorithm name (default "SunX509") used by the TrustManagerFactory
setTruststore
void setTruststore(java.lang.String truststore)
- Parameters:
truststore - The file name or URL of the trust store location
setTruststoreType
void setTruststoreType(java.lang.String truststoreType)
- Parameters:
truststoreType - The type of the trust store (default "JKS")
setSslContext
void setSslContext(javax.net.ssl.SSLContext sslContext)
- Parameters:
sslContext - Set a preconfigured SSLContext
getSslContext
javax.net.ssl.SSLContext getSslContext()
- Returns:
- The SSLContext
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.