@Test public void isValidCRLWrongCertificate() throws Exception { try (InputStream is = AbstractTestCRLUtils.class.getResourceAsStream("/belgium2.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); assertNotNull(validCRL); assertNull(validCRL.getIssuerToken()); assertNotNull(validCRL.getSignatureAlgorithm()); assertNotNull(validCRL.getThisUpdate()); assertNotNull(validCRL.getNextUpdate()); assertFalse(validCRL.isIssuerX509PrincipalMatches()); assertFalse(validCRL.isSignatureIntact()); assertFalse(validCRL.isValid()); assertNotNull(validCRL.getSignatureInvalidityReason()); } }
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);  }