/** * Generates KeyManager instances suitable for connections that are created based on a particular configuration. * * @return TrustManagers applicable to a connection that is established using the provided configuration. */ public synchronized TrustManager[] getTrustManagers() throws KeyStoreException, NoSuchAlgorithmException { return new TrustManager[] { new OpenfireX509TrustManager( configuration.getTrustStore().getStore(), configuration.isAcceptSelfSignedCertificates(), configuration.isVerifyCertificateValidity() ) }; }
/** * Generates KeyManager instances suitable for connections that are created based on a particular configuration. * * @return TrustManagers applicable to a connection that is established using the provided configuration. */ public synchronized TrustManager[] getTrustManagers() throws KeyStoreException, NoSuchAlgorithmException { return new TrustManager[] { new OpenfireX509TrustManager( configuration.getTrustStore().getStore(), configuration.isAcceptSelfSignedCertificates(), configuration.isVerifyCertificateValidity() ) }; }