org.jasig.cas.client.ssl
Class HttpsURLConnectionFactory
java.lang.Object
org.jasig.cas.client.ssl.HttpsURLConnectionFactory
- All Implemented Interfaces:
- HttpURLConnectionFactory
public final class HttpsURLConnectionFactory
- extends Object
- implements HttpURLConnectionFactory
An implementation of the HttpURLConnectionFactory whose responsible to configure
the underlying https connection, if needed, with a given hostname and SSL socket factory based on the
configuration provided.
- Since:
- 3.3
- Author:
- Misagh Moayyed
- See Also:
setHostnameVerifier(HostnameVerifier),
setSSLConfiguration(Properties)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpsURLConnectionFactory
public HttpsURLConnectionFactory()
HttpsURLConnectionFactory
public HttpsURLConnectionFactory(HostnameVerifier verifier,
Properties config)
setSSLConfiguration
public final void setSSLConfiguration(Properties config)
setHostnameVerifier
public final void setHostnameVerifier(HostnameVerifier verifier)
- Set the host name verifier for the https connection received.
- See Also:
AnyHostnameVerifier,
RegexHostnameVerifier,
WhitelistHostnameVerifier
buildHttpURLConnection
public HttpURLConnection buildHttpURLConnection(URLConnection url)
- Description copied from interface:
HttpURLConnectionFactory
- Receives a
URLConnection instance typically as a result of a URL
opening a connection to a remote resource. The received url connection is then
configured and prepared appropriately depending on its type and is then returned to the caller
to accommodate method chaining.
- Specified by:
buildHttpURLConnection in interface HttpURLConnectionFactory
- Parameters:
url - The url connection that needs to be configured
- Returns:
- The configured
HttpURLConnection instance - See Also:
HttpsURLConnectionFactory}
Copyright © 2006-2014 Jasig. All Rights Reserved.