KeyStoreCertSigner implements CertSigner, AutoCloseable { @Override public int getMaxCertExpiryTimeMins() { return this.maxCertExpiryTimeMins; } KeyStoreCertSigner(X509Certificate caCertificate, PrivateKey caPrivateKey, int maxCertExpiryTimeMins); @Override String generateX509Certificate(String csr, String keyUsage, int certExpiryMins); @Override String getCACertificate(); @Override int getMaxCertExpiryTimeMins(); @Override void close();  }
@Test public void testGetMaxCertExpiryTimeMins() { try (KeyStoreCertSigner keyStoreCertSigner = new KeyStoreCertSigner(CA_CERT, CA_KEY, 43200)) { Assert.assertEquals(keyStoreCertSigner.getMaxCertExpiryTimeMins(), 43200); } }