public class SecurityEnhancedTLSSocketFactoryTest extends Object
| Modifier and Type | Field and Description |
|---|---|
private static String |
DATA_PATH |
private String |
hostname |
private org.apache.http.protocol.HttpContext |
httpContext |
private org.opensaml.security.httpclient.impl.SecurityEnhancedTLSSocketFactory |
securityEnhancedSocketFactory |
| Constructor and Description |
|---|
SecurityEnhancedTLSSocketFactoryTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildHttpContext() |
private LayeredConnectionSocketFactory |
buildInnerSSLFactory(List<Certificate> certs,
String host) |
private X509Certificate |
getCertificate(String fileName) |
private BasicX509Credential |
getCredential(String entityCertFileName,
String... chainMembers) |
private InputStream |
getInputStream(String fileName) |
void |
testDefaultFailNoTrustEngine() |
void |
testFailBadHostname() |
void |
testFailNoCertsInSession() |
void |
testFailUntrustedCert() |
void |
testFailUntrustedCertExplicitFatal() |
void |
testFailUntrustedCertNonFatal() |
void |
testNonSSL() |
void |
testSuccessNoTrustEngine() |
void |
testSuccessWithEngine() |
void |
testSuccessWithEngineAndVerifier() |
private static final String DATA_PATH
private org.opensaml.security.httpclient.impl.SecurityEnhancedTLSSocketFactory securityEnhancedSocketFactory
private org.apache.http.protocol.HttpContext httpContext
private String hostname
public SecurityEnhancedTLSSocketFactoryTest()
public void buildHttpContext()
public void testNonSSL()
throws IOException
IOExceptionpublic void testDefaultFailNoTrustEngine()
throws IOException
IOExceptionpublic void testSuccessNoTrustEngine()
throws IOException
IOExceptionpublic void testSuccessWithEngine()
throws IOException
IOExceptionpublic void testSuccessWithEngineAndVerifier()
throws IOException
IOExceptionpublic void testFailUntrustedCert()
throws IOException
IOExceptionpublic void testFailUntrustedCertExplicitFatal()
throws IOException
IOExceptionpublic void testFailUntrustedCertNonFatal()
throws IOException
IOExceptionpublic void testFailBadHostname()
throws IOException
IOExceptionpublic void testFailNoCertsInSession()
throws IOException
IOExceptionprivate LayeredConnectionSocketFactory buildInnerSSLFactory(List<Certificate> certs, String host)
private BasicX509Credential getCredential(String entityCertFileName, String... chainMembers)
private X509Certificate getCertificate(String fileName)
private InputStream getInputStream(String fileName)
Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.