PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.core.util
Class JAXPValidationUtil

java.lang.Object
  extended by 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

Field Summary
protected static SchemaFactory schemaFactory
           
protected static Validator validator
           
 
Constructor Summary
JAXPValidationUtil()
           
 
Method Summary
static void checkSchemaValidation(Node samlDocument)
          Based on system property "picketlink.schema.validate" set to "true", do schema validation
static void validate(InputStream stream)
           
static void validate(String str)
           
static Validator validator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validator

protected static Validator validator

schemaFactory

protected static SchemaFactory schemaFactory
Constructor Detail

JAXPValidationUtil

public JAXPValidationUtil()
Method Detail

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

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.