public abstract class AbstractAccessTokenCookieConfigurationProperties extends java.lang.Object implements TokenCookieConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
cookieDomain |
protected java.lang.Boolean |
cookieHttpOnly |
protected java.time.Duration |
cookieMaxAge |
protected io.micronaut.http.cookie.SameSite |
cookieSameSite |
protected java.lang.Boolean |
cookieSecure |
static io.micronaut.http.cookie.SameSite |
DEFAULT_COOKIESAMESITE
The default same-site setting for the JWT cookie.
|
static boolean |
DEFAULT_HTTPONLY
The default http only value.
|
| Constructor and Description |
|---|
AbstractAccessTokenCookieConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
getCookieDomain() |
java.util.Optional<java.time.temporal.TemporalAmount> |
getCookieMaxAge() |
java.util.Optional<io.micronaut.http.cookie.SameSite> |
getCookieSameSite() |
java.util.Optional<java.lang.Boolean> |
isCookieHttpOnly() |
java.util.Optional<java.lang.Boolean> |
isCookieSecure() |
void |
setCookieDomain(java.lang.String cookieDomain)
Sets the domain name of this Cookie.
|
void |
setCookieHttpOnly(java.lang.Boolean cookieHttpOnly)
Whether the Cookie can only be accessed via HTTP.
|
void |
setCookieMaxAge(java.time.Duration cookieMaxAge)
Sets the maximum age of the cookie.
|
void |
setCookieSameSite(io.micronaut.http.cookie.SameSite cookieSameSite)
Sets the same-site setting of the cookie.
|
void |
setCookieSecure(java.lang.Boolean cookieSecure)
Sets whether the cookie is secured.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final boolean DEFAULT_HTTPONLY
public static final io.micronaut.http.cookie.SameSite DEFAULT_COOKIESAMESITE
protected java.lang.String cookieDomain
protected java.lang.Boolean cookieHttpOnly
protected java.lang.Boolean cookieSecure
protected java.time.Duration cookieMaxAge
protected io.micronaut.http.cookie.SameSite cookieSameSite
public AbstractAccessTokenCookieConfigurationProperties()
public java.util.Optional<java.lang.String> getCookieDomain()
getCookieDomain in interface io.micronaut.http.cookie.CookieConfigurationpublic java.util.Optional<java.lang.Boolean> isCookieHttpOnly()
isCookieHttpOnly in interface io.micronaut.http.cookie.CookieConfigurationpublic java.util.Optional<java.lang.Boolean> isCookieSecure()
isCookieSecure in interface io.micronaut.http.cookie.CookieConfigurationpublic java.util.Optional<java.time.temporal.TemporalAmount> getCookieMaxAge()
getCookieMaxAge in interface io.micronaut.http.cookie.CookieConfigurationpublic java.util.Optional<io.micronaut.http.cookie.SameSite> getCookieSameSite()
getCookieSameSite in interface io.micronaut.http.cookie.CookieConfigurationpublic void setCookieDomain(@Nullable
java.lang.String cookieDomain)
cookieDomain - the domain name of this Cookiepublic void setCookieHttpOnly(java.lang.Boolean cookieHttpOnly)
cookieHttpOnly - Whether the Cookie can only be accessed via HTTPpublic void setCookieSecure(java.lang.Boolean cookieSecure)
cookieSecure - True if the cookie is securepublic void setCookieMaxAge(java.time.Duration cookieMaxAge)
cookieMaxAge - The maximum age of the cookiepublic void setCookieSameSite(@Nullable
io.micronaut.http.cookie.SameSite cookieSameSite)
cookieSameSite - The same-site setting of the cookie.