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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata) Tells whether Apple is configured.
-
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:
matchesin interfaceorg.springframework.context.annotation.Condition- Parameters:
context- the condition context.metadata- metadata of the annotated element.- Returns:
truewhen Apple's client id has text.
-