public abstract class AbstractIdpConfigValidator<T extends AbstractIdpConfig> extends Object implements IdpConfigValidator
| Modifier and Type | Field and Description |
|---|---|
static int |
BUTTON_TEXT_LIMIT |
protected static Iterable<ValidationError> |
ERROR_INCORRECT |
protected static Iterable<ValidationError> |
ERROR_INSECURE |
protected static Iterable<ValidationError> |
ERROR_REQUIRED |
protected static Iterable<ValidationError> |
ERROR_TOO_LONG |
protected HttpsValidator |
httpsValidator |
protected static Iterable<ValidationError> |
NO_ERRORS |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIdpConfigValidator(HttpsValidator httpsValidator) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<T> |
getSsoClass()
Class of
AbstractIdpConfig supported by this validator. |
protected abstract SsoType |
getSsoType()
Type of SSO mechanism supported by this validator.
|
com.google.common.collect.Multimap<String,ValidationError> |
validate(IdpConfig ssoConfig)
Validates the given SSO configuration, returning a list of errors mapped by invalid field names
|
com.google.common.collect.Multimap<String,ValidationError> |
validate(IdpConfig config,
ValidationContext context)
Validates the given SSO configuration, returning a list of errors mapped by invalid field names.
|
protected abstract void |
validate(com.google.common.collect.ImmutableMultimap.Builder<String,ValidationError> errors,
T config)
Validates the configuration of specific SSO mechanism, appending errors to the given collection.
|
protected abstract com.google.common.collect.Multimap<String,ValidationError> |
validateInContext(T config,
ValidationContext context) |
protected com.google.common.collect.Multimap<String,ValidationError> |
validateJitFields(JustInTimeConfig justInTimeConfig) |
protected Iterable<ValidationError> |
validateLength(String value,
int limit) |
protected Iterable<ValidationError> |
validateMappingExpression(String expression) |
protected Iterable<ValidationError> |
validateNotMappingExpression(String value) |
protected Iterable<ValidationError> |
validateRequiredField(Object value) |
protected Iterable<ValidationError> |
validateUrl(String ssoUrl) |
public static final int BUTTON_TEXT_LIMIT
protected static final Iterable<ValidationError> ERROR_REQUIRED
protected static final Iterable<ValidationError> ERROR_INCORRECT
protected static final Iterable<ValidationError> ERROR_INSECURE
protected static final Iterable<ValidationError> ERROR_TOO_LONG
protected static final Iterable<ValidationError> NO_ERRORS
protected final HttpsValidator httpsValidator
protected AbstractIdpConfigValidator(HttpsValidator httpsValidator)
protected abstract SsoType getSsoType()
getSsoClass().protected abstract Class<T> getSsoClass()
AbstractIdpConfig supported by this validator. Should match the getSsoType().protected abstract void validate(@Nonnull com.google.common.collect.ImmutableMultimap.Builder<String,ValidationError> errors, @Nonnull T config)
@Nonnull public final com.google.common.collect.Multimap<String,ValidationError> validate(@Nonnull IdpConfig ssoConfig)
IdpConfigValidatorvalidate in interface IdpConfigValidator@Nonnull public final com.google.common.collect.Multimap<String,ValidationError> validate(@Nonnull IdpConfig config, ValidationContext context)
IdpConfigValidatorvalidate in interface IdpConfigValidatorprotected abstract com.google.common.collect.Multimap<String,ValidationError> validateInContext(T config, ValidationContext context)
protected Iterable<ValidationError> validateRequiredField(Object value)
protected Iterable<ValidationError> validateUrl(String ssoUrl)
protected com.google.common.collect.Multimap<String,ValidationError> validateJitFields(JustInTimeConfig justInTimeConfig)
protected Iterable<ValidationError> validateMappingExpression(String expression)
protected Iterable<ValidationError> validateNotMappingExpression(String value)
protected Iterable<ValidationError> validateLength(String value, int limit)
Copyright © 2023 Atlassian. All rights reserved.