26
26
package com .sun .net .httpserver ;
27
27
28
28
import java .net .InetSocketAddress ;
29
-
30
- //BEGIN_TIGER_EXCLUDE
31
29
import javax .net .ssl .SSLParameters ;
32
- //END_TIGER_EXCLUDE
33
30
34
31
/**
35
- * Represents the set of parameters for each https
36
- * connection negotiated with clients. One of these
37
- * is created and passed to
38
- * {@link HttpsConfigurator#configure(HttpsParameters)}
39
- * for every incoming https connection,
40
- * in order to determine the parameters to use.
41
- * <p>
42
- * The underlying SSL parameters may be established either
43
- * via the set/get methods of this class, or else via
44
- * a {@link javax.net.ssl.SSLParameters} object. SSLParameters
45
- * is the preferred method, because in the future,
46
- * additional configuration capabilities may be added to that class, and
47
- * it is easier to determine the set of supported parameters and their
48
- * default values with SSLParameters. Also, if an SSLParameters object is
49
- * provided via
50
- * {@link #setSSLParameters(SSLParameters)} then those parameter settings
51
- * are used, and any settings made in this object are ignored.
32
+ * Represents the set of parameters for each https connection negotiated with
33
+ * clients. One of these is created and passed to
34
+ * {@link HttpsConfigurator#configure(HttpsParameters)} for every incoming https
35
+ * connection, in order to determine the parameters to use.
36
+ *
37
+ * <p> The underlying SSL parameters may be established either via the set/get
38
+ * methods of this class, or else via a {@link javax.net.ssl.SSLParameters}
39
+ * object. {@code SSLParameters} is the preferred method, because in the future,
40
+ * additional configuration capabilities may be added to that class, and it is
41
+ * easier to determine the set of supported parameters and their default values
42
+ * with SSLParameters. Also, if an {@code SSLParameters} object is provided via
43
+ * {@link #setSSLParameters(SSLParameters)} then those parameter settings are
44
+ * used, and any settings made in this object are ignored.
45
+ *
52
46
* @since 1.6
53
47
*/
54
48
public abstract class HttpsParameters {
@@ -64,41 +58,39 @@ public abstract class HttpsParameters {
64
58
protected HttpsParameters () {}
65
59
66
60
/**
67
- * Returns the HttpsConfigurator for this HttpsParameters.
61
+ * Returns the {@link HttpsConfigurator} for this {@code HttpsParameters} .
68
62
*
69
- * @return HttpsConfigurator for this instance of HttpsParameters
63
+ * @return {@code HttpsConfigurator} for this instance of {@code HttpsParameters}
70
64
*/
71
65
public abstract HttpsConfigurator getHttpsConfigurator ();
72
66
73
67
/**
74
- * Returns the address of the remote client initiating the
75
- * connection.
68
+ * Returns the address of the remote client initiating the connection.
76
69
*
77
- * @return Address of the remote client initiating the connection
70
+ * @return address of the remote client initiating the connection
78
71
*/
79
72
public abstract InetSocketAddress getClientAddress ();
80
73
81
- //BEGIN_TIGER_EXCLUDE
82
74
/**
83
- * Sets the SSLParameters to use for this HttpsParameters.
84
- * The parameters must be supported by the SSLContext contained
85
- * by the HttpsConfigurator associated with this HttpsParameters.
75
+ * Sets the {@link SSLParameters} to use for this {@code HttpsParameters} .
76
+ * The parameters must be supported by the {@link SSLContext} contained
77
+ * by the {@link HttpsConfigurator} associated with this {@code HttpsParameters} .
86
78
* If no parameters are set, then the default behavior is to use
87
- * the default parameters from the associated SSLContext.
88
- * @param params the SSLParameters to set. If <code>null</code>
89
- * then the existing parameters (if any) remain unchanged.
90
- * @throws IllegalArgumentException if any of the parameters are
91
- * invalid or unsupported.
79
+ * the default parameters from the associated {@link SSLContext}.
80
+ *
81
+ * @param params the {@code SSLParameters} to set. If {@code null} then the
82
+ * existing parameters (if any) remain unchanged
83
+ * @throws IllegalArgumentException if any of the parameters are invalid or
84
+ * unsupported
92
85
*/
93
- public abstract void setSSLParameters (SSLParameters params );
94
- //END_TIGER_EXCLUDE
86
+ public abstract void setSSLParameters (SSLParameters params );
95
87
96
88
/**
97
- * Returns a copy of the array of ciphersuites or null if none
89
+ * Returns a copy of the array of ciphersuites or {@code null} if none
98
90
* have been set.
99
91
*
100
- * @return a copy of the array of ciphersuites or null if none
101
- * have been set.
92
+ * @return a copy of the array of ciphersuites or {@code null} if none have
93
+ * been set
102
94
*/
103
95
public String [] getCipherSuites () {
104
96
return cipherSuites != null ? cipherSuites .clone () : null ;
@@ -107,18 +99,18 @@ public String[] getCipherSuites() {
107
99
/**
108
100
* Sets the array of ciphersuites.
109
101
*
110
- * @param cipherSuites the array of ciphersuites (or null)
102
+ * @param cipherSuites the array of ciphersuites (or {@code null} )
111
103
*/
112
104
public void setCipherSuites (String [] cipherSuites ) {
113
105
this .cipherSuites = cipherSuites != null ? cipherSuites .clone () : null ;
114
106
}
115
107
116
108
/**
117
- * Returns a copy of the array of protocols or null if none
118
- * have been set.
109
+ * Returns a copy of the array of protocols or {@code null} if none have been
110
+ * set.
119
111
*
120
- * @return a copy of the array of protocols or null if none
121
- * have been set.
112
+ * @return a copy of the array of protocols or {@code null} if none have been
113
+ * set
122
114
*/
123
115
public String [] getProtocols () {
124
116
return protocols != null ? protocols .clone () : null ;
@@ -127,7 +119,7 @@ public String[] getProtocols() {
127
119
/**
128
120
* Sets the array of protocols.
129
121
*
130
- * @param protocols the array of protocols (or null)
122
+ * @param protocols the array of protocols (or {@code null} )
131
123
*/
132
124
public void setProtocols (String [] protocols ) {
133
125
this .protocols = protocols != null ? protocols .clone () : null ;
@@ -136,15 +128,15 @@ public void setProtocols(String[] protocols) {
136
128
/**
137
129
* Returns whether client authentication should be requested.
138
130
*
139
- * @return whether client authentication should be requested.
131
+ * @return whether client authentication should be requested
140
132
*/
141
133
public boolean getWantClientAuth () {
142
134
return wantClientAuth ;
143
135
}
144
136
145
137
/**
146
- * Sets whether client authentication should be requested. Calling
147
- * this method clears the < code> needClientAuth</code> flag.
138
+ * Sets whether client authentication should be requested. Calling this
139
+ * method clears the {@ code needClientAuth} flag.
148
140
*
149
141
* @param wantClientAuth whether client authentication should be requested
150
142
*/
@@ -155,15 +147,15 @@ public void setWantClientAuth(boolean wantClientAuth) {
155
147
/**
156
148
* Returns whether client authentication should be required.
157
149
*
158
- * @return whether client authentication should be required.
150
+ * @return whether client authentication should be required
159
151
*/
160
152
public boolean getNeedClientAuth () {
161
153
return needClientAuth ;
162
154
}
163
155
164
156
/**
165
- * Sets whether client authentication should be required. Calling
166
- * this method clears the < code> wantClientAuth</code> flag.
157
+ * Sets whether client authentication should be required. Calling this method
158
+ * clears the {@ code wantClientAuth} flag.
167
159
*
168
160
* @param needClientAuth whether client authentication should be required
169
161
*/
0 commit comments