public class HttpsServerHelper extends SimpleServerHelper
Parameter name | Value type | Default value | Description |
---|---|---|---|
sslContextFactory | String | null | Let you specify a SslContextFactory instance for a more complete
and flexible SSL context setting. If this parameter is set, it takes
Precedence over the other SSL parameters below. |
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 precedence 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. |
enabledCipherSuites | String | null | Whitespace-separated list of enabled cipher suites and/or can be specified multiple times. |
disabledCipherSuites | String | null | Whitespace-separated list of disabled cipher suites and/or can be specified multiple times. It affects the cipher suites manually enabled or the default ones. |
needClientAuthentication | boolean | false | Indicates if we require client certificate authentication. |
sslProtocol | String | TLS | SSL protocol. |
wantClientAuthentication | boolean | false | Indicates if we would like client certificate authentication (only for the BIO connector type). |
Constructor and Description |
---|
HttpsServerHelper(Server server)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
javax.net.ssl.SSLContext |
getSslContext()
Gets the SSL context used by this server.
|
java.lang.String |
getSslProtocol()
Deprecated.
|
boolean |
isNeedClientAuthentication()
Indicates if we require client certificate authentication.
|
boolean |
isWantClientAuthentication()
Indicates if we would like client certificate authentication.
|
void |
setSslContext(javax.net.ssl.SSLContext sslContext)
Sets the SSL context for the server.
|
void |
start()
Starts the Restlet.
|
getAddress, getConnection, getContainerServer, getDefaultThreads, isConfidential, setAddress, setConfidential, setConnection, setContainerServer, stop
getAdapter, handle, setAdapter
handle, setEphemeralPort, setEphemeralPort
getConnectorService, getContext, getProtocols, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public HttpsServerHelper(Server server)
server
- The server to help.@Deprecated public java.lang.String getCertAlgorithm()
@Deprecated public java.lang.String getKeyPassword()
@Deprecated public java.lang.String getKeystorePassword()
@Deprecated public java.lang.String getKeystorePath()
@Deprecated public java.lang.String getKeystoreType()
@Deprecated public java.lang.String getSslProtocol()
public boolean isNeedClientAuthentication()
public boolean isWantClientAuthentication()
public javax.net.ssl.SSLContext getSslContext()
public void setSslContext(javax.net.ssl.SSLContext sslContext)
sslContext
- the SSL contextpublic void start() throws java.lang.Exception
start
in class SimpleServerHelper
java.lang.Exception
Copyright © 2005-2012. All Rights Reserved.