Class JAXPValidationUtil
- java.lang.Object
-
- org.keycloak.saml.processing.core.util.JAXPValidationUtil
-
public class JAXPValidationUtil extends Object
Utility class associated with JAXP Validation- Since:
- Jun 30, 2011
- Author:
- Anil.Saldhana@redhat.com
-
-
Field Summary
Fields Modifier and Type Field Description protected static SchemaFactory
schemaFactory
protected static Validator
validator
-
Constructor Summary
Constructors Constructor Description JAXPValidationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkSchemaValidation(Node samlDocument)
Based on system property "picketlink.schema.validate" set to "true", do schema validationstatic void
validate(InputStream stream)
static Validator
validator()
-
-
-
Field Detail
-
validator
protected static Validator validator
-
schemaFactory
protected static SchemaFactory schemaFactory
-
-
Method Detail
-
validate
public static void validate(InputStream stream) throws SAXException, IOException
- Throws:
SAXException
IOException
-
checkSchemaValidation
public static void checkSchemaValidation(Node samlDocument) throws ProcessingException
Based on system property "picketlink.schema.validate" set to "true", do schema validation- Parameters:
samlDocument
-- Throws:
ProcessingException
-
validator
public static Validator validator() throws SAXException, IOException
- Throws:
SAXException
IOException
-
-