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