org.picketlink.identity.federation.core.util
Class JAXPValidationUtil
java.lang.Object
org.picketlink.identity.federation.core.util.JAXPValidationUtil
public class JAXPValidationUtil
- extends Object
Utility class associated with JAXP Validation
- Since:
- Jun 30, 2011
- Author:
- Anil.Saldhana@redhat.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
validator
protected static Validator validator
schemaFactory
protected static SchemaFactory schemaFactory
JAXPValidationUtil
public JAXPValidationUtil()
validate
public static void validate(String str)
throws SAXException,
IOException
- Throws:
SAXException
IOException
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
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.