Package org.opensaml.security.httpclient
Class SecurityEnhancedHTTPResourceTest
- java.lang.Object
-
- org.opensaml.security.httpclient.SecurityEnhancedHTTPResourceTest
-
public class SecurityEnhancedHTTPResourceTest extends Object
Test for HTTPResource with security support added.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.http.client.HttpClientclientprivate StringexistsHttpprivate StringexistsHttpsprivate HttpClientSecurityContextHandlerhandlerprivate HttpClientSecurityParametersparamsprivate Stringpathprivate StringpathPrefix
-
Constructor Summary
Constructors Constructor Description SecurityEnhancedHTTPResourceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidsetupClient()voidtestBadSSLProtocol()voidtestHostnameRejected()voidtestNoSecurityAdded()
-
-
-
Field Detail
-
path
private final String path
- See Also:
- Constant Field Values
-
pathPrefix
private final String pathPrefix
- See Also:
- Constant Field Values
-
existsHttps
private final String existsHttps
-
existsHttp
private final String existsHttp
-
client
private org.apache.http.client.HttpClient client
-
params
private HttpClientSecurityParameters params
-
handler
private HttpClientSecurityContextHandler handler
-
-
Method Detail
-
setupClient
@BeforeClass public void setupClient() throws Exception
- Throws:
Exception
-
setUp
@BeforeMethod public void setUp() throws ComponentInitializationException
- Throws:
ComponentInitializationException
-
testNoSecurityAdded
public void testNoSecurityAdded() throws IOException, ComponentInitializationException
-
testHostnameRejected
public void testHostnameRejected() throws IOException, ComponentInitializationException
-
testBadSSLProtocol
public void testBadSSLProtocol() throws IOException, ComponentInitializationException
-
-