public class HTTPMetadataResolverTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
HTTPMetadataResolver.| Modifier and Type | Field and Description |
|---|---|
private String |
badMDURL |
private CriteriaSet |
criteriaSet |
(package private) static String |
DATA_PATH |
private String |
entityID |
private HttpClientBuilder |
httpClientBuilder |
private org.opensaml.saml.metadata.resolver.impl.HTTPMetadataResolver |
metadataProvider |
private String |
metadataURLHttp |
private String |
metadataURLHttps |
| Constructor and Description |
|---|
HTTPMetadataResolverTest() |
| Modifier and Type | Method and Description |
|---|---|
static org.opensaml.security.trust.TrustEngine<? super org.opensaml.security.x509.X509Credential> |
buildExplicitKeyTrustEngine(String cert) |
static org.opensaml.security.trust.TrustEngine<? super org.opensaml.security.x509.X509Credential> |
buildPKIXTrustEngine(String cert,
String name,
boolean nameCheckEnabled) |
static LayeredConnectionSocketFactory |
buildTrustEngineSocketFactory() |
static LayeredConnectionSocketFactory |
buildTrustEngineSocketFactory(boolean trustEngineRequired) |
protected void |
setUpClass() |
protected void |
setUpMethod() |
void |
testFailFastBadURL()
Test fail-fast = true with known bad metadata URL.
|
void |
testGetEntityDescriptor()
Tests the
AbstractMetadataResolver.lookupEntityID(String) method. |
void |
testHTTPSNoTrustEngine() |
void |
testHTTPSTrustEngineExplicitKey() |
void |
testHTTPSTrustEngineInvalidKey() |
void |
testHTTPSTrustEngineInvalidPKIX() |
void |
testHTTPSTrustEngineValidPKIX() |
void |
testHTTPSTrustEngineValidPKIXExplicitName() |
void |
testHTTPSTrustEngineValidPKIXInvalidName() |
void |
testHTTPSTrustEngineWrongSocketFactory() |
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, unmarshallElement, unmarshallElementprivate HttpClientBuilder httpClientBuilder
private String metadataURLHttp
private String metadataURLHttps
private String badMDURL
private String entityID
private org.opensaml.saml.metadata.resolver.impl.HTTPMetadataResolver metadataProvider
private CriteriaSet criteriaSet
static final String DATA_PATH
protected void setUpClass()
public void testGetEntityDescriptor()
throws ResolverException
AbstractMetadataResolver.lookupEntityID(String) method.ResolverExceptionpublic void testFailFastBadURL()
throws Exception
Exceptionpublic void testNoFailFastBadURL()
throws Exception
Exceptionpublic 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
Exceptionpublic static org.opensaml.security.trust.TrustEngine<? super org.opensaml.security.x509.X509Credential> buildPKIXTrustEngine(String cert, String name, boolean nameCheckEnabled) throws URISyntaxException, CertificateException, IOException
public static org.opensaml.security.trust.TrustEngine<? super org.opensaml.security.x509.X509Credential> buildExplicitKeyTrustEngine(String cert) throws URISyntaxException, CertificateException, IOException
public static LayeredConnectionSocketFactory buildTrustEngineSocketFactory()
public static LayeredConnectionSocketFactory buildTrustEngineSocketFactory(boolean trustEngineRequired)
Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.