@Test public void testECDSAwithRSACert() throws Exception { try (InputStream is = AbstractTestCRLUtils.class.getResourceAsStream("/EE-GovCA2018.crl"); InputStream isCer = AbstractTestCRLUtils.class.getResourceAsStream("/citizen_ca.cer")) { CertificateToken certificateToken = loadCert(isCer); CRLBinary crlBinary = CRLUtils.buildCRLBinary(toByteArray(is)); CRLValidity validity = CRLUtils.buildCRLValidity(crlBinary, certificateToken); assertEquals(SignatureAlgorithm.ECDSA_SHA512, validity.getSignatureAlgorithm()); assertNotNull(validity.getThisUpdate()); assertNotNull(validity.getNextUpdate()); assertNull(validity.getExpiredCertsOnCRL()); assertNull(validity.getIssuerToken()); assertFalse(validity.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);  }