Class OauthControllerConfigurationProperties
- java.lang.Object
-
- io.micronaut.security.token.jwt.endpoints.OauthControllerConfigurationProperties
-
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable,OauthControllerConfiguration
@Requires(property="micronaut.security.endpoints.oauth.enabled", value="true") @ConfigurationProperties("micronaut.security.endpoints.oauth") public class OauthControllerConfigurationProperties extends java.lang.Object implements OauthControllerConfigurationConfigures the provided OAuth controller.- Since:
- 1.0
- Author:
- Sergio del Amo
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_ENABLEDThe default enable value.static java.lang.StringDEFAULT_PATHThe default path.static java.lang.StringPREFIX
-
Constructor Summary
Constructors Constructor Description OauthControllerConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPath()The path the controller can be accessed at.booleanisEnabled()voidsetEnabled(boolean enabled)Sets whether theOauthControlleris enabled.voidsetPath(java.lang.String path)Sets the path to map theOauthControllerto.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED
The default enable value.- See Also:
- Constant Field Values
-
DEFAULT_PATH
public static final java.lang.String DEFAULT_PATH
The default path.- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable- Returns:
- true if you want to enable the
OauthController
-
getPath
public java.lang.String getPath()
Description copied from interface:OauthControllerConfigurationThe path the controller can be accessed at.- Specified by:
getPathin interfaceOauthControllerConfiguration- Returns:
- The path e.g. /oauth/access_token
-
setEnabled
public void setEnabled(boolean enabled)
Sets whether theOauthControlleris enabled. Default value (false).- Parameters:
enabled- True if is enabled
-
setPath
public void setPath(java.lang.String path)
Sets the path to map theOauthControllerto. Default value ("/oauth/access_token").- Parameters:
path- The path
-
-