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