Class CertificateParser


  • public class CertificateParser
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.cert.X509Certificate parseDer​(byte[] derEncodedCert)  
      static java.security.cert.X509Certificate parseDer​(java.io.InputStream is)  
      static java.security.cert.X509Certificate parseDer​(java.lang.String base64DerEncodedCert)  
      static java.security.cert.X509Certificate parsePem​(java.lang.String pemEncodedCert)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CertificateParser

        public CertificateParser()
    • Method Detail

      • parsePem

        public static java.security.cert.X509Certificate parsePem​(java.lang.String pemEncodedCert)
                                                           throws java.security.cert.CertificateException
        Throws:
        java.security.cert.CertificateException
      • parseDer

        public static java.security.cert.X509Certificate parseDer​(java.lang.String base64DerEncodedCert)
                                                           throws java.security.cert.CertificateException
        Throws:
        java.security.cert.CertificateException
      • parseDer

        public static java.security.cert.X509Certificate parseDer​(byte[] derEncodedCert)
                                                           throws java.security.cert.CertificateException
        Throws:
        java.security.cert.CertificateException
      • parseDer

        public static java.security.cert.X509Certificate parseDer​(java.io.InputStream is)
                                                           throws java.security.cert.CertificateException
        Throws:
        java.security.cert.CertificateException