}
public TrustManager[] getTrustManager(String algorithm) throws KeyStoreException,
NoSuchAlgorithmException, KeystoreIsLocked {
if (isKeystoreLocked()) {
throw new KeystoreIsLocked("Keystore '" + name + "' is locked.");
}
if (!loadKeystoreData()) {
return null;
}
TrustManagerFactory trustFactory = TrustManagerFactory.getInstance(algorithm);