public class HttpsEndpoint extends HttpEndpoint implements SslEndpoint
Endpoint.EndpointType, Endpoint.Protocol_acceptQueueSize, _host, _maxIdleTime, _numAcceptors, _port, _protocol, _type| Constructor and Description |
|---|
HttpsEndpoint(int port)
Construct an SSL endpoint that listens on all interfaces.
|
HttpsEndpoint(String host,
int port)
Construct an SSL endpoint for a particular host, port, and protocol.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEnabledProtocols()
Gets the list of protocols that are enabled for use by SSL connections.
|
String |
getKeyAlias()
Returns the alias of the key/cert pair to use for this endpoint.
|
String |
getKeyPassword()
Returns the key password.
|
String |
getKeyStorePassword()
Returns the keystore password.
|
String |
getKeyStorePath()
Returns the path to the keystore.
|
String |
getKeyStoreType()
Returns keystore type
|
boolean |
getNeedClientAuth()
Gets whether server requires the client to authenticate
with certificate.
|
String |
getTrustStorePassword()
Returns the trust store password.
|
String |
getTrustStorePath()
Returns the path to the trust store.
|
boolean |
getWantClientAuth()
Gets whether server desires the client to authenticate
with certificate.
|
void |
setEnabledProtocols(String enabledProtocols)
Sets the list of protocols that are enabled for use by SSL connections.
|
void |
setKeyPassword(String keyPassword)
Set the password for the private key.
|
void |
setKeyStorePassword(String keyStorePassword)
Set the password for the keystore.
|
void |
setKeyStorePath(String keyStorePath)
Set the endpoint's keystore.
|
void |
setKeyStoreResource(org.springframework.core.io.Resource keystore)
Set keystore (for spring config).
|
void |
setKeyStoreType(String type)
Sets keystore type
|
void |
setNeedClientAuth(boolean needed)
Sets whether the server will require the client to
authenticate with certificate.
|
void |
setTrustStorePassword(String trustStorePassword)
Set the password for the trust store.
|
void |
setTrustStorePath(String trustStorePath)
Set the endpoint's trust store.
|
void |
setWantClientAuth(boolean wanted)
Sets whether the server will desire the client to
authenticate with certificate.
|
getAcceptQueueSize, getEndpointType, getHost, getMaxIdleTime, getNumAcceptors, getPort, getProtocol, setAcceptQueueSize, setEndpointType, setMaxIdleTime, setNumAcceptors, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAcceptQueueSize, getEndpointType, getHost, getMaxIdleTime, getNumAcceptors, getPort, getProtocol, setAcceptQueueSize, setEndpointType, setMaxIdleTime, setNumAcceptorspublic HttpsEndpoint(String host, int port)
host - The listening interface.port - The listening port.public HttpsEndpoint(int port)
port - The listening port.public void setKeyStoreType(String type)
type - keystore typepublic void setKeyStorePath(String keyStorePath)
keyStorePath - The path to the endpoint's keystore.public void setKeyStoreResource(org.springframework.core.io.Resource keystore)
throws IOException
keystore - resource representing the keystore. Must not be
null. The resource must not be pointing to a file
on the classpath which is in a jar.IOExceptionpublic void setKeyStorePassword(String keyStorePassword)
keyStorePassword - The keystore password.public void setKeyPassword(String keyPassword)
keyPassword - The key password.public void setTrustStorePath(String trustStorePath)
trustStorePath - The path to the endpoint's keystore.public void setTrustStorePassword(String trustStorePassword)
trustStorePassword - The keystore password.public String getKeyStorePath()
SslEndpointgetKeyStorePath in interface SslEndpointpublic String getKeyStorePassword()
SslEndpointgetKeyStorePassword in interface SslEndpointpublic String getKeyPassword()
SslEndpointgetKeyPassword in interface SslEndpointpublic String getKeyAlias()
SslEndpointgetKeyAlias in interface SslEndpointpublic String getTrustStorePath()
SslEndpointgetTrustStorePath in interface SslEndpointpublic String getTrustStorePassword()
SslEndpointgetTrustStorePassword in interface SslEndpointpublic void setNeedClientAuth(boolean needed)
SslEndpointsetNeedClientAuth in interface SslEndpointneeded - true if authentication is neededpublic boolean getNeedClientAuth()
SslEndpointgetNeedClientAuth in interface SslEndpointpublic boolean getWantClientAuth()
SslEndpointgetWantClientAuth in interface SslEndpointpublic void setWantClientAuth(boolean wanted)
SslEndpointsetWantClientAuth in interface SslEndpointwanted - true if authentication is desiredpublic String getKeyStoreType()
SslEndpointgetKeyStoreType in interface SslEndpointpublic void setEnabledProtocols(String enabledProtocols)
The specified protocols must be among SSLv2Hello,
SSLv3, TLSv1, TLSv1.1 and TLSv1.2;
otherwise, applying this configuration over an SSLSocket later
would fail.
Defaults to TLSv1,TLSv1.1,TLSv1.2.
enabledProtocols - comma separated list of protocols enabled to use
by SSL connections; must not be null or empty.public String getEnabledProtocols()
SslEndpointgetEnabledProtocols in interface SslEndpointCopyright © 2022. All rights reserved.