Package org.gluu.oxauth.crypto.cert
Class CertificateParser
- java.lang.Object
-
- org.gluu.oxauth.crypto.cert.CertificateParser
-
public class CertificateParser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CertificateParser()
-
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)
-
-
-
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
-
-