public static synchronized KeyStore getCertificateTrustStore ( ) throws IOException , GeneralSecurityException { if ( certTrustStore == null ) { certTrustStore = SecurityUtils . getJavaKeyStore ( ) ; InputStream keyStoreStream = GoogleUtils . class . getResourceAsStream ( "google.jks" ) ; SecurityUtils . loadKeyStore ( certTrustStore , keyStoreStream , "notasecret" ) ; } return certTrustStore ; }
Returns the key store for trusted root certificates to use for Google APIs .