Package fr.gouv.vitam.security.internal.common.service

# Class X509PKIUtil

java.lang.Object
fr.gouv.vitam.security.internal.common.service.X509PKIUtil

public class X509PKIUtil extends Object
Utility class for X.509 PKI certificate and CRL profile.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `X509PKIUtil()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static X509Certificate`
  `parseX509Certificate(byte[] certificate)`
  generate cerificate using X.509 Certifcate factory
  `static X509CRL`
  `parseX509CRLCertificate(byte[] crlCertificate)`
  `static boolean`
  `validateX509CRL(X509CRL crl)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### X509PKIUtil

    public X509PKIUtil()

- ## Method Details

  - ### parseX509Certificate

    public static X509Certificate parseX509Certificate(byte[] certificate) throws CertificateException
    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

    public static boolean validateX509CRL(X509CRL crl) throws CRLException
    Throws:
      `CRLException`

  - ### parseX509CRLCertificate

    public static X509CRL parseX509CRLCertificate(byte[] crlCertificate) throws CertificateException, CRLException
    Throws:
      `CertificateException`
      `CRLException`