@ConfigurationProperties(value="micronaut.security.oauth2.token") public class TokenEndpointConfigurationProperties extends java.lang.Object implements TokenEndpoint
ConfigurationProperties
implementation of TokenEndpoint
.Modifier and Type | Field and Description |
---|---|
static io.micronaut.http.MediaType |
DEFAULT_CONTENT_TYPE
Default Grant Type.
|
static java.lang.String |
DEFAULT_GRANTTYPE
Default Grant Type.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
TokenEndpointConfigurationProperties(AuthMethodProvider authMethodProvider) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthMethod() |
io.micronaut.http.MediaType |
getContentType() |
java.lang.String |
getGrantType() |
java.lang.String |
getRedirectUri() |
java.lang.String |
getUrl() |
void |
setAuthMethod(java.lang.String authMethod)
Client Authentication method.
|
void |
setContentType(io.micronaut.http.MediaType contentType)
The Content-Type used to communicate with the token endpoint.
|
void |
setGrantType(java.lang.String grantType)
OAuth 2.0 Grant Type.
|
void |
setRedirectUri(java.lang.String redirectUri) |
void |
setUrl(java.lang.String url) |
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_GRANTTYPE
public static final io.micronaut.http.MediaType DEFAULT_CONTENT_TYPE
public TokenEndpointConfigurationProperties(@Nullable AuthMethodProvider authMethodProvider)
authMethodProvider
- Default auth method provider@Nonnull public java.lang.String getGrantType()
getGrantType
in interface TokenEndpoint
@Nullable public java.lang.String getAuthMethod()
getAuthMethod
in interface TokenEndpoint
@Nullable public java.lang.String getRedirectUri()
getRedirectUri
in interface TokenEndpoint
public void setGrantType(@Nonnull java.lang.String grantType)
grantType
- OAuth 2.0 Grant Typepublic void setAuthMethod(@Nullable java.lang.String authMethod)
AuthMethodProvider
, if such a bean exists, is used.authMethod
- Client Authentication method.public void setRedirectUri(@Nullable java.lang.String redirectUri)
redirectUri
- Redirection URI to which the response will be sent.@Nullable public java.lang.String getUrl()
public void setUrl(@Nullable java.lang.String url)
url
- token endpoint's url@Nonnull public io.micronaut.http.MediaType getContentType()
getContentType
in interface TokenEndpoint
public void setContentType(@Nonnull io.micronaut.http.MediaType contentType)
contentType
- The Content-Type