private TrustManager [ ] createTrustManagers ( ContextAware context ) throws NoSuchProviderException , NoSuchAlgorithmException , KeyStoreException { if ( getTrustStore ( ) == null ) return null ; KeyStore trustStore = getTrustStore ( ) . createKeyStore ( ) ; context . addInfo ( "trust store of type '" + trustStore . getType ( ) + "' provider '" + trustStore . getProvider ( ) + "': " + getTrustStore ( ) . getLocation ( ) ) ; TrustManagerFactory tmf = getTrustManagerFactory ( ) . createTrustManagerFactory ( ) ; context . addInfo ( "trust manager algorithm '" + tmf . getAlgorithm ( ) + "' provider '" + tmf . getProvider ( ) + "'" ) ; tmf . init ( trustStore ) ; return tmf . getTrustManagers ( ) ; }
Creates trust managers using the receiver s trust store configuration .