Class AppleProviderCondition

java.lang.Object
com.irurueta.authserver.authorization.api.web.social.AppleProviderCondition
All Implemented Interfaces:
org.springframework.context.annotation.Condition

public class AppleProviderCondition extends Object implements org.springframework.context.annotation.Condition
Condition that holds when Sign in with Apple is configured, so the key of its client secret is only parsed and its special handling (the signed client secret, the form post callback) only installed then.
  • Constructor Details

    • AppleProviderCondition

      public AppleProviderCondition()
  • Method Details

    • matches

      public boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
      Tells whether Apple is configured.
      Specified by:
      matches in interface org.springframework.context.annotation.Condition
      Parameters:
      context - the condition context.
      metadata - metadata of the annotated element.
      Returns:
      true when Apple's client id has text.