}
protected static KeyManager[] getKeyManagersWithCertAlias(TLSClientParameters tlsClientParameters,
KeyManager[] keyManagers) throws GeneralSecurityException {
if (tlsClientParameters.getCertAlias() != null) {
KeyManager ret[] = new KeyManager[keyManagers.length];
for (int idx = 0; idx < keyManagers.length; idx++) {
if (keyManagers[idx] instanceof X509KeyManager) {
try {
ret[idx] = new AliasedX509ExtendedKeyManager(tlsClientParameters.getCertAlias(),
(X509KeyManager)keyManagers[idx]);