Package io.jans.as.server.crypto.cert
Class CertificateParser
- java.lang.Object
-
- io.jans.as.server.crypto.cert.CertificateParser
-
public class CertificateParser extends Object
-
-
Constructor Summary
Constructors Constructor Description CertificateParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static X509Certificate
parseDer(byte[] derEncodedCert)
static X509Certificate
parseDer(InputStream is)
static X509Certificate
parseDer(String base64DerEncodedCert)
static X509Certificate
parsePem(String pemEncodedCert)
-
-
-
Method Detail
-
parsePem
public static X509Certificate parsePem(String pemEncodedCert) throws CertificateException
- Throws:
CertificateException
-
parseDer
public static X509Certificate parseDer(String base64DerEncodedCert) throws CertificateException
- Throws:
CertificateException
-
parseDer
public static X509Certificate parseDer(byte[] derEncodedCert) throws CertificateException
- Throws:
CertificateException
-
parseDer
public static X509Certificate parseDer(InputStream is) throws CertificateException
- Throws:
CertificateException
-
-