equal
deleted
inserted
replaced
79 /* what cipher suites to use by default */ |
79 /* what cipher suites to use by default */ |
80 private CipherSuiteList enabledCipherSuites = null; |
80 private CipherSuiteList enabledCipherSuites = null; |
81 |
81 |
82 /* which protocol to use by default */ |
82 /* which protocol to use by default */ |
83 private ProtocolList enabledProtocols = null; |
83 private ProtocolList enabledProtocols = null; |
84 |
|
85 /* could enabledCipherSuites ever complete handshaking? */ |
|
86 private boolean checkedEnabled = false; |
|
87 |
84 |
88 // the endpoint identification protocol to use by default |
85 // the endpoint identification protocol to use by default |
89 private String identificationProtocol = null; |
86 private String identificationProtocol = null; |
90 |
87 |
91 // The cryptographic algorithm constraints |
88 // The cryptographic algorithm constraints |
193 * means to accept system defaults. |
190 * means to accept system defaults. |
194 */ |
191 */ |
195 @Override |
192 @Override |
196 synchronized public void setEnabledCipherSuites(String[] suites) { |
193 synchronized public void setEnabledCipherSuites(String[] suites) { |
197 enabledCipherSuites = new CipherSuiteList(suites); |
194 enabledCipherSuites = new CipherSuiteList(suites); |
198 checkedEnabled = false; |
|
199 } |
195 } |
200 |
196 |
201 @Override |
197 @Override |
202 public String[] getSupportedProtocols() { |
198 public String[] getSupportedProtocols() { |
203 return sslContext.getSuportedProtocolList().toStringArray(); |
199 return sslContext.getSuportedProtocolList().toStringArray(); |