Package org.pac4j.core.context
Class Cookie
java.lang.Object
org.pac4j.core.context.Cookie
Cookie class.
- Since:
- 1.8.1
- Author:
- Misagh Moayyed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldcomment
.Getter for the fielddomain
.int
Getter for the fieldmaxAge
.getName()
Getter for the fieldname
.getPath()
Getter for the fieldpath
.Getter for the fieldsameSitePolicy
.getValue()
Getter for the fieldvalue
.boolean
isHttpOnly.boolean
isSecure()
isSecure.void
setComment
(String comment) Setter for the fieldcomment
.void
Setter for the fielddomain
.void
setHttpOnly
(boolean httpOnly) setHttpOnly.void
setMaxAge
(int maxAge) Setter for the fieldmaxAge
.void
Setter for the fieldname
.void
Setter for the fieldpath
.void
setSameSitePolicy
(String sameSitePolicy) Setter for the fieldsameSitePolicy
.void
setSecure
(boolean secure) Setter for the fieldsecure
.void
Setter for the fieldvalue
.
-
Constructor Details
-
Method Details
-
getName
Getter for the field
name
.- Returns:
- a
String
object
-
setName
Setter for the field
name
.- Parameters:
name
- aString
object
-
getValue
Getter for the field
value
.- Returns:
- a
String
object
-
setValue
Setter for the field
value
.- Parameters:
value
- aString
object
-
getDomain
Getter for the field
domain
.- Returns:
- a
String
object
-
setDomain
Setter for the field
domain
.- Parameters:
domain
- aString
object
-
getMaxAge
public int getMaxAge()Getter for the field
maxAge
.- Returns:
- a int
-
setMaxAge
public void setMaxAge(int maxAge) Setter for the field
maxAge
.- Parameters:
maxAge
- a int
-
getPath
Getter for the field
path
.- Returns:
- a
String
object
-
setPath
Setter for the field
path
.- Parameters:
path
- aString
object
-
isSecure
public boolean isSecure()isSecure.
- Returns:
- a boolean
-
setSecure
public void setSecure(boolean secure) Setter for the field
secure
.- Parameters:
secure
- a boolean
-
isHttpOnly
public boolean isHttpOnly()isHttpOnly.
- Returns:
- a boolean
-
setHttpOnly
public void setHttpOnly(boolean httpOnly) setHttpOnly.
- Parameters:
httpOnly
- a boolean
-
getSameSitePolicy
Getter for the field
sameSitePolicy
.- Returns:
- a
String
object
-
setSameSitePolicy
Setter for the field
sameSitePolicy
.- Parameters:
sameSitePolicy
- aString
object
-
getComment
Getter for the field
comment
.- Returns:
- a
String
object
-
setComment
Setter for the field
comment
.- Parameters:
comment
- aString
object
-