Package org.bpsbits.kt.rest.utils
Object CookieUtil.Companion
-
- All Implemented Interfaces:
public class CookieUtil.CompanionStatic methods and properties.
-
-
Field Summary
Fields Modifier and Type Field Description public final static CookieUtil.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final NewCookieexpired(String name, Boolean httpOnly, Boolean secure)Generates an expired cookie using the provided name and parameters. final NewCookienew(String name, String value, Boolean httpOnly, Boolean secure)Creates an entirely new cookie by utilising the given name and parameters. -
-
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- Iftrue, 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- Iftrue, the cookie is exclusively transmitted over an encrypted request using the HTTPS protocol.
-
-
-
-