Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/mcl/net/Parameter.java @ 876:e2e7f0d72c95
Add Parameter#isTlsOnly method
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Tue, 27 Feb 2024 11:36:23 +0100 (14 months ago) |
parents | a227deba0e26 |
children | dc33533e6468 |
comparison
equal
deleted
inserted
replaced
875:06f532009fda | 876:e2e7f0d72c95 |
---|---|
153 return offsetSeconds; | 153 return offsetSeconds; |
154 default: | 154 default: |
155 return defaultValue; | 155 return defaultValue; |
156 } | 156 } |
157 } | 157 } |
158 | |
159 /** | |
160 * Determine if this Parameter is onlyu relevant when TlS is enabled. | |
161 * | |
162 * Such parameters need not be shown to the user unless the URL starts with <code>monetdbs://</code>. | |
163 * | |
164 * @return true if this Parameter is only relevant when TLS is enabled | |
165 */ | |
166 public boolean isTlsOnly() { | |
167 switch (this) { | |
168 case CERT: | |
169 case CERTHASH: | |
170 case CLIENTCERT: | |
171 case CLIENTKEY: | |
172 return true; | |
173 default: | |
174 return false; | |
175 } | |
176 } | |
158 } | 177 } |