Class TokenEndpointConfigurationBuilder
java.lang.Object
io.micronaut.security.oauth2.configuration.endpoints.TokenEndpointConfigurationBuilder
Builder for programmatic
TokenEndpointConfiguration instances.- Since:
- 5.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull TokenEndpointConfigurationBuilderauthenticationMethod(@Nullable String authenticationMethod) Sets the token endpoint authentication method.@NonNull TokenEndpointConfigurationbuild()Builds the token endpoint configuration.@NonNull TokenEndpointConfigurationBuildercontentType(@NonNull io.micronaut.http.MediaType contentType) Sets the token endpoint request content type.@NonNull TokenEndpointConfigurationBuilderSets the token endpoint URL.
-
Constructor Details
-
TokenEndpointConfigurationBuilder
public TokenEndpointConfigurationBuilder()
-
-
Method Details
-
url
Sets the token endpoint URL.- Parameters:
url- The token endpoint URL.- Returns:
- This builder.
-
authenticationMethod
public @NonNull TokenEndpointConfigurationBuilder authenticationMethod(@Nullable String authenticationMethod) Sets the token endpoint authentication method.- Parameters:
authenticationMethod- The token endpoint authentication method.- Returns:
- This builder.
-
contentType
public @NonNull TokenEndpointConfigurationBuilder contentType(@NonNull io.micronaut.http.MediaType contentType) Sets the token endpoint request content type.- Parameters:
contentType- The token endpoint request content type.- Returns:
- This builder.
-
build
Builds the token endpoint configuration.- Returns:
- The token endpoint configuration.
-