|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.util.Helper<T>
com.noelios.restlet.ConnectorHelper<Server>
com.noelios.restlet.ServerHelper
com.noelios.restlet.http.HttpServerHelper
com.noelios.restlet.ext.jetty.JettyServerHelper
com.noelios.restlet.ext.jetty.HttpsServerHelper
public class HttpsServerHelper
Jetty HTTPS server connector. Here is the list of additional parameters that are supported:
Parameter name | Value type | Default value | Description |
---|---|---|---|
sslContextFactory | String | null | Let you specify a SslContextFactory class name as a parameter, or
an instance as an attribute for a more complete and flexible SSL context
setting. If set, it takes precedance over the other SSL parameters below. |
keystorePath | String | ${user.home}/.keystore | SSL keystore path. |
keystorePassword | String | SSL keystore password. | |
keystoreType | String | JKS | SSL keystore type |
keyPassword | String | SSL key password. | |
certAlgorithm | String | SunX509 | SSL certificate algorithm. |
disabledCipherSuites | String | null | Whitespace-separated list of disabled cipher suites and/or can be specified multiple times. |
needClientAuthentication | boolean | false | Indicates if we require client certificate authentication. |
secureRandomAlgorithm | String | null (see java.security.SecureRandom) | Name of the RNG algorithm. (see java.security.SecureRandom class). |
securityProvider | String | null (see javax.net.ssl.SSLContext) | Java security provider name (see java.security.Provider class). |
sslProtocol | String | TLS | SSL protocol. |
type | int | 2 | The type of Jetty connector to use. 1 : Selecting NIO connector (Jetty's SslSelectChannelConnector class). 2 : Blocking BIO connector (Jetty's SslSocketConnector class). |
wantClientAuthentication | boolean | false | Indicates if we would like client certificate authentication (only for the BIO connector type). |
Constructor Summary | |
---|---|
HttpsServerHelper(Server server)
Constructor. |
Method Summary | |
---|---|
protected org.mortbay.jetty.AbstractConnector |
createConnector()
Creates a new internal Jetty connector. |
java.lang.String |
getCertAlgorithm()
Returns the SSL certificate algorithm. |
java.lang.String |
getKeyPassword()
Returns the SSL key password. |
java.lang.String |
getKeystorePassword()
Returns the SSL keystore password. |
java.lang.String |
getKeystorePath()
Returns the SSL keystore path. |
java.lang.String |
getKeystoreType()
Returns the SSL keystore type. |
java.lang.String |
getSecureRandomAlgorithm()
Returns the name of the RNG algorithm. |
java.lang.String |
getSecurityProvider()
Returns the Java security provider name. |
java.lang.String |
getSslProtocol()
Returns the SSL keystore type. |
int |
getType()
Returns the type of Jetty connector to use. |
boolean |
isNeedClientAuthentication()
Indicates if we require client certificate authentication. |
boolean |
isUseNio()
Deprecated. Will be removed in the future. |
boolean |
isWantClientAuthentication()
Indicates if we would like client certificate authentication. |
Methods inherited from class com.noelios.restlet.ext.jetty.JettyServerHelper |
---|
configure, getAcceptorThreads, getAcceptQueueSize, getHeaderBufferSize, getIoMaxIdleTimeMs, getLowResourceMaxIdleTimeMs, getLowThreads, getMaxThreads, getMinThreads, getRequestBufferSize, getResponseBufferSize, getSoLingerTime, getThreadMaxIdleTimeMs, getWrappedServer, setWrappedServer, start, stop |
Methods inherited from class com.noelios.restlet.http.HttpServerHelper |
---|
getConverter, handle, setConverter |
Methods inherited from class com.noelios.restlet.ServerHelper |
---|
handle, setEphemeralPort, setEphemeralPort |
Methods inherited from class com.noelios.restlet.ConnectorHelper |
---|
getProtocols, update |
Methods inherited from class org.restlet.util.Helper |
---|
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, setHelped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpsServerHelper(Server server)
server
- The server to help.Method Detail |
---|
protected org.mortbay.jetty.AbstractConnector createConnector()
createConnector
in class JettyServerHelper
public java.lang.String getCertAlgorithm()
public java.lang.String getKeyPassword()
public java.lang.String getKeystorePassword()
public java.lang.String getKeystorePath()
public java.lang.String getKeystoreType()
public java.lang.String getSecureRandomAlgorithm()
public java.lang.String getSecurityProvider()
public java.lang.String getSslProtocol()
public int getType()
public boolean isNeedClientAuthentication()
@Deprecated public boolean isUseNio()
public boolean isWantClientAuthentication()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |