@Exported public abstract class HttpsParameters extends Object
HttpsConfigurator.configure(HttpsParameters)
for every incoming https connection,
in order to determine the parameters to use.
The underlying SSL parameters may be established either
via the set/get methods of this class, or else via
a SSLParameters
object. SSLParameters
is the preferred method, because in the future,
additional configuration capabilities may be added to that class, and
it is easier to determine the set of supported parameters and their
default values with SSLParameters. Also, if an SSLParameters object is
provided via
setSSLParameters(SSLParameters)
then those parameter settings
are used, and any settings made in this object are ignored.
Modifier | Constructor and Description |
---|---|
protected |
HttpsParameters() |
Modifier and Type | Method and Description |
---|---|
String[] |
getCipherSuites()
Returns a copy of the array of ciphersuites or null if none
have been set.
|
abstract InetSocketAddress |
getClientAddress()
Returns the address of the remote client initiating the
connection.
|
abstract HttpsConfigurator |
getHttpsConfigurator()
Returns the HttpsConfigurator for this HttpsParameters.
|
boolean |
getNeedClientAuth()
Returns whether client authentication should be required.
|
String[] |
getProtocols()
Returns a copy of the array of protocols or null if none
have been set.
|
boolean |
getWantClientAuth()
Returns whether client authentication should be requested.
|
void |
setCipherSuites(String[] cipherSuites)
Sets the array of ciphersuites.
|
void |
setNeedClientAuth(boolean needClientAuth)
Sets whether client authentication should be required.
|
void |
setProtocols(String[] protocols)
Sets the array of protocols.
|
abstract void |
setSSLParameters(SSLParameters params)
Sets the SSLParameters to use for this HttpsParameters.
|
void |
setWantClientAuth(boolean wantClientAuth)
Sets whether client authentication should be requested.
|
public abstract HttpsConfigurator getHttpsConfigurator()
public abstract InetSocketAddress getClientAddress()
public abstract void setSSLParameters(SSLParameters params)
params
- the SSLParameters to set. If null
then the existing parameters (if any) remain unchanged.IllegalArgumentException
- if any of the parameters are
invalid or unsupported.public String[] getCipherSuites()
public void setCipherSuites(String[] cipherSuites)
cipherSuites
- the array of ciphersuites (or null)public String[] getProtocols()
public void setProtocols(String[] protocols)
protocols
- the array of protocols (or null)public boolean getWantClientAuth()
public void setWantClientAuth(boolean wantClientAuth)
needClientAuth
flag.wantClientAuth
- whether client authentication should be requestedpublic boolean getNeedClientAuth()
public void setNeedClientAuth(boolean needClientAuth)
wantClientAuth
flag.needClientAuth
- whether client authentication should be required
Copyright © 2005, 2016, Oracle and/or its affiliates. All rights reserved.