Save This Page
Home » apache-harmony-6.0-src-r917296-snapshot » javax » net » ssl » [javadoc | source]
javax.net.ssl
abstract public class: HttpsURLConnection [javadoc | source]
java.lang.Object
   java.net.URLConnection
      java.net.HttpURLConnection
         javax.net.ssl.HttpsURLConnection
This abstract subclass of {@code HttpURLConnection} defines methods for managing HTTPS connections according to the description given by RFC 2818.
Field Summary
protected  HostnameVerifier hostnameVerifier    The host name verifier used by this connection. It is initialized from the default hostname verifier #setDefaultHostnameVerifier(HostnameVerifier) or #getDefaultHostnameVerifier()
Fields inherited from java.net.HttpURLConnection:
method,  responseCode,  responseMessage,  instanceFollowRedirects,  chunkLength,  fixedContentLength,  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_IMPLEMENTED,  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_USE_PROXY,  HTTP_UNAUTHORIZED,  HTTP_UNSUPPORTED_TYPE,  HTTP_UNAVAILABLE,  HTTP_VERSION
Fields inherited from java.net.URLConnection:
url,  defaultHandler,  ifModifiedSince,  useCaches,  connected,  doOutput,  doInput,  allowUserInteraction,  contentHandlers
Constructor:
 protected HttpsURLConnection(URL url) 
    Creates a new {@code HttpsURLConnection} with the specified {@code URL}.
    Parameters:
    url - the {@code URL} to connect to.
Method from javax.net.ssl.HttpsURLConnection Summary:
getCipherSuite,   getDefaultHostnameVerifier,   getDefaultSSLSocketFactory,   getHostnameVerifier,   getLocalCertificates,   getLocalPrincipal,   getPeerPrincipal,   getSSLSocketFactory,   getServerCertificates,   setDefaultHostnameVerifier,   setDefaultSSLSocketFactory,   setHostnameVerifier,   setSSLSocketFactory
Methods from java.net.HttpURLConnection:
disconnect,   getErrorStream,   getFollowRedirects,   getHeaderFieldDate,   getInstanceFollowRedirects,   getPermission,   getRequestMethod,   getResponseCode,   getResponseMessage,   setChunkedStreamingMode,   setFixedLengthStreamingMode,   setFollowRedirects,   setInstanceFollowRedirects,   setRequestMethod,   usingProxy
Methods from java.net.URLConnection:
addRequestProperty,   connect,   getAllowUserInteraction,   getConnectTimeout,   getContent,   getContent,   getContentEncoding,   getContentLength,   getContentType,   getDate,   getDefaultAllowUserInteraction,   getDefaultRequestProperty,   getDefaultUseCaches,   getDoInput,   getDoOutput,   getExpiration,   getFileNameMap,   getHeaderField,   getHeaderField,   getHeaderFieldDate,   getHeaderFieldInt,   getHeaderFieldKey,   getHeaderFields,   getIfModifiedSince,   getInputStream,   getLastModified,   getOutputStream,   getPermission,   getReadTimeout,   getRequestProperties,   getRequestProperty,   getURL,   getUseCaches,   guessContentTypeFromName,   guessContentTypeFromStream,   setAllowUserInteraction,   setConnectTimeout,   setContentHandlerFactory,   setDefaultAllowUserInteraction,   setDefaultRequestProperty,   setDefaultUseCaches,   setDoInput,   setDoOutput,   setFileNameMap,   setIfModifiedSince,   setReadTimeout,   setRequestProperty,   setUseCaches,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.net.ssl.HttpsURLConnection Detail:
 abstract public String getCipherSuite()
    Returns the name of the cipher suite negotiated during the SSL handshake.
 public static HostnameVerifier getDefaultHostnameVerifier() 
    Returns the default hostname verifier.
 public static SSLSocketFactory getDefaultSSLSocketFactory() 
    Returns the default SSL socket factory for new instances.
 public HostnameVerifier getHostnameVerifier() 
    Returns the hostname verifier used by this instance.
 abstract public Certificate[] getLocalCertificates()
    Returns the list of local certificates used during the handshake. These certificates were sent to the peer.
 public Principal getLocalPrincipal() 
    Returns the {@code Principal} used to identify the local host during the handshake.
 public Principal getPeerPrincipal() throws SSLPeerUnverifiedException 
    Returns the {@code Principal} identifying the peer.
 public SSLSocketFactory getSSLSocketFactory() 
    Returns the SSL socket factory used by this instance.
 abstract public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException
    Return the list of certificates identifying the peer during the handshake.
 public static  void setDefaultHostnameVerifier(HostnameVerifier v) 
    Sets the default hostname verifier to be used by new instances.
 public static  void setDefaultSSLSocketFactory(SSLSocketFactory sf) 
    Sets the default SSL socket factory to be used by new instances.
 public  void setHostnameVerifier(HostnameVerifier v) 
    Sets the hostname verifier for this instance.
 public  void setSSLSocketFactory(SSLSocketFactory sf) 
    Sets the SSL socket factory for this instance.