@Test public void testHugeCRL() throws Exception { try (InputStream is = AbstractTestCRLUtils.class.getResourceAsStream("/esteid2011.crl"); InputStream isCer = AbstractTestCRLUtils.class.getResourceAsStream("/ESTEID-SK_2011.der.crt")) { CertificateToken certificateToken = loadCert(isCer); CRLBinary crlBinary = CRLUtils.buildCRLBinary(toByteArray(is)); CRLValidity validity = CRLUtils.buildCRLValidity(crlBinary, certificateToken); assertEquals(SignatureAlgorithm.RSA_SHA256, validity.getSignatureAlgorithm()); assertNotNull(validity.getThisUpdate()); assertNotNull(validity.getNextUpdate()); assertNull(validity.getExpiredCertsOnCRL()); assertNotNull(validity.getIssuerToken()); assertTrue(validity.isValid()); BigInteger serialNumber = new BigInteger("1111111111111111111"); assertNull(CRLUtils.getRevocationInfo(validity, serialNumber)); } }
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);  }