@Test public void testRealNot() throws Exception { try (InputStream is = AbstractTestCRLUtils.class.getResourceAsStream("/realts2019.crl"); InputStream isCer = AbstractTestCRLUtils.class.getResourceAsStream("/realts2019.crt")) { CertificateToken certificateToken = loadCert(isCer); CRLBinary crlBinary = CRLUtils.buildCRLBinary(toByteArray(is)); CRLValidity wrongIssuerCRL = CRLUtils.buildCRLValidity(crlBinary, certificateToken); assertNotNull(wrongIssuerCRL); assertNull(wrongIssuerCRL.getIssuerToken()); assertNotNull(wrongIssuerCRL.getThisUpdate()); assertNotNull(wrongIssuerCRL.getNextUpdate()); assertTrue(wrongIssuerCRL.isIssuerX509PrincipalMatches()); assertNotNull(wrongIssuerCRL.getSignatureInvalidityReason()); assertFalse(wrongIssuerCRL.isValid()); assertEquals(SignatureAlgorithm.RSA_SHA256, wrongIssuerCRL.getSignatureAlgorithm()); } }
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);  }