org.restlet.ext.jetty
Class HttpsServerHelper

java.lang.Object
  extended by org.restlet.engine.Helper
      extended by org.restlet.engine.RestletHelper<T>
          extended by org.restlet.engine.ConnectorHelper<Server>
              extended by org.restlet.engine.ServerHelper
                  extended by org.restlet.engine.http.HttpServerHelper
                      extended by org.restlet.ext.jetty.JettyServerHelper
                          extended by org.restlet.ext.jetty.HttpsServerHelper

public class HttpsServerHelper
extends JettyServerHelper

Jetty HTTPS server connector. Here is the list of additional parameters that are supported. They should be set in the Server's context before it is started:

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 ${keystorePassword} 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)

Author:
Jerome Louvel
See Also:
How to configure SSL for Jetty

Constructor Summary
HttpsServerHelper(Server server)
          Constructor.
 
Method Summary
protected  AbstractConnector createConnector()
          Creates a new internal Jetty connector.
 java.lang.String getCertAlgorithm()
          Deprecated. 
 java.lang.String getKeyPassword()
          Deprecated. 
 java.lang.String getKeystorePassword()
          Deprecated. 
 java.lang.String getKeystorePath()
          Deprecated. 
 java.lang.String getKeystoreType()
          Deprecated. 
 java.lang.String getSecureRandomAlgorithm()
          Deprecated. 
 java.lang.String getSecurityProvider()
          Deprecated. 
 java.lang.String getSslProtocol()
          Deprecated. 
 int getType()
          Returns the type of Jetty connector to use.
 boolean isNeedClientAuthentication()
          Indicates if we require client certificate authentication.
 boolean isWantClientAuthentication()
          Indicates if we would like client certificate authentication.
 
Methods inherited from class org.restlet.ext.jetty.JettyServerHelper
configure, getAcceptorThreads, getAcceptQueueSize, getGracefulShutdown, getIoMaxIdleTimeMs, getLowResourcesMaxIdleTimeMs, getMaxThreads, getMinThreads, getRequestBufferSize, getRequestHeaderSize, getResponseBufferSize, getResponseHeaderSize, getSoLingerTime, getThreadMaxIdleTimeMs, getWrappedServer, setWrappedServer, start, stop
 
Methods inherited from class org.restlet.engine.http.HttpServerHelper
getAdapter, handle, setAdapter
 
Methods inherited from class org.restlet.engine.ServerHelper
handle, setEphemeralPort, setEphemeralPort
 
Methods inherited from class org.restlet.engine.ConnectorHelper
getConnectorService, getContext, getProtocols, update
 
Methods inherited from class org.restlet.engine.RestletHelper
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpsServerHelper

public HttpsServerHelper(Server server)
Constructor.

Parameters:
server - The server to help.
Method Detail

createConnector

protected AbstractConnector createConnector()
Creates a new internal Jetty connector.

Specified by:
createConnector in class JettyServerHelper
Returns:
A new internal Jetty connector.

getCertAlgorithm

@Deprecated
public java.lang.String getCertAlgorithm()
Deprecated. 

Returns the SSL certificate algorithm.

Returns:
The SSL certificate algorithm.

getKeyPassword

@Deprecated
public java.lang.String getKeyPassword()
Deprecated. 

Returns the SSL key password.

Returns:
The SSL key password.

getKeystorePassword

@Deprecated
public java.lang.String getKeystorePassword()
Deprecated. 

Returns the SSL keystore password.

Returns:
The SSL keystore password.

getKeystorePath

@Deprecated
public java.lang.String getKeystorePath()
Deprecated. 

Returns the SSL keystore path.

Returns:
The SSL keystore path.

getKeystoreType

@Deprecated
public java.lang.String getKeystoreType()
Deprecated. 

Returns the SSL keystore type.

Returns:
The SSL keystore type.

getSecureRandomAlgorithm

@Deprecated
public java.lang.String getSecureRandomAlgorithm()
Deprecated. 

Returns the name of the RNG algorithm.

Returns:
The name of the RNG algorithm.

getSecurityProvider

@Deprecated
public java.lang.String getSecurityProvider()
Deprecated. 

Returns the Java security provider name.

Returns:
The Java security provider name.

getSslProtocol

@Deprecated
public java.lang.String getSslProtocol()
Deprecated. 

Returns the SSL keystore type.

Returns:
The SSL keystore type.

getType

public int getType()
Returns the type of Jetty connector to use.

Returns:
The type of Jetty connector to use.

isNeedClientAuthentication

public boolean isNeedClientAuthentication()
Indicates if we require client certificate authentication.

Returns:
True if we require client certificate authentication.

isWantClientAuthentication

public boolean isWantClientAuthentication()
Indicates if we would like client certificate authentication.

Returns:
True if we would like client certificate authentication.


Copyright © 2005-2011 Noelios Technologies.