org.jasig.cas.client.ssl
Class HttpsURLConnectionFactory
java.lang.Object
org.jasig.cas.client.ssl.HttpsURLConnectionFactory
- All Implemented Interfaces:
- Serializable, 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),
Serialized Form
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}
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2006-2015 Jasig. All Rights Reserved.