@Test public void testLTGRCA() throws Exception { try (InputStream is = AbstractTestCRLUtils.class.getResourceAsStream("/LTGRCA.crl"); InputStream isCer = AbstractTestCRLUtils.class.getResourceAsStream("/citizen_ca.cer")) { CertificateToken certificateToken = loadCert(isCer); CRLBinary crlBinary = CRLUtils.buildCRLBinary(toByteArray(is)); CRLValidity validCRL = CRLUtils.buildCRLValidity(crlBinary, certificateToken); assertEquals(SignatureAlgorithm.RSA_SHA1, validCRL.getSignatureAlgorithm()); assertNotNull(validCRL.getThisUpdate()); assertNotNull(validCRL.getNextUpdate()); assertNull(validCRL.getExpiredCertsOnCRL()); assertFalse(validCRL.isIssuerX509PrincipalMatches()); assertFalse(validCRL.isSignatureIntact()); assertFalse(validCRL.isValid()); } }
public CRLBinary buildCRLBinary(byte[] binaries) throws IOException { return new CRLBinary(getDERContent(binaries)); }
AbstractCRLUtils { public CRLBinary buildCRLBinary(byte[] binaries) throws IOException { return new CRLBinary(getDERContent(binaries)); } }
AbstractCRLUtils { public CRLBinary buildCRLBinary(byte[] binaries) throws IOException { return new CRLBinary(getDERContent(binaries)); }  }
AbstractCRLUtils { public CRLBinary buildCRLBinary(byte[] binaries) throws IOException { return new CRLBinary(getDERContent(binaries)); }  CRLBinary buildCRLBinary(byte[] binaries); }
AbstractCRLUtils { public CRLBinary buildCRLBinary(byte[] binaries) throws IOException { return new CRLBinary(getDERContent(binaries)); }  CRLBinary buildCRLBinary(byte[] binaries);  }