Package fr.gouv.vitam.common.auth.web.filter

# Class CertUtils

java.lang.Object
fr.gouv.vitam.common.auth.web.filter.CertUtils

public class CertUtils extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `JAVAX_SERVLET_REQUEST_X_509_CERTIFICATE`
  `static final String`
  `REQUEST_PERSONAL_CERTIFICATE_ATTRIBUTE`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CertUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static X509Certificate[]`
  `extractCert(jakarta.servlet.ServletRequest request, boolean useHeader)`
  Extract certificate from request or from header

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

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

- ## Field Details

  - ### REQUEST_PERSONAL_CERTIFICATE_ATTRIBUTE

    public static final String REQUEST_PERSONAL_CERTIFICATE_ATTRIBUTE
    See Also:
      - Constant Field Values

  - ### JAVAX_SERVLET_REQUEST_X_509_CERTIFICATE

    public static final String JAVAX_SERVLET_REQUEST_X_509_CERTIFICATE
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### CertUtils

    public CertUtils()

- ## Method Details

  - ### extractCert

    public static X509Certificate[] extractCert(jakarta.servlet.ServletRequest request, boolean useHeader)
    Extract certificate from request or from header
    Parameters:
      `request` -
      `useHeader` -
    Returns:
      the extracted certificate