File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
cwms-http-client/src/main/java/mil/army/usace/hec/cwms/http/client/auth Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 2828import java .security .Principal ;
2929import java .security .PrivateKey ;
3030import java .security .cert .X509Certificate ;
31+ import java .util .Collections ;
32+ import java .util .Set ;
33+ import java .util .TreeSet ;
3134import java .util .logging .Level ;
3235import java .util .logging .Logger ;
3336import javax .net .ssl .X509KeyManager ;
@@ -111,7 +114,14 @@ void setCertificateAlias(String certificateAlias) {
111114 }
112115 }
113116
114- String [] aliases () {
115- return delegate .getClientAliases ("RSA" , null );
117+ Set <String > aliases () {
118+ Set <String > retval = new TreeSet <>();
119+ for (var keyType : new String []{"RSA" , "EC" , "DSA" }) {
120+ String [] clientAliases = delegate .getClientAliases (keyType , null );
121+ if (clientAliases != null ) {
122+ Collections .addAll (retval , clientAliases );
123+ }
124+ }
125+ return retval ;
116126 }
117127}
You can’t perform that action at this time.
0 commit comments