@ConfigurationProperties(value="forbidden") public static class RedirectConfigurationProperties.ForbiddenRedirectConfigurationProperties extends java.lang.Object implements ForbiddenRedirectConfiguration
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED
The default enabled value for forbidden.
|
static java.lang.String |
DEFAULT_FORBIDDEN
The default forbidden rejection target URL.
|
| Constructor and Description |
|---|
ForbiddenRedirectConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUrl() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Whether it should redirect on forbidden rejections.
|
void |
setUrl(java.lang.String url)
Where the user is redirected to after trying to access a secured route which he is forbidden to access.
|
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_FORBIDDEN
public ForbiddenRedirectConfigurationProperties()
@NonNull public java.lang.String getUrl()
getUrl in interface ForbiddenRedirectConfigurationpublic void setUrl(@NonNull
java.lang.String url)
url - The URLpublic boolean isEnabled()
isEnabled in interface io.micronaut.core.util.Toggleablepublic void setEnabled(boolean enabled)
enabled - The enabled flag