@Test public void checksStagingGeotrustCertificatesPins() throws Exception { CertificatePinnerFactory certificatePinnerFactory = new CertificatePinnerFactory(); Map<String, List<String>> stagingCertificatesPins = certificatePinnerFactory .provideCertificatesPinsFor(Environment.STAGING); assertTrue(stagingCertificatesPins.containsKey("api-events-staging.tilestream.net")); List<String> stagingPins = stagingCertificatesPins.get("api-events-staging.tilestream.net"); assertTrue(stagingPins.contains("3euxrJOrEZI15R4104UsiAkDqe007EPyZ6eTL/XxdAY=")); assertTrue(stagingPins.contains("5kJvNEMw0KjrCAu7eXY5HZdvyCS13BbA0VJG1RSP91w=")); assertTrue(stagingPins.contains("r/mIkG3eEpVdm+u/ko/cwxzOMo1bk4TyHIlByibiA5E=")); }
Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); } }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }  }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }   }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }    }