public class HttpsServerHelper extends NettyServerHelper
Parameter name | Value type | Default value | Description |
---|---|---|---|
certAlgorithm | String | SunX509 | SSL certificate algorithm |
keyPassword | String | SSL key password | |
keystorePassword | String | SSL keystore password | |
keystorePath | String | ${user.home}/.keystore | SSL keystore path |
keystoreType | String | JKS | SSL keystore type |
sslProtocol | String | TLS | SSL protocol |
needClientAuthentication | boolean | false | Indicates if we require client certificate authentication |
wantClientAuthentication | boolean | false | Indicates if we would like client certificate authentication |
Constructor and Description |
---|
HttpsServerHelper(Server server)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getCertAlgorithm()
Deprecated.
|
String |
getKeyPassword()
Deprecated.
|
String |
getKeystorePassword()
Deprecated.
|
String |
getKeystorePath()
Deprecated.
|
String |
getKeystoreType()
Deprecated.
|
org.jboss.netty.channel.ChannelPipelineFactory |
getPipelineFatory()
Returns the Netty pipeline factory.
|
SSLContext |
getSslContext()
Gets the SSL context used by this server.
|
String |
getSslProtocol()
Deprecated.
|
boolean |
isNeedClientAuthentication()
Indicates if we require client certificate authentication.
|
boolean |
isWantClientAuthentication()
Indicates if we would like client certificate authentication.
|
void |
setSslContext(SSLContext sslContext)
Sets the SSL context for the server.
|
void |
start()
Start callback.
|
stop
getAdapter, handle, setAdapter
handle, setEphemeralPort, setEphemeralPort
getConnectorService, getContext, getProtocols, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public HttpsServerHelper(Server server)
server
- The helped server.@Deprecated public String getCertAlgorithm()
@Deprecated public String getKeyPassword()
@Deprecated public String getKeystorePassword()
@Deprecated public String getKeystorePath()
@Deprecated public String getKeystoreType()
public org.jboss.netty.channel.ChannelPipelineFactory getPipelineFatory()
NettyServerHelper
getPipelineFatory
in class NettyServerHelper
public SSLContext getSslContext()
@Deprecated public String getSslProtocol()
public boolean isNeedClientAuthentication()
public boolean isWantClientAuthentication()
public void setSslContext(SSLContext sslContext)
sslContext
- the SSL contextpublic void start() throws Exception
RestletHelper
start
in class NettyServerHelper
Exception
Copyright © 2005–2016. All rights reserved.