org.opensaml.saml2.metadata.provider
Class SchemaValidationFilter

java.lang.Object
  extended by org.opensaml.saml2.metadata.provider.SchemaValidationFilter
All Implemented Interfaces:
MetadataFilter

public class SchemaValidationFilter
extends Object
implements MetadataFilter

A metadata filter that schema validates an incoming metadata file.


Field Summary
private  org.slf4j.Logger log
          Class logger.
 
Constructor Summary
SchemaValidationFilter(String[] extensionSchemas)
          Constructor.
 
Method Summary
 void doFilter(XMLObject metadata)
          Filters the given metadata, perhaps to remove elements that are not wanted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final org.slf4j.Logger log
Class logger.

Constructor Detail

SchemaValidationFilter

public SchemaValidationFilter(String[] extensionSchemas)
Constructor.

Parameters:
extensionSchemas - classpath location of metadata extension schemas, may be null
Method Detail

doFilter

public void doFilter(XMLObject metadata)
              throws FilterException
Filters the given metadata, perhaps to remove elements that are not wanted.

Specified by:
doFilter in interface MetadataFilter
Parameters:
metadata - the metadata to be filtered.
Throws:
FilterException - thrown if an error occurs during the filtering process


Copyright © 1999-2013. All Rights Reserved.