Class PasswordGrantCondition
java.lang.Object
io.micronaut.security.oauth2.client.condition.AbstractCondition
io.micronaut.security.oauth2.endpoint.token.request.password.PasswordGrantCondition
- All Implemented Interfaces:
io.micronaut.context.condition.Condition
,Predicate<io.micronaut.context.condition.ConditionContext>
Condition to enable the password grant authentication flow for an OAuth provider.
- Since:
- 2.0.0
- Author:
- James Kleeh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull String
getFailureMessagePrefix
(@NonNull String name) protected boolean
handleConfigurationEnabled
(@NonNull OauthClientConfiguration clientConfiguration, @NonNull io.micronaut.context.condition.ConditionContext<?> context, @NonNull String failureMsgPrefix) Methods inherited from class io.micronaut.security.oauth2.client.condition.AbstractCondition
matches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.context.condition.Condition
test
-
Constructor Details
-
PasswordGrantCondition
public PasswordGrantCondition()
-
-
Method Details
-
getFailureMessagePrefix
- Specified by:
getFailureMessagePrefix
in classAbstractCondition
-
handleConfigurationEnabled
protected boolean handleConfigurationEnabled(@NonNull @NonNull OauthClientConfiguration clientConfiguration, @NonNull @NonNull io.micronaut.context.condition.ConditionContext<?> context, @NonNull @NonNull String failureMsgPrefix) - Specified by:
handleConfigurationEnabled
in classAbstractCondition
-