org.opensaml.saml2.metadata.provider
Class RequiredValidUntilFilter

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

public class RequiredValidUntilFilter
extends java.lang.Object
implements MetadataFilter

A metadata filter that requires the presence of a validUntil attribute on the root element of the metadata document. It can optionally also enforce that the validity period (now minus validUntil date) is not longer than a specified amount. A maximum validity interval of less than 1 means the no restriction is placed on the metadata's validUntil attribute.


Constructor Summary
RequiredValidUntilFilter()
          Constructor.
RequiredValidUntilFilter(long maxValidityInterval)
          Constructor.
 
Method Summary
 void doFilter(org.opensaml.xml.XMLObject metadata)
          Filters the given metadata, perhaps to remove elements that are not wanted.
 long getMaxValidityInterval()
          Gets the maximum internal, in seconds, between now and the validUntil date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequiredValidUntilFilter

public RequiredValidUntilFilter()
Constructor.


RequiredValidUntilFilter

public RequiredValidUntilFilter(long maxValidityInterval)
Constructor.

Parameters:
maxValidityInterval - maximum internal, in seconds, between now and the validUntil date
Method Detail

getMaxValidityInterval

public long getMaxValidityInterval()
Gets the maximum internal, in seconds, between now and the validUntil date. A value of less than 1 indicates that there is no restriction.

Returns:
maximum internal, in seconds, between now and the validUntil date

doFilter

public void doFilter(org.opensaml.xml.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 © 2006-2009 Internet2. All Rights Reserved.