com.sun.net.httpserver
Class HttpsParameters

java.lang.Object
  extended by com.sun.net.httpserver.HttpsParameters

public abstract class HttpsParameters
extends java.lang.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 Summary
protected HttpsParameters()
           
 
Method Summary
 java.lang.String[] getCipherSuites()
          Returns a copy of the array of ciphersuites or null if none have been set.
abstract  java.net.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.
 java.lang.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(java.lang.String[] cipherSuites)
          Sets the array of ciphersuites.
 void setNeedClientAuth(boolean needClientAuth)
          Sets whether client authentication should be required.
 void setProtocols(java.lang.String[] protocols)
          Sets the array of protocols.
 void setWantClientAuth(boolean wantClientAuth)
          Sets whether client authentication should be requested.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpsParameters

protected HttpsParameters()
Method Detail

getHttpsConfigurator

public abstract HttpsConfigurator getHttpsConfigurator()
Returns the HttpsConfigurator for this HttpsParameters.


getClientAddress

public abstract java.net.InetSocketAddress getClientAddress()
Returns the address of the remote client initiating the connection.


getCipherSuites

public java.lang.String[] getCipherSuites()
Returns 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.

setCipherSuites

public void setCipherSuites(java.lang.String[] cipherSuites)
Sets the array of ciphersuites.

Parameters:
cipherSuites - the array of ciphersuites (or null)

getProtocols

public java.lang.String[] getProtocols()
Returns 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.

setProtocols

public void setProtocols(java.lang.String[] protocols)
Sets the array of protocols.

Parameters:
protocols - the array of protocols (or null)

getWantClientAuth

public boolean getWantClientAuth()
Returns whether client authentication should be requested.

Returns:
whether client authentication should be requested.

setWantClientAuth

public void setWantClientAuth(boolean wantClientAuth)
Sets whether client authentication should be requested. Calling this method clears the needClientAuth flag.

Parameters:
wantClientAuth - whether client authentication should be requested

getNeedClientAuth

public boolean getNeedClientAuth()
Returns whether client authentication should be required.

Returns:
whether client authentication should be required.

setNeedClientAuth

public void setNeedClientAuth(boolean needClientAuth)
Sets whether client authentication should be required. Calling this method clears the wantClientAuth flag.

Parameters:
needClientAuth - whether client authentication should be required


Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.