com.noelios.restlet.ext.jetty
Class HttpsServerHelper

java.lang.Object
  extended by org.restlet.util.Helper
      extended by com.noelios.restlet.ConnectorHelper
          extended by com.noelios.restlet.ServerHelper
              extended by com.noelios.restlet.http.HttpServerHelper
                  extended by com.noelios.restlet.ext.jetty.JettyServerHelper
                      extended by com.noelios.restlet.ext.jetty.HttpsServerHelper

public class HttpsServerHelper
extends JettyServerHelper

Jetty HTTPS server connector. Here is the list of additional parameters that are supported:

Parameter name Value type Default value Description
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.
sslProtocol String TLS SSL protocol.
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).
needClientAuthentication boolean false Indicates if we require client certificate authentication.
wantClientAuthentication boolean false Indicates if we would like client certificate authentication (only for the BIO connector type).
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).

Author:
Jerome Louvel (contact@noelios.com)
See Also:
How * to configure SSL for Jetty< /a>

Constructor Summary
HttpsServerHelper(Server server)
          Constructor.
 
Method Summary
protected  AbstractConnector createConnector()
          Creates a new internal Jetty connector.
 String getCertAlgorithm()
          Returns the SSL certificate algorithm.
 String getKeyPassword()
          Returns the SSL key password.
 String getKeystorePassword()
          Returns the SSL keystore password.
 String getKeystorePath()
          Returns the SSL keystore path.
 String getKeystoreType()
          Returns the SSL keystore type.
 String getSecureRandomAlgorithm()
          Returns the name of the RNG algorithm.
 String getSecurityProvider()
          Returns the Java security provider name.
 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. 
 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
getContext, getLogger, getParameters, getServer, handle, setServer
 
Methods inherited from class com.noelios.restlet.ConnectorHelper
createContext, getProtocols
 
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.

getKeystorePath

public String getKeystorePath()
Returns the SSL keystore path.

Returns:
The SSL keystore path.

getKeystorePassword

public String getKeystorePassword()
Returns the SSL keystore password.

Returns:
The SSL keystore password.

getKeystoreType

public String getKeystoreType()
Returns the SSL keystore type.

Returns:
The SSL keystore type.

getKeyPassword

public String getKeyPassword()
Returns the SSL key password.

Returns:
The SSL key password.

getCertAlgorithm

public String getCertAlgorithm()
Returns the SSL certificate algorithm.

Returns:
The SSL certificate algorithm.

getSslProtocol

public String getSslProtocol()
Returns the SSL keystore type.

Returns:
The SSL keystore type.

getSecureRandomAlgorithm

public String getSecureRandomAlgorithm()
Returns the name of the RNG algorithm.

Returns:
The name of the RNG algorithm.

getSecurityProvider

public String getSecurityProvider()
Returns the Java security provider name.

Returns:
The Java security provider name.

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.

isUseNio

@Deprecated
public boolean isUseNio()
Deprecated. 

Indicates if we would use the NIO-based connector instead of the BIO one.

Returns:
True if we would use the NIO-based connector instead of the BIO one.

getType

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

Returns:
The type of Jetty connector to use.


Copyright © 2005-2007 Noelios Technologies.