com.sun.net.ssl
Class HttpsURLConnection

java.lang.Object
  |
  +--java.net.URLConnection
        |
        +--java.net.HttpURLConnection
              |
              +--com.sun.net.ssl.HttpsURLConnection

public abstract class HttpsURLConnection
extends java.net.HttpURLConnection

HTTP URL connection with support for HTTPS-specific features. See the spec for details.


Field Summary
protected  HostnameVerifier hostnameVerifier
           
protected  SSLSocketFactory sslSocketFactory
           
 
Fields inherited from class java.net.HttpURLConnection
HTTP_ACCEPTED, HTTP_BAD_GATEWAY, HTTP_BAD_METHOD, HTTP_BAD_REQUEST, HTTP_CLIENT_TIMEOUT, HTTP_CONFLICT, HTTP_CREATED, HTTP_ENTITY_TOO_LARGE, HTTP_FORBIDDEN, HTTP_GATEWAY_TIMEOUT, HTTP_GONE, HTTP_INTERNAL_ERROR, HTTP_LENGTH_REQUIRED, HTTP_MOVED_PERM, HTTP_MOVED_TEMP, HTTP_MULT_CHOICE, HTTP_NO_CONTENT, HTTP_NOT_ACCEPTABLE, HTTP_NOT_AUTHORITATIVE, HTTP_NOT_FOUND, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_PARTIAL, HTTP_PAYMENT_REQUIRED, HTTP_PRECON_FAILED, HTTP_PROXY_AUTH, HTTP_REQ_TOO_LONG, HTTP_RESET, HTTP_SEE_OTHER, HTTP_SERVER_ERROR, HTTP_UNAUTHORIZED, HTTP_UNAVAILABLE, HTTP_UNSUPPORTED_TYPE, HTTP_USE_PROXY, HTTP_VERSION, method, responseCode, responseMessage
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
HttpsURLConnection(java.net.URL url)
           
 
Method Summary
abstract  java.lang.String getCipherSuite()
          Returns the cipher suite in use on this connection.
static HostnameVerifier getDefaultHostnameVerifier()
          Gets the default HostnameVerifier.
static SSLSocketFactory getDefaultSSLSocketFactory()
          Gets the default SSL socket factory.
 HostnameVerifier getHostnameVerifier()
          Gets the HostnameVerifier.
abstract  X509Certificate[] getServerCertificateChain()
          Returns the server's X.509 certificate chain, or null if the server did not authenticate.
 SSLSocketFactory getSSLSocketFactory()
          Gets the SSL socket factory.
static void setDefaultHostnameVerifier(HostnameVerifier v)
          Sets the default HostnameVerifier inherited when an instance of this class is created.
static void setDefaultSSLSocketFactory(SSLSocketFactory sf)
          Sets the default SSL socket factory inherited when an instance of this class is created.
 void setHostnameVerifier(HostnameVerifier v)
          Sets the HostnameVerifier.
 void setSSLSocketFactory(SSLSocketFactory v)
          Sets the SSL socket factory.
 
Methods inherited from class java.net.HttpURLConnection
disconnect, getErrorStream, getFollowRedirects, getPermission, getRequestMethod, getResponseCode, getResponseMessage, setFollowRedirects, setRequestMethod, usingProxy
 
Methods inherited from class java.net.URLConnection
connect, getAllowUserInteraction, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hostnameVerifier

protected HostnameVerifier hostnameVerifier

sslSocketFactory

protected SSLSocketFactory sslSocketFactory
Constructor Detail

HttpsURLConnection

public HttpsURLConnection(java.net.URL url)
                   throws java.io.IOException
Method Detail

getCipherSuite

public abstract java.lang.String getCipherSuite()
Returns the cipher suite in use on this connection.

getServerCertificateChain

public abstract X509Certificate[] getServerCertificateChain()
Returns the server's X.509 certificate chain, or null if the server did not authenticate.

setDefaultHostnameVerifier

public static void setDefaultHostnameVerifier(HostnameVerifier v)
Sets the default HostnameVerifier inherited when an instance of this class is created.

getDefaultHostnameVerifier

public static HostnameVerifier getDefaultHostnameVerifier()
Gets the default HostnameVerifier.

setHostnameVerifier

public void setHostnameVerifier(HostnameVerifier v)
Sets the HostnameVerifier.

getHostnameVerifier

public HostnameVerifier getHostnameVerifier()
Gets the HostnameVerifier.

setDefaultSSLSocketFactory

public static void setDefaultSSLSocketFactory(SSLSocketFactory sf)
Sets the default SSL socket factory inherited when an instance of this class is created.

getDefaultSSLSocketFactory

public static SSLSocketFactory getDefaultSSLSocketFactory()
Gets the default SSL socket factory.

setSSLSocketFactory

public void setSSLSocketFactory(SSLSocketFactory v)
Sets the SSL socket factory.

getSSLSocketFactory

public SSLSocketFactory getSSLSocketFactory()
Gets the SSL socket factory.