@ConfigurationProperties(value="micronaut.security.oauth2.grant-type-password") public class GrantTypePasswordRequestProviderConfigurationProperties extends java.lang.Object implements GrantTypePasswordRequestProviderConfiguration
ConfigurationProperties
implementation of GrantTypePasswordRequestProviderConfiguration
.Modifier and Type | Field and Description |
---|---|
static io.micronaut.http.MediaType |
DEFAULT_CONTENT_TYPE
Default Grant Type.
|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_SCOPE
Default scope.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
GrantTypePasswordRequestProviderConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
io.micronaut.http.MediaType |
getContentType() |
java.util.List<java.lang.String> |
getScopes() |
boolean |
isEnabled() |
void |
setContentType(io.micronaut.http.MediaType contentType)
The Content-Type used to communicate with the token endpoint.
|
void |
setEnabled(boolean enabled)
Sets whether the
GrantTypePasswordRequestProvider is enabled. |
void |
setScopes(java.util.List<java.lang.String> scopes) |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_SCOPE
public static final io.micronaut.http.MediaType DEFAULT_CONTENT_TYPE
public GrantTypePasswordRequestProviderConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
GrantTypePasswordRequestProvider
public void setEnabled(boolean enabled)
GrantTypePasswordRequestProvider
is enabled. Default value (false).enabled
- True if is enabled@Nonnull public io.micronaut.http.MediaType getContentType()
getContentType
in interface GrantTypePasswordRequestProviderConfiguration
public void setContentType(@Nonnull io.micronaut.http.MediaType contentType)
contentType
- The Content-Type@Nonnull public java.util.List<java.lang.String> getScopes()
getScopes
in interface GrantTypePasswordRequestProviderConfiguration
public void setScopes(@Nonnull java.util.List<java.lang.String> scopes)
scopes
- OAuth 2.0 scopes.