net.shibboleth.metadata
Class AssertSupport
java.lang.Object
net.shibboleth.metadata.AssertSupport
public final class AssertSupport
- extends Object
Helper class that offers additional assertion checks.
|
Method Summary |
static void |
assertValidComponentInfo(net.shibboleth.metadata.Item<?> metadataElement,
int expectedComponentInfos,
Class<? extends net.shibboleth.utilities.java.support.component.Component> expectedComponentType,
String expectedComponentId)
Checks that the given metadata element contains ComponentInfo information. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssertSupport
private AssertSupport()
- Constructor.
assertValidComponentInfo
public static void assertValidComponentInfo(net.shibboleth.metadata.Item<?> metadataElement,
int expectedComponentInfos,
Class<? extends net.shibboleth.utilities.java.support.component.Component> expectedComponentType,
String expectedComponentId)
- Checks that the given metadata element contains
ComponentInfo information.
- Parameters:
metadataElement - element to check, never nullexpectedComponentInfos - number of ComponentInfos expected on the element, must be greater than 0expectedComponentType - type of Component that created that ComponentInfo, never nullexpectedComponentId - ID of the Component that created that ComponentInfo, never null
Copyright © 1999-2012. All Rights Reserved.