org.keycloak.services.util

## Class CookieHelper

- java.lang.Object
- - org.keycloak.services.util.CookieHelper

-     public class CookieHelper
      extends Object

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CookieHelper()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `addCookie(String name, String value, String path, String domain, String comment, int maxAge, boolean secure, boolean httpOnly)` Set a response cookie.

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

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

- - ### Constructor Detail

    - #### CookieHelper

          public CookieHelper()

  - ### Method Detail

    - #### addCookie

          public static void addCookie(String name,
                       String value,
                       String path,
                       String domain,
                       String comment,
                       int maxAge,
                       boolean secure,
                       boolean httpOnly)

      Set a response cookie. This solely exists because JAX-RS 1.1 does not support setting HttpOnly cookies
      Parameters:
        `name` -
        `value` -
        `path` -
        `domain` -
        `comment` -
        `maxAge` -
        `secure` -
        `httpOnly` -

Copyright © 2015. All Rights Reserved.