All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.gov.ida.saml.deserializers.validators.NotNullSamlStringValidator Maven / Gradle / Ivy

There is a newer version: 3.4.6-277
Show newest version
package uk.gov.ida.saml.deserializers.validators;

import uk.gov.ida.saml.core.validation.SamlTransformationErrorException;
import uk.gov.ida.saml.core.validation.SamlValidationSpecificationFailure;
import uk.gov.ida.saml.core.validation.errors.SamlTransformationErrorFactory;

public class NotNullSamlStringValidator {
    public void validate(String input) {
        if (input == null) {
            SamlValidationSpecificationFailure failure = SamlTransformationErrorFactory.noSamlMessage();
            throw new SamlTransformationErrorException(failure.getErrorMessage(), failure.getLogLevel());
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy