@Requires(condition=CookieBasedAuthenticationModeCondition.class) @Requires(property="micronaut.security.token.refresh.cookie.enabled",notEquals="false",defaultValue="true") @ConfigurationProperties(value="micronaut.security.token.refresh.cookie") public class RefreshTokenCookieConfigurationProperties extends AbstractAccessTokenCookieConfigurationProperties implements RefreshTokenCookieConfiguration
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 |
---|
RefreshTokenCookieConfigurationProperties(java.lang.String oauthControllerPath) |
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 RefreshTokenCookieConfigurationProperties(@Nullable @Property(name="micronaut.security.endpoints.oauth.path") java.lang.String oauthControllerPath)
oauthControllerPath
- The path for the oauth controllerpublic boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
@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 setEnabled(boolean enabled)
enabled
- True if it is enabledpublic void setCookieName(java.lang.String cookieName)
cookieName
- Cookie namepublic void setCookiePath(@Nullable java.lang.String cookiePath)
cookiePath
- The path of the cookie.