public class FileBackedHTTPMetadataResolverTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
FileBackedHTTPMetadataResolver.| Modifier and Type | Field and Description |
|---|---|
private String |
backupFilePath |
private String |
badMDURL |
private net.shibboleth.utilities.java.support.resolver.CriteriaSet |
criteriaSet |
private static String |
DATA_PATH |
private String |
entityID |
private net.shibboleth.utilities.java.support.httpclient.HttpClientBuilder |
httpClientBuilder |
private String |
httpMDURL |
private String |
httpsMDURL |
private org.opensaml.saml.metadata.resolver.impl.FileBackedHTTPMetadataResolver |
metadataProvider |
| Constructor and Description |
|---|
FileBackedHTTPMetadataResolverTest() |
| Modifier and Type | Method and Description |
|---|---|
private org.opensaml.security.trust.TrustEngine<? super org.opensaml.security.x509.X509Credential> |
buildExplicitKeyTrustEngine(String cert) |
private org.opensaml.security.trust.TrustEngine<? super org.opensaml.security.x509.X509Credential> |
buildPKIXTrustEngine(String cert,
String name,
boolean nameCheckEnabled) |
private LayeredConnectionSocketFactory |
buildTrustEngineSocketFactory() |
protected void |
setUp() |
protected void |
tearDown() |
void |
testBackupFileOnRestart()
Tests use of backup file on simulated restart.
|
void |
testFailFastBadBackupFile()
Test fail-fast = true and bad backup file
|
void |
testFailFastBadURL()
Test fail-fast = true with known bad metadata URL.
|
void |
testGetEntityDescriptor()
Tests the basic success case.
|
void |
testHTTPSNoTrustEngine() |
void |
testHTTPSTrustEngineExplicitKey() |
void |
testHTTPSTrustEngineInvalidKey() |
void |
testHTTPSTrustEngineInvalidPKIX() |
void |
testHTTPSTrustEngineValidPKIX() |
void |
testHTTPSTrustEngineValidPKIXExplicitName() |
void |
testHTTPSTrustEngineValidPKIXInvalidName() |
void |
testHTTPSTrustEngineWrongSocketFactory() |
void |
testNoFailFastBadBackupFile()
Test case of fail-fast = false and bad backup file
|
void |
testNoFailFastBadURL()
Test fail-fast = false with known bad metadata URL.
|
void |
testTrustEngineSocketFactoryNoHTTPSNoTrustEngine() |
void |
testTrustEngineSocketFactoryNoHTTPSWithTrustEngine() |
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate static final String DATA_PATH
private net.shibboleth.utilities.java.support.httpclient.HttpClientBuilder httpClientBuilder
private String httpsMDURL
private String httpMDURL
private String badMDURL
private String backupFilePath
private org.opensaml.saml.metadata.resolver.impl.FileBackedHTTPMetadataResolver metadataProvider
private String entityID
private net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet
protected void tearDown()
public void testGetEntityDescriptor()
throws Exception
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionExceptionpublic void testFailFastBadURL()
throws Exception
Exceptionpublic void testNoFailFastBadURL()
throws Exception
Exceptionpublic void testFailFastBadBackupFile()
throws Exception
Exceptionpublic void testNoFailFastBadBackupFile()
throws Exception
net.shibboleth.utilities.java.support.resolver.ResolverExceptionExceptionpublic void testBackupFileOnRestart()
throws Exception
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionResolverException, - ComponentInitializationExceptionExceptionpublic void testTrustEngineSocketFactoryNoHTTPSNoTrustEngine()
throws Exception
Exceptionpublic void testTrustEngineSocketFactoryNoHTTPSWithTrustEngine()
throws Exception
Exceptionpublic void testHTTPSTrustEngineExplicitKey()
throws Exception
Exceptionpublic void testHTTPSTrustEngineInvalidKey()
throws Exception
Exceptionpublic void testHTTPSTrustEngineValidPKIX()
throws Exception
Exceptionpublic void testHTTPSTrustEngineValidPKIXExplicitName()
throws Exception
Exceptionpublic void testHTTPSTrustEngineInvalidPKIX()
throws Exception
Exceptionpublic void testHTTPSTrustEngineValidPKIXInvalidName()
throws Exception
Exceptionpublic void testHTTPSTrustEngineWrongSocketFactory()
throws Exception
Exceptionprivate LayeredConnectionSocketFactory buildTrustEngineSocketFactory()
private org.opensaml.security.trust.TrustEngine<? super org.opensaml.security.x509.X509Credential> buildExplicitKeyTrustEngine(String cert) throws URISyntaxException, CertificateException
private org.opensaml.security.trust.TrustEngine<? super org.opensaml.security.x509.X509Credential> buildPKIXTrustEngine(String cert, String name, boolean nameCheckEnabled) throws URISyntaxException, CertificateException
Copyright © 1999–2015. All rights reserved.