Class AbstractCondition
java.lang.Object
io.micronaut.security.oauth2.client.condition.AbstractCondition
- All Implemented Interfaces:
io.micronaut.context.condition.Condition
,Predicate<io.micronaut.context.condition.ConditionContext>
- Direct Known Subclasses:
OauthClientCondition
,PasswordGrantCondition
@Internal
public abstract class AbstractCondition
extends Object
implements io.micronaut.context.condition.Condition
Base class for condition implementations.
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @NonNull String
getFailureMessagePrefix
(@NonNull String name) protected abstract boolean
handleConfigurationEnabled
(@NonNull OauthClientConfiguration clientConfiguration, @NonNull io.micronaut.context.condition.ConditionContext<?> context, @NonNull String failureMsgPrefix) boolean
matches
(io.micronaut.context.condition.ConditionContext context) 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
-
AbstractCondition
public AbstractCondition()
-
-
Method Details
-
matches
public boolean matches(io.micronaut.context.condition.ConditionContext context) - Specified by:
matches
in interfaceio.micronaut.context.condition.Condition
-
getFailureMessagePrefix
-
handleConfigurationEnabled
protected abstract boolean handleConfigurationEnabled(@NonNull @NonNull OauthClientConfiguration clientConfiguration, @NonNull @NonNull io.micronaut.context.condition.ConditionContext<?> context, @NonNull @NonNull String failureMsgPrefix)
-