Package com.emc.documentum.rest.security.csrf

# Class CSRFUtil

java.lang.Object
com.emc.documentum.rest.security.csrf.CSRFUtil

public final class CSRFUtil extends Object
A utility to handle CSRF token

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `DOCUMENTUM_CSRF_HEADER_NAME`
  `static final String`
  `DOCUMENTUM_CSRF_QUERY_NAME`
  `static final String`
  `DOCUMENTUM_CSRF_TOKEN`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `setCSRFResponse(ClientToken ct, jakarta.servlet.http.HttpServletResponse response)`
  `static String`
  `tokenMessageDigest(String token)`
  `static void`
  `validateCSRFRequestToken(ClientToken ct, jakarta.servlet.http.HttpServletRequest request)`

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

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

- ## Field Details

  - ### DOCUMENTUM_CSRF_HEADER_NAME

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

  - ### DOCUMENTUM_CSRF_QUERY_NAME

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

  - ### DOCUMENTUM_CSRF_TOKEN

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

- ## Method Details

  - ### tokenMessageDigest

    public static String tokenMessageDigest(String token)

  - ### validateCSRFRequestToken

    public static void validateCSRFRequestToken(ClientToken ct, jakarta.servlet.http.HttpServletRequest request)

  - ### setCSRFResponse

    public static void setCSRFResponse(ClientToken ct, jakarta.servlet.http.HttpServletResponse response)