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
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.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a copy of the array of ciphersuites or null if none
have been set.
| |||||||||||
Returns the address of the remote client initiating the
connection.
| |||||||||||
Returns the HttpsConfigurator for this HttpsParameters.
| |||||||||||
Returns whether client authentication should be required.
| |||||||||||
Returns a copy of the array of protocols or null if none
have been set.
| |||||||||||
Returns whether client authentication should be requested.
| |||||||||||
Sets the array of ciphersuites.
| |||||||||||
Sets whether client authentication should be required.
| |||||||||||
Sets the array of protocols.
| |||||||||||
Sets the SSLParameters to use for this HttpsParameters.
| |||||||||||
Sets whether client authentication should be requested.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns a copy of the array of ciphersuites or null if none have been set.
Returns the address of the remote client initiating the connection.
Returns the HttpsConfigurator for this HttpsParameters.
Returns whether client authentication should be required.
Returns a copy of the array of protocols or null if none have been set.
Returns whether client authentication should be requested.
Sets the array of ciphersuites.
cipherSuites | the array of ciphersuites (or null) |
---|
Sets whether client authentication should be required. Calling
this method clears the wantClientAuth
flag.
needClientAuth | whether client authentication should be required |
---|
Sets the array of protocols.
protocols | the array of protocols (or null) |
---|
Sets 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.
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. |
---|
Sets whether client authentication should be requested. Calling
this method clears the needClientAuth
flag.
wantClientAuth | whether client authentication should be requested |
---|