@Requires(condition=CookieBasedAuthenticationModeCondition.class) @Requires(property="micronaut.security.token.jwt.cookie.enabled",notEquals="false",defaultValue="true") @ConfigurationProperties(value="micronaut.security.token.jwt.cookie") public class JwtCookieConfigurationProperties extends AbstractAccessTokenCookieConfigurationProperties implements AccessTokenCookieConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_COOKIENAME
The default cookie name.
|
static java.lang.String |
DEFAULT_COOKIEPATH
Default Cookie Path.
|
static io.micronaut.http.cookie.SameSite |
DEFAULT_COOKIESAMESITE
|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static boolean |
DEFAULT_HTTPONLY
|
static java.lang.String |
PREFIX |
cookieDomain, cookieHttpOnly, cookieMaxAge, cookieSameSite, cookieSecure
Constructor and Description |
---|
JwtCookieConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCookieName() |
java.util.Optional<java.lang.String> |
getCookiePath() |
boolean |
isEnabled() |
void |
setCookieName(java.lang.String cookieName)
Cookie Name.
|
void |
setCookiePath(java.lang.String cookiePath)
Sets the path of the cookie.
|
void |
setEnabled(boolean enabled)
Sets whether JWT cookie configuration is enabled.
|
getCookieDomain, getCookieMaxAge, getCookieSameSite, isCookieHttpOnly, isCookieSecure, setCookieDomain, setCookieHttpOnly, setCookieMaxAge, setCookieSameSite, setCookieSecure
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
@Deprecated public static final boolean DEFAULT_HTTPONLY
public static final java.lang.String DEFAULT_COOKIENAME
public static final java.lang.String DEFAULT_COOKIEPATH
@Deprecated public static final io.micronaut.http.cookie.SameSite DEFAULT_COOKIESAMESITE
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- True if it is enabledpublic void setCookieName(java.lang.String cookieName)
cookieName
- Cookie name@NonNull public java.lang.String getCookieName()
getCookieName
in interface io.micronaut.http.cookie.CookieConfiguration
@Nullable public 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.