|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AggregateLifeCycle
org.eclipse.jetty.server.AbstractConnector
org.eclipse.jetty.server.bio.SocketConnector
org.eclipse.jetty.server.ssl.SslSocketConnector
public class SslSocketConnector
SSL Socket Connector. This specialization of SocketConnector is an abstract listener that can be used as the basis for a specific JSSE listener. The original of this class was heavily based on the work from Court Demas, which in turn is based on the work from Forge Research. Since JSSE, this class has evolved significantly from that early work.
| 嵌套类摘要 | |
|---|---|
class |
SslSocketConnector.SslConnectorEndPoint
|
| 从类 org.eclipse.jetty.server.bio.SocketConnector 继承的嵌套类/接口 |
|---|
SocketConnector.ConnectorEndPoint |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口 |
|---|
AbstractLifeCycle.AbstractLifeCycleListener |
| 从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口 |
|---|
LifeCycle.Listener |
| 字段摘要 |
|---|
| 从类 org.eclipse.jetty.server.bio.SocketConnector 继承的字段 |
|---|
_connections, _localPort, _serverSocket |
| 从类 org.eclipse.jetty.server.AbstractConnector 继承的字段 |
|---|
_buffers, _lowResourceMaxIdleTime, _maxIdleTime, _soLingerTime |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段 |
|---|
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
| 从接口 org.eclipse.jetty.server.ssl.SslConnector 继承的字段 |
|---|
DEFAULT_KEYSTORE, DEFAULT_KEYSTORE_ALGORITHM, DEFAULT_TRUSTSTORE_ALGORITHM, KEYPASSWORD_PROPERTY, PASSWORD_PROPERTY |
| 构造方法摘要 | |
|---|---|
SslSocketConnector()
Constructor. |
|
SslSocketConnector(SslContextFactory sslContextFactory)
|
|
| 方法摘要 | |
|---|---|
void |
accept(int acceptorID)
|
protected void |
configure(Socket socket)
|
void |
customize(EndPoint endpoint,
Request request)
Allow the Listener a chance to customise the request. before the server does its stuff. |
protected void |
doStart()
Start the managed lifecycle beans in the order they were added. |
protected void |
doStop()
Stop the joined lifecycle beans in the reverse order they were added. |
String |
getAlgorithm()
已过时。 |
String[] |
getExcludeCipherSuites()
已过时。 |
int |
getHandshakeTimeout()
|
String[] |
getIncludeCipherSuites()
已过时。 |
String |
getKeystore()
已过时。 |
String |
getKeystoreType()
已过时。 |
boolean |
getNeedClientAuth()
已过时。 |
String |
getProtocol()
已过时。 |
String |
getProvider()
已过时。 |
String |
getSecureRandomAlgorithm()
已过时。 |
SSLContext |
getSslContext()
已过时。 |
SslContextFactory |
getSslContextFactory()
|
String |
getSslKeyManagerFactoryAlgorithm()
已过时。 |
String |
getSslTrustManagerFactoryAlgorithm()
已过时。 |
String |
getTruststore()
已过时。 |
String |
getTruststoreType()
已过时。 |
boolean |
getWantClientAuth()
已过时。 |
boolean |
isAllowRenegotiate()
|
boolean |
isConfidential(Request request)
By default, we're confidential, given we speak SSL. |
boolean |
isIntegral(Request request)
By default, we're integral, given we speak SSL. |
protected ServerSocket |
newServerSocket(String host,
int port,
int backlog)
|
void |
open()
Opens the connector |
void |
setAlgorithm(String algorithm)
已过时。 |
void |
setAllowRenegotiate(boolean allowRenegotiate)
Set if SSL re-negotiation is allowed. |
void |
setExcludeCipherSuites(String[] cipherSuites)
已过时。 |
void |
setHandshakeTimeout(int msec)
Set the time in milliseconds for so_timeout during ssl handshaking |
void |
setIncludeCipherSuites(String[] cipherSuites)
已过时。 |
void |
setKeyPassword(String password)
已过时。 |
void |
setKeystore(String keystore)
已过时。 |
void |
setKeystoreType(String keystoreType)
已过时。 |
void |
setNeedClientAuth(boolean needClientAuth)
已过时。 |
void |
setPassword(String password)
已过时。 |
void |
setProtocol(String protocol)
已过时。 |
void |
setProvider(String provider)
已过时。 |
void |
setSecureRandomAlgorithm(String algorithm)
已过时。 |
void |
setSslContext(SSLContext sslContext)
已过时。 |
void |
setSslKeyManagerFactoryAlgorithm(String algorithm)
已过时。 |
void |
setSslTrustManagerFactoryAlgorithm(String algorithm)
已过时。 |
void |
setTrustPassword(String password)
已过时。 |
void |
setTruststore(String truststore)
已过时。 |
void |
setTruststoreType(String truststoreType)
已过时。 |
void |
setWantClientAuth(boolean wantClientAuth)
已过时。 |
| 从类 org.eclipse.jetty.server.bio.SocketConnector 继承的方法 |
|---|
close, dump, getConnection, getLocalPort, newConnection |
| 从类 org.eclipse.jetty.util.component.AggregateLifeCycle 继承的方法 |
|---|
addBean, addBean, contains, destroy, dump, dump, dump, dump, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanage |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法 |
|---|
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法 |
|---|
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 从接口 org.eclipse.jetty.util.component.Dumpable 继承的方法 |
|---|
dump |
| 构造方法详细信息 |
|---|
public SslSocketConnector()
public SslSocketConnector(SslContextFactory sslContextFactory)
| 方法详细信息 |
|---|
public boolean isAllowRenegotiate()
SslConnector 中的 isAllowRenegotiatepublic void setAllowRenegotiate(boolean allowRenegotiate)
SslConnector 中的 setAllowRenegotiateallowRenegotiate - true if re-negotiation is allowed (default false)
public void accept(int acceptorID)
throws IOException,
InterruptedException
SocketConnector 中的 acceptIOException
InterruptedException
protected void configure(Socket socket)
throws IOException
AbstractConnector 中的 configureIOException
public void customize(EndPoint endpoint,
Request request)
throws IOException
Connector 中的 customizeSocketConnector 中的 customizeendpoint - The Socket the request arrived on.
This should be a SocketEndPoint wrapping a SSLSocket.request - HttpRequest to be customised.
IOException@Deprecated public String[] getExcludeCipherSuites()
SslConnector 中的 getExcludeCipherSuitesSSLEngine.setEnabledCipherSuites(String[])SslConnector.getExcludeCipherSuites()@Deprecated public String[] getIncludeCipherSuites()
SslConnector 中的 getIncludeCipherSuitesSSLEngine.setEnabledCipherSuites(String[])SslConnector.getIncludeCipherSuites()@Deprecated public String getKeystore()
SslConnector 中的 getKeystoreSslConnector.getKeystore()@Deprecated public String getKeystoreType()
SslConnector 中的 getKeystoreTypeSslConnector.getKeystoreType()@Deprecated public boolean getNeedClientAuth()
SslConnector 中的 getNeedClientAuthSslConnector.getNeedClientAuth()@Deprecated public String getProtocol()
SslConnector 中的 getProtocolSSLContext.getInstance(String, String)SslConnector.getProtocol()@Deprecated public String getProvider()
SslConnector 中的 getProviderSSLContext.getInstance(String, String)SslConnector.getProvider()@Deprecated public String getSecureRandomAlgorithm()
SslConnector 中的 getSecureRandomAlgorithmSecureRandom.getInstance(String) to obtain the SecureRandom
instance passed to SSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], SecureRandom)SslConnector.getSecureRandomAlgorithm()@Deprecated public String getSslKeyManagerFactoryAlgorithm()
SslConnector 中的 getSslKeyManagerFactoryAlgorithmKeyManagerFactorySslConnector.getSslKeyManagerFactoryAlgorithm()@Deprecated public String getSslTrustManagerFactoryAlgorithm()
SslConnector 中的 getSslTrustManagerFactoryAlgorithmTrustManagerFactorySslConnector.getSslTrustManagerFactoryAlgorithm()@Deprecated public String getTruststore()
SslConnector 中的 getTruststoreSslConnector.getTruststore()public SslContextFactory getSslContextFactory()
SslConnector 中的 getSslContextFactorySslConnector.getSslContextFactory()@Deprecated public String getTruststoreType()
SslConnector 中的 getTruststoreTypeSslConnector.getTruststoreType()@Deprecated public boolean getWantClientAuth()
SslConnector 中的 getWantClientAuthSslConnector.getWantClientAuth()public boolean isConfidential(Request request)
Connector 中的 isConfidentialAbstractConnector 中的 isConfidentialrequest - A request
public boolean isIntegral(Request request)
Connector 中的 isIntegralAbstractConnector 中的 isIntegralrequest - A request
public void open()
throws IOException
Connector 复制的描述
Connector 中的 openSocketConnector 中的 openIOException
protected void doStart()
throws Exception
SocketConnector 中的 doStartExceptionAbstractLifeCycle.doStart()
protected void doStop()
throws Exception
AggregateLifeCycle 复制的描述
SocketConnector 中的 doStopExceptionSocketConnector.doStop()
protected ServerSocket newServerSocket(String host,
int port,
int backlog)
throws IOException
SocketConnector 中的 newServerSockethost - The host name that this server should listen onport - the port that this server should listen onbacklog - See ServerSocket.bind(java.net.SocketAddress, int)
socket object bound to the supplied address with all other
settings as per the current configuration of this connector.
IOExceptionsetWantClientAuth(boolean),
setNeedClientAuth(boolean)@Deprecated public void setExcludeCipherSuites(String[] cipherSuites)
SslConnector 中的 setExcludeCipherSuitescipherSuites - The array of Ciphersuite names to exclude from
SSLEngine.setEnabledCipherSuites(String[])SslConnector.setExcludeCipherSuites(java.lang.String[])@Deprecated public void setIncludeCipherSuites(String[] cipherSuites)
SslConnector 中的 setIncludeCipherSuitescipherSuites - The array of Ciphersuite names to include in
SSLEngine.setEnabledCipherSuites(String[])SslConnector.setIncludeCipherSuites(java.lang.String[])@Deprecated public void setKeyPassword(String password)
SslConnector 中的 setKeyPasswordpassword - The password (if any) for the specific key within
the key storeSslConnector.setKeyPassword(java.lang.String)@Deprecated public void setKeystore(String keystore)
SslConnector 中的 setKeystorekeystore - The resource path to the keystore, or null for built in keystores.@Deprecated public void setKeystoreType(String keystoreType)
SslConnector 中的 setKeystoreTypekeystoreType - The type of the key store (default "JKS")SslConnector.setKeystoreType(java.lang.String)@Deprecated public void setNeedClientAuth(boolean needClientAuth)
SslConnector 中的 setNeedClientAuthneedClientAuth - true iff we require client certificate authentication.SSLEngine.getNeedClientAuth()@Deprecated public void setPassword(String password)
SslConnector 中的 setPasswordpassword - The password for the key storeSslConnector.setPassword(java.lang.String)@Deprecated public void setTrustPassword(String password)
SslConnector 中的 setTrustPasswordpassword - The password for the trust storeSslConnector.setTrustPassword(java.lang.String)@Deprecated public void setProtocol(String protocol)
SslConnector 中的 setProtocolprotocol - The SSL protocol (default "TLS") passed to SSLContext.getInstance(String, String)SslConnector.setProtocol(java.lang.String)@Deprecated public void setProvider(String provider)
SslConnector 中的 setProviderprovider - The SSL provider name, which if set is passed to
SSLContext.getInstance(String, String)SslConnector.setProvider(java.lang.String)@Deprecated public void setSecureRandomAlgorithm(String algorithm)
SslConnector 中的 setSecureRandomAlgorithmalgorithm - 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)SslConnector.setSecureRandomAlgorithm(java.lang.String)@Deprecated public void setSslKeyManagerFactoryAlgorithm(String algorithm)
SslConnector 中的 setSslKeyManagerFactoryAlgorithmalgorithm - The algorithm name (default "SunX509") used by
the KeyManagerFactorySslConnector.setSslKeyManagerFactoryAlgorithm(java.lang.String)@Deprecated public void setSslTrustManagerFactoryAlgorithm(String algorithm)
SslConnector 中的 setSslTrustManagerFactoryAlgorithmalgorithm - The algorithm name (default "SunX509") used by the TrustManagerFactorySslConnector.setSslTrustManagerFactoryAlgorithm(java.lang.String)@Deprecated public void setTruststore(String truststore)
SslConnector 中的 setTruststoretruststore - The file name or URL of the trust store locationSslConnector.setTruststore(java.lang.String)@Deprecated public void setTruststoreType(String truststoreType)
SslConnector 中的 setTruststoreTypetruststoreType - The type of the trust store (default "JKS")SslConnector.setTruststoreType(java.lang.String)@Deprecated public void setSslContext(SSLContext sslContext)
SslConnector 中的 setSslContextsslContext - Set a preconfigured SSLContextSslConnector.setSslContext(javax.net.ssl.SSLContext)@Deprecated public SSLContext getSslContext()
SslConnector 中的 getSslContextSslConnector.setSslContext(javax.net.ssl.SSLContext)@Deprecated public void setWantClientAuth(boolean wantClientAuth)
SslConnector 中的 setWantClientAuthwantClientAuth - true if we want client certificate authentication.SSLServerSocket.setWantClientAuth(boolean)public void setHandshakeTimeout(int msec)
msec - a non-zero value will be used to set so_timeout during
ssl handshakes. A zero value means the maxIdleTime is used instead.public int getHandshakeTimeout()
@Deprecated public String getAlgorithm()
@Deprecated public void setAlgorithm(String algorithm)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||