public JSSESocketFactory () {
+ // NOOP
}
@Override
protected String[] getEnabledCiphers(String requestedCiphers,
String[] supportedCiphers) {
- String[] enabledCiphers = null;
+ String[] result = null;
if (requestedCiphers != null) {
Vector<String> vec = null;
}
if (vec != null) {
- enabledCiphers = new String[vec.size()];
- vec.copyInto(enabledCiphers);
+ result = new String[vec.size()];
+ vec.copyInto(result);
}
} else {
- enabledCiphers = sslProxy.getDefaultCipherSuites();
+ result = sslProxy.getDefaultCipherSuites();
}
- return enabledCiphers;
+ return result;
}
/*
kms = kmf.getKeyManagers();
if (keyAlias != null) {
+ String alias = keyAlias;
if (JSSESocketFactory.defaultKeystoreType.equals(keystoreType)) {
- keyAlias = keyAlias.toLowerCase();
+ alias = alias.toLowerCase();
}
for(int i=0; i<kms.length; i++) {
- kms[i] = new JSSEKeyManager((X509KeyManager)kms[i], keyAlias);
+ kms[i] = new JSSEKeyManager((X509KeyManager)kms[i], alias);
}
}
try{
is.close();
} catch(Exception ex) {
+ // Ignore
}
}
}