Class HttpsParameters
java.lang.Object
com.sun.net.httpserver.HttpsParameters
Represents the set of parameters for each https connection negotiated with
 clients. One of these is created and passed to
 
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.
- Since:
- 1.6
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionString[]Deprecated.abstract InetSocketAddressReturns the address of the remote client initiating the connection.abstract HttpsConfiguratorReturns theHttpsConfiguratorfor thisHttpsParameters.booleanDeprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters.String[]Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters.booleanDeprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters.voidsetCipherSuites(String[] cipherSuites) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters.voidsetNeedClientAuth(boolean needClientAuth) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters.voidsetProtocols(String[] protocols) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters.abstract voidsetSSLParameters(SSLParameters params) Sets theSSLParametersto use for thisHttpsParameters.voidsetWantClientAuth(boolean wantClientAuth) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters.
- 
Constructor Details- 
HttpsParametersprotected HttpsParameters()Constructor for subclasses to call.
 
- 
- 
Method Details- 
getHttpsConfiguratorReturns theHttpsConfiguratorfor thisHttpsParameters.- Returns:
- HttpsConfiguratorfor this instance of- HttpsParameters
 
- 
getClientAddressReturns the address of the remote client initiating the connection.- Returns:
- address of the remote client initiating the connection
 
- 
setSSLParametersSets theSSLParametersto use for thisHttpsParameters. The parameters must be supported by theSSLContextcontained by theHttpsConfiguratorassociated with thisHttpsParameters. If no parameters are set, then the default behavior is to use the default parameters from the associatedSSLContext.- Parameters:
- params- the- SSLParametersto set. If- nullthen the existing parameters (if any) remain unchanged
- Throws:
- IllegalArgumentException- if any of the parameters are invalid or unsupported
 
- 
getCipherSuitesDeprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters.Returns a copy of the array of ciphersuites ornullif none have been set.- Returns:
- a copy of the array of ciphersuites or nullif none have been set
 
- 
setCipherSuitesDeprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters. UseSSLParameters.setCipherSuites(String[])instead.Sets the array of ciphersuites.- Parameters:
- cipherSuites- the array of ciphersuites (or- null)
 
- 
getProtocolsDeprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters.Returns a copy of the array of protocols ornullif none have been set.- Returns:
- a copy of the array of protocols or nullif none have been set
 
- 
setProtocolsDeprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters. UseSSLParameters.setProtocols(String[])instead.Sets the array of protocols.- Parameters:
- protocols- the array of protocols (or- null)
 
- 
getWantClientAuthDeprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters.Returns whether client authentication should be requested.- Returns:
- whether client authentication should be requested
 
- 
setWantClientAuthDeprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters. UseSSLParameters.setWantClientAuth(boolean)instead.Sets whether client authentication should be requested. Calling this method clears theneedClientAuthflag.- Parameters:
- wantClientAuth- whether client authentication should be requested
 
- 
getNeedClientAuthDeprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters.Returns whether client authentication should be required.- Returns:
- whether client authentication should be required
 
- 
setNeedClientAuthDeprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters. UseSSLParameters.setNeedClientAuth(boolean)instead.Sets whether client authentication should be required. Calling this method clears thewantClientAuthflag.- Parameters:
- needClientAuth- whether client authentication should be required
 
 
- 
SSLParameters.