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 | Description | 
|---|---|---|
| protected  | Constructor for subclasses to call. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| String[] | getCipherSuites() | Returns a copy of the array of ciphersuites or  nullif none have been set. | 
| abstract InetSocketAddress | getClientAddress() | Returns the address of the remote client initiating the connection. | 
| abstract HttpsConfigurator | getHttpsConfigurator() | Returns the  HttpsConfiguratorfor thisHttpsParameters. | 
| boolean | getNeedClientAuth() | Returns whether client authentication should be required. | 
| String[] | getProtocols() | Returns a copy of the array of protocols or  nullif none have been set. | 
| boolean | getWantClientAuth() | Returns whether client authentication should be requested. | 
| void | setCipherSuites | Sets the array of ciphersuites. | 
| void | setNeedClientAuth | Sets whether client authentication should be required. | 
| void | setProtocols | Sets the array of protocols. | 
| abstract void | setSSLParameters | Sets the  SSLParametersto use for thisHttpsParameters. | 
| void | setWantClientAuth | Sets whether client authentication should be requested. | 
protected HttpsParameters()
public abstract HttpsConfigurator getHttpsConfigurator()
HttpsConfigurator for this HttpsParameters.HttpsConfigurator for this instance of HttpsParameters
public abstract InetSocketAddress getClientAddress()
public abstract void setSSLParameters(SSLParameters params)
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.params - the SSLParameters to set. If null then the existing parameters (if any) remain unchangedIllegalArgumentException - if any of the parameters are invalid or unsupportedpublic String[] getCipherSuites()
null if none have been set.null if none have been setpublic void setCipherSuites(String[] cipherSuites)
cipherSuites - the array of ciphersuites (or null)public String[] getProtocols()
null if none have been set.null if none have been setpublic 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
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/jdk.httpserver/com/sun/net/httpserver/HttpsParameters.html