Package io.micronaut.security.config
Class RedirectConfigurationProperties.ForbiddenRedirectConfigurationProperties
java.lang.Object
io.micronaut.security.config.RedirectConfigurationProperties.ForbiddenRedirectConfigurationProperties
- All Implemented Interfaces:
- io.micronaut.core.util.Toggleable,- ForbiddenRedirectConfiguration
- Enclosing class:
- RedirectConfigurationProperties
@ConfigurationProperties("forbidden")
public static class RedirectConfigurationProperties.ForbiddenRedirectConfigurationProperties
extends Object
implements ForbiddenRedirectConfiguration
Forbidden redirect configuration.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final booleanThe default enabled value for forbidden.static final StringThe default forbidden rejection target URL.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription@NonNull StringgetUrl()booleanvoidsetEnabled(boolean enabled) Whether it should redirect on forbidden rejections.voidWhere the user is redirected to after trying to access a secured route which he is forbidden to access.
- 
Field Details- 
DEFAULT_ENABLEDpublic static final boolean DEFAULT_ENABLEDThe default enabled value for forbidden.- See Also:
 
- 
DEFAULT_FORBIDDENThe default forbidden rejection target URL.- See Also:
 
 
- 
- 
Constructor Details- 
ForbiddenRedirectConfigurationPropertiespublic ForbiddenRedirectConfigurationProperties()
 
- 
- 
Method Details- 
getUrl- Specified by:
- getUrlin interface- ForbiddenRedirectConfiguration
 
- 
setUrlWhere the user is redirected to after trying to access a secured route which he is forbidden to access. Default value ("/").- Parameters:
- url- The URL
 
- 
isEnabledpublic boolean isEnabled()- Specified by:
- isEnabledin interface- io.micronaut.core.util.Toggleable
 
- 
setEnabledpublic void setEnabled(boolean enabled) Whether it should redirect on forbidden rejections. Default value (true).- Parameters:
- enabled- The enabled flag
 
 
-