edu.internet2.middleware.shibboleth.wayf.plugins.provider
Class BindingFilter

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.wayf.plugins.provider.BindingFilter
All Implemented Interfaces:
org.opensaml.saml2.metadata.provider.MetadataFilter

public class BindingFilter
extends Object
implements org.opensaml.saml2.metadata.provider.MetadataFilter

See SDSJ-48. If we get a DS endpoint then we need to check that the binding is provided and that it is correct.


Field Summary
private static Logger LOG
          Log for the warning.
private  boolean warnOnFailure
          Set if we just want to warn on failure.
 
Constructor Summary
private BindingFilter()
          Only the protected constructor should be visible.
  BindingFilter(boolean warn)
          Initialize the filter.
 
Method Summary
private  void checkEntities(org.opensaml.saml2.metadata.EntitiesDescriptor entities)
          Check an EntitiesDescriptor call checkentities for the Entities and ourselves recursively for the EntitesDescriptors.
private static boolean checkEntity(org.opensaml.saml2.metadata.EntityDescriptor entity)
          If the entity has an SP characteristic, and it has a DS endpoint then check its binding.
 void doFilter(org.opensaml.xml.XMLObject metadata)
          Apply the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG
Log for the warning.


warnOnFailure

private final boolean warnOnFailure
Set if we just want to warn on failure.

Constructor Detail

BindingFilter

private BindingFilter()
Only the protected constructor should be visible.


BindingFilter

public BindingFilter(boolean warn)
Initialize the filter.

Parameters:
warn - do we warn or do we fail if we see badness?
Method Detail

doFilter

public void doFilter(org.opensaml.xml.XMLObject metadata)
              throws org.opensaml.saml2.metadata.provider.FilterException
Apply the filter.

Specified by:
doFilter in interface org.opensaml.saml2.metadata.provider.MetadataFilter
Parameters:
metadata - what to filter.
Throws:
org.opensaml.saml2.metadata.provider.FilterException - if it sees any missed or bad bindings.
See Also:
MetadataFilter.doFilter(org.opensaml.xml.XMLObject)

checkEntity

private static boolean checkEntity(org.opensaml.saml2.metadata.EntityDescriptor entity)
If the entity has an SP characteristic, and it has a DS endpoint then check its binding.

Parameters:
entity - what to check.
Returns:
true if all is OK.

checkEntities

private void checkEntities(org.opensaml.saml2.metadata.EntitiesDescriptor entities)
Check an EntitiesDescriptor call checkentities for the Entities and ourselves recursively for the EntitesDescriptors.

Parameters:
entities - what to check.


Copyright © 1999-2012. All Rights Reserved.