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 Details

    • AbstractCondition

      public AbstractCondition()
  • Method Details

    • matches

      public boolean matches(io.micronaut.context.condition.ConditionContext context)
      Specified by:
      matches in interface io.micronaut.context.condition.Condition
    • getFailureMessagePrefix

      @NonNull protected abstract @NonNull String getFailureMessagePrefix(@NonNull @NonNull String name)
    • handleConfigurationEnabled

      protected abstract boolean handleConfigurationEnabled(@NonNull @NonNull OauthClientConfiguration clientConfiguration, @NonNull @NonNull io.micronaut.context.condition.ConditionContext<?> context, @NonNull @NonNull String failureMsgPrefix)