public class AbstractDynamicMetadataResolverTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Class and Description |
|---|---|
private static class |
AbstractDynamicMetadataResolverTest.MockDynamicResolver |
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.saml2.metadata.EntityDescriptor |
ed1 |
private org.opensaml.saml.saml2.metadata.EntityDescriptor |
ed2 |
private org.opensaml.saml.saml2.metadata.EntityDescriptor |
ed3 |
private String |
id1 |
private String |
id2 |
private String |
id3 |
private com.google.common.base.Function<org.opensaml.saml.saml2.metadata.EntityDescriptor,String> |
persistentCacheKeyGenerator |
private org.opensaml.core.xml.persist.XMLObjectLoadSaveManager<org.opensaml.saml.saml2.metadata.EntityDescriptor> |
persistentCacheManager |
private Map<String,org.opensaml.saml.saml2.metadata.EntityDescriptor> |
persistentCacheMap |
private AbstractDynamicMetadataResolverTest.MockDynamicResolver |
resolver |
private SignatureTrustEngine |
signatureTrustEngine |
private org.opensaml.saml.metadata.resolver.filter.impl.SignatureValidationFilter |
signatureValidationFilter |
private org.opensaml.security.credential.Credential |
signingCred |
private SignatureSigningParameters |
signingParams |
private Map<String,org.opensaml.saml.saml2.metadata.EntityDescriptor> |
sourceMap |
| Constructor and Description |
|---|
AbstractDynamicMetadataResolverTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
setUpEntityData() |
protected void |
setUpSigningSupport() |
protected void |
tearDown() |
void |
testBasicResolution() |
void |
testBasicResolutionWithPersistentCache() |
void |
testClear() |
void |
testClearByEntityID() |
void |
testDOMDropFromFetch() |
void |
testEntityIDClearWithNegativeLookupCache() |
void |
testGlobalClearWithNegativeLookupCache() |
void |
testInitFromPersistentCache() |
void |
testInitFromPersistentCacheWithDifferingKeys() |
void |
testInitFromPersistentCacheWithPredicate() |
void |
testNegativeLookupCache() |
void |
testNoEntities() |
void |
testSecondaryIndexAfterEntityIDResolution() |
void |
testSecondaryIndexAfterEntityIDResolutionMultipleResults() |
void |
testSecondaryLookupThenEntityID() |
void |
testWithPersistentCache() |
void |
testWithPersistentCacheAndSignatureValidation() |
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementprivate org.opensaml.core.xml.persist.XMLObjectLoadSaveManager<org.opensaml.saml.saml2.metadata.EntityDescriptor> persistentCacheManager
private Map<String,org.opensaml.saml.saml2.metadata.EntityDescriptor> persistentCacheMap
private com.google.common.base.Function<org.opensaml.saml.saml2.metadata.EntityDescriptor,String> persistentCacheKeyGenerator
private AbstractDynamicMetadataResolverTest.MockDynamicResolver resolver
private String id1
private String id2
private String id3
private org.opensaml.saml.saml2.metadata.EntityDescriptor ed1
private org.opensaml.saml.saml2.metadata.EntityDescriptor ed2
private org.opensaml.saml.saml2.metadata.EntityDescriptor ed3
private org.opensaml.security.credential.Credential signingCred
private SignatureSigningParameters signingParams
private SignatureTrustEngine signatureTrustEngine
private org.opensaml.saml.metadata.resolver.filter.impl.SignatureValidationFilter signatureValidationFilter
protected void setUpSigningSupport()
throws NoSuchAlgorithmException,
NoSuchProviderException
protected void setUpEntityData()
throws org.opensaml.core.xml.io.MarshallingException,
IOException,
org.opensaml.security.SecurityException,
SignatureException
org.opensaml.core.xml.io.MarshallingExceptionIOExceptionorg.opensaml.security.SecurityExceptionSignatureExceptionprotected void setUp()
protected void tearDown()
public void testNoEntities()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testBasicResolution()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testClear()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testClearByEntityID()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testNegativeLookupCache()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException,
InterruptedException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionInterruptedExceptionpublic void testGlobalClearWithNegativeLookupCache()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException,
InterruptedException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionInterruptedExceptionpublic void testEntityIDClearWithNegativeLookupCache()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException,
InterruptedException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionInterruptedExceptionpublic void testDOMDropFromFetch()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testBasicResolutionWithPersistentCache()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testWithPersistentCache()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testWithPersistentCacheAndSignatureValidation()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testInitFromPersistentCache()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException,
IOException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionIOExceptionpublic void testInitFromPersistentCacheWithPredicate()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException,
IOException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionIOExceptionpublic void testInitFromPersistentCacheWithDifferingKeys()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException,
IOException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionIOExceptionpublic void testSecondaryIndexAfterEntityIDResolution()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testSecondaryIndexAfterEntityIDResolutionMultipleResults()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testSecondaryLookupThenEntityID()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException,
net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.