@Test public void certFromAssertionExample() throws IOException, CertificateException { Tags tags = p.parse(TestAssertions.getExampleRegAssertions()); X509Certificate x509Certificate = X509.parseDer(tags.getTags().get(TagsEnum.TAG_ATTESTATION_CERT.id).value); assertNotNull(x509Certificate); logger.info("Base64 of DER encoding : "+ Base64.encodeBase64URLSafeString(x509Certificate.getEncoded())); logger.info("From spec example: "+x509Certificate.toString()); }
public static X509Certificate parseDer(byte[] derEncodedCert) throws CertificateException { return parseDer(new ByteArrayInputStream(derEncodedCert)); }
X509 { public static X509Certificate parseDer(byte[] derEncodedCert) throws CertificateException { return parseDer(new ByteArrayInputStream(derEncodedCert)); } }
X509 { public static X509Certificate parseDer(byte[] derEncodedCert) throws CertificateException { return parseDer(new ByteArrayInputStream(derEncodedCert)); }  }
X509 { public static X509Certificate parseDer(byte[] derEncodedCert) throws CertificateException { return parseDer(new ByteArrayInputStream(derEncodedCert)); }  static X509Certificate parseDer(byte[] derEncodedCert); static X509Certificate parseDer(InputStream is); static X509Certificate generateV3Cert(KeyPair pair); static X509Certificate generateV1Cert(KeyPair pair); }
X509 { public static X509Certificate parseDer(byte[] derEncodedCert) throws CertificateException { return parseDer(new ByteArrayInputStream(derEncodedCert)); }  static X509Certificate parseDer(byte[] derEncodedCert); static X509Certificate parseDer(InputStream is); static X509Certificate generateV3Cert(KeyPair pair); static X509Certificate generateV1Cert(KeyPair pair);  }