@Requires(property="micronaut.security.endpoints.oauth.enabled", value="true") @ConfigurationProperties(value="micronaut.security.endpoints.oauth") public class OauthControllerConfigurationProperties extends java.lang.Object implements OauthControllerConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_PATH
The default path.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
OauthControllerConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath()
The path the controller can be accessed at.
|
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Sets whether the
OauthController is enabled. |
void |
setPath(java.lang.String path)
Sets the path to map the
OauthController to. |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_PATH
public OauthControllerConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
OauthController
public java.lang.String getPath()
OauthControllerConfiguration
getPath
in interface OauthControllerConfiguration
public void setEnabled(boolean enabled)
OauthController
is enabled. Default value (false).enabled
- True if is enabledpublic void setPath(java.lang.String path)
OauthController
to. Default value ("/oauth/access_token").path
- The path