Class X509PKIUtil
- java.lang.Object
-
- fr.gouv.vitam.security.internal.common.service.X509PKIUtil
-
public class X509PKIUtil extends java.lang.Object
Utility class for X.509 PKI certificate and CRL profile.
-
-
Constructor Summary
Constructors Constructor Description X509PKIUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.security.cert.X509Certificate
parseX509Certificate(byte[] certificate)
generate cerificate using X.509 Certifcate factorystatic java.security.cert.X509CRL
parseX509CRLCertificate(byte[] crlCertificate)
static boolean
validateX509CRL(java.security.cert.X509CRL crl)
-
-
-
Method Detail
-
parseX509Certificate
public static java.security.cert.X509Certificate parseX509Certificate(byte[] certificate) throws java.security.cert.CertificateException
generate cerificate using X.509 Certifcate factory- Parameters:
certificate
- array of byte representing the certificate file- Returns:
- Throws:
java.security.cert.CertificateException
- thrown if certificate parse fail
-
validateX509CRL
public static boolean validateX509CRL(java.security.cert.X509CRL crl) throws java.security.cert.CRLException
- Throws:
java.security.cert.CRLException
-
parseX509CRLCertificate
public static java.security.cert.X509CRL parseX509CRLCertificate(byte[] crlCertificate) throws java.security.cert.CertificateException, java.security.cert.CRLException
- Throws:
java.security.cert.CertificateException
java.security.cert.CRLException
-
-