Class OAuthClientRegistrationWrapperEntityValidator

  • All Implemented Interfaces:
    com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator

    public class OAuthClientRegistrationWrapperEntityValidator
    extends Object
    implements com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
    Validate that a OAuthClientRegistrationWrapper has a registration id, client id, and client secret
    • Constructor Detail

      • OAuthClientRegistrationWrapperEntityValidator

        public OAuthClientRegistrationWrapperEntityValidator()
    • Method Detail

      • supports

        public boolean supports​(@NonNull
                                @NonNull Class<?> serviceClass,
                                @Nullable
                                com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Specified by:
        supports in interface com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
      • validate

        public void validate​(@NonNull
                             @NonNull Object businessInstance,
                             @NonNull
                             @NonNull org.springframework.validation.Errors errors,
                             @Nullable
                             com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
        Specified by:
        validate in interface com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator