Object CookieUtil.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final NewCookie expired(String name, Boolean httpOnly, Boolean secure) Generates an expired cookie using the provided name and parameters.
      final NewCookie new(String name, String value, Boolean httpOnly, Boolean secure) Creates an entirely new cookie by utilising the given name and parameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • expired

         final NewCookie expired(String name, Boolean httpOnly, Boolean secure)

        Generates an expired cookie using the provided name and parameters. A cookie's expiration date is a signal to the browser that it should remove the cookie.

        Parameters:
        name - The cookie's name.
        httpOnly - Determines if JavaScript is prohibited from accessing the value of a cookie.
        secure - If true, the cookie is exclusively transmitted over an encrypted request using the HTTPS protocol.
      • new

         final NewCookie new(String name, String value, Boolean httpOnly, Boolean secure)

        Creates an entirely new cookie by utilising the given name and parameters.

        Parameters:
        name - The cookie's name.
        value - The value of the cookie.
        httpOnly - Determines if JavaScript is prohibited from accessing the value of a cookie.
        secure - If true, the cookie is exclusively transmitted over an encrypted request using the HTTPS protocol.