java.lang.Object
com.sun.net.httpserver.HttpsParameters
public abstract class HttpsParameters extends Object
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 Modifier Constructor Description protectedHttpsParameters()
- 
Method SummaryModifier and Type Method Description String[]getCipherSuites()Returns a copy of the array of ciphersuites or null if none have been set.abstract InetSocketAddressgetClientAddress()Returns the address of the remote client initiating the connection.abstract HttpsConfiguratorgetHttpsConfigurator()Returns the HttpsConfigurator for this HttpsParameters.booleangetNeedClientAuth()Returns whether client authentication should be required.String[]getProtocols()Returns a copy of the array of protocols or null if none have been set.booleangetWantClientAuth()Returns whether client authentication should be requested.voidsetCipherSuites(String[] cipherSuites)Sets the array of ciphersuites.voidsetNeedClientAuth(boolean needClientAuth)Sets whether client authentication should be required.voidsetProtocols(String[] protocols)Sets the array of protocols.abstract voidsetSSLParameters(SSLParameters params)Sets the SSLParameters to use for this HttpsParameters.voidsetWantClientAuth(boolean wantClientAuth)Sets whether client authentication should be requested.
- 
Constructor Details- 
HttpsParametersprotected HttpsParameters()
 
- 
- 
Method Details- 
getHttpsConfiguratorReturns the HttpsConfigurator for this HttpsParameters.
- 
getClientAddressReturns the address of the remote client initiating the connection.
- 
setSSLParametersSets the SSLParameters to use for this HttpsParameters. The parameters must be supported by the SSLContext contained by the HttpsConfigurator associated with this HttpsParameters. If no parameters are set, then the default behavior is to use the default parameters from the associated SSLContext.- Parameters:
- params- the SSLParameters to set. If- nullthen the existing parameters (if any) remain unchanged.
- Throws:
- IllegalArgumentException- if any of the parameters are invalid or unsupported.
 
- 
getCipherSuitesReturns a copy of the array of ciphersuites or null if none have been set.- Returns:
- a copy of the array of ciphersuites or null if none have been set.
 
- 
setCipherSuitesSets the array of ciphersuites.- Parameters:
- cipherSuites- the array of ciphersuites (or null)
 
- 
getProtocolsReturns a copy of the array of protocols or null if none have been set.- Returns:
- a copy of the array of protocols or null if none have been set.
 
- 
setProtocolsSets the array of protocols.- Parameters:
- protocols- the array of protocols (or null)
 
- 
getWantClientAuthpublic boolean getWantClientAuth()Returns whether client authentication should be requested.- Returns:
- whether client authentication should be requested.
 
- 
setWantClientAuthpublic void setWantClientAuth(boolean wantClientAuth)Sets whether client authentication should be requested. Calling this method clears theneedClientAuthflag.- Parameters:
- wantClientAuth- whether client authentication should be requested
 
- 
getNeedClientAuthpublic boolean getNeedClientAuth()Returns whether client authentication should be required.- Returns:
- whether client authentication should be required.
 
- 
setNeedClientAuthpublic void setNeedClientAuth(boolean needClientAuth)Sets whether client authentication should be required. Calling this method clears thewantClientAuthflag.- Parameters:
- needClientAuth- whether client authentication should be required
 
 
-