@ConfigurationProperties(value="micronaut.security.oauth2.state.cookie") public class CookieStatePersistenceConfiguration extends AbstractCookieConfiguration implements io.micronaut.http.cookie.CookieConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX |
cookieDomain, cookieSecure
Constructor and Description |
---|
CookieStatePersistenceConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.time.temporal.TemporalAmount> |
getCookieMaxAge() |
java.lang.String |
getCookieName() |
java.util.Optional<java.lang.String> |
getCookiePath() |
java.util.Optional<java.lang.Boolean> |
isCookieHttpOnly() |
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 |
setCookieName(java.lang.String cookieName)
Cookie Name.
|
void |
setCookiePath(java.lang.String cookiePath)
Sets the path of the cookie.
|
getCookieDomain, isCookieSecure, setCookieDomain, setCookieSecure
public static final java.lang.String PREFIX
@NonNull public java.lang.String getCookieName()
getCookieName
in interface io.micronaut.http.cookie.CookieConfiguration
public void setCookieName(@NonNull java.lang.String cookieName)
cookieName
- Cookie namepublic java.util.Optional<java.lang.String> getCookiePath()
getCookiePath
in interface io.micronaut.http.cookie.CookieConfiguration
public void setCookiePath(@Nullable java.lang.String cookiePath)
cookiePath
- The path of the cookie.public java.util.Optional<java.lang.Boolean> isCookieHttpOnly()
isCookieHttpOnly
in interface io.micronaut.http.cookie.CookieConfiguration
public void setCookieHttpOnly(java.lang.Boolean cookieHttpOnly)
cookieHttpOnly
- Whether the Cookie can only be accessed via HTTPpublic java.util.Optional<java.time.temporal.TemporalAmount> getCookieMaxAge()
getCookieMaxAge
in interface io.micronaut.http.cookie.CookieConfiguration
public void setCookieMaxAge(java.time.Duration cookieMaxAge)
cookieMaxAge
- The maximum age of the cookie