TrustManager[] getTrustManager(KeyStore trustStore) {
        try {
            TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(
                    TrustManagerFactory.getDefaultAlgorithm());
            trustManagerFactory.init(trustStore);
            return trustManagerFactory.getTrustManagers();
        } catch (NoSuchAlgorithmException e) {
            throw SeedException.wrap(e, CryptoErrorCode.ALGORITHM_CANNOT_BE_FOUND);
        } catch (KeyStoreException e) {
            throw SeedException.wrap(e, CryptoErrorCode.UNEXPECTED_EXCEPTION);
        }
    }
TrustManager [ ] getTrustManager ( KeyStore trustStore ) { try { TrustManagerFactory trustManagerFactory = TrustManagerFactory . getInstance ( TrustManagerFactory . getDefaultAlgorithm ( ) ) ; trustManagerFactory . init ( trustStore ) ; return trustManagerFactory . getTrustManagers ( ) ; } catch ( NoSuchAlgorithmException e ) { throw SeedException . wrap ( e , CryptoErrorCode . ALGORITHM_CANNOT_BE_FOUND ) ; } catch ( KeyStoreException e ) { throw SeedException . wrap ( e , CryptoErrorCode . UNEXPECTED_EXCEPTION ) ; } }
Gets the {@link javax.net.ssl.TrustManager}s from the ssl TrustStore.

@return an array of KeyManagers