java.lang.Object
java.net.URLConnection
java.net.HttpURLConnection
javax.net.ssl.HttpsURLConnection
- See Also:
- Top Examples, Source Code
public abstract String getCipherSuite()
- See Also:
- IllegalStateException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static HostnameVerifier getDefaultHostnameVerifier()
- See Also:
setDefaultHostnameVerifier(HostnameVerifier)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static SSLSocketFactory getDefaultSSLSocketFactory()
- See Also:
setDefaultSSLSocketFactory(SSLSocketFactory)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public HostnameVerifier getHostnameVerifier()
- See Also:
setDefaultHostnameVerifier(HostnameVerifier)
, setHostnameVerifier(HostnameVerifier)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public abstract Certificate[] getLocalCertificates()
- See Also:
getLocalPrincipal()
, IllegalStateException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Principal getLocalPrincipal()
- See Also:
getPeerPrincipal()
, getLocalCertificates()
, IllegalStateException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Principal getPeerPrincipal()
throws SSLPeerUnverifiedException
- See Also:
getLocalPrincipal()
, getServerCertificates()
, IllegalStateException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public abstract Certificate[] getServerCertificates()
throws SSLPeerUnverifiedException
- See Also:
getPeerPrincipal()
, IllegalStateException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public SSLSocketFactory getSSLSocketFactory()
- See Also:
setSSLSocketFactory(SSLSocketFactory)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected HostnameVerifier hostnameVerifier
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected HttpsURLConnection(URL url)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[141]Open https connection
By andres_a { at } terra { dot } es on 2005/02/17 05:37:04 Rate
URL link = new URL ( "https://ri2.rois.com:443/cgi-bin/GetSessionId.cgi?cmd=get_session_id&uid=123&uip=1.1.1.1&gid=111" ) ;
HttpsURLConnection conn = ( HttpsURLConnection ) link.openConnection ( ) ;
public static void setDefaultHostnameVerifier(HostnameVerifier v)
- See Also:
getDefaultHostnameVerifier()
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void setDefaultSSLSocketFactory(SSLSocketFactory sf)
- See Also:
getDefaultSSLSocketFactory()
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setHostnameVerifier(HostnameVerifier v)
- See Also:
setDefaultHostnameVerifier(HostnameVerifier)
, getHostnameVerifier()
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1292]Verify https hostname
By Anonymous on 2005/02/03 15:57:35 Rate
// 1.4.x with jsse embedded
URL url = new URL ( urlString ) ;
HttpsURLConnection con = ( HttpsURLConnection ) url.openConnection ( ) ;
con.setHostnameVerifier ( new HostnameVerifier ( ) {
public boolean verify ( String hostname, SSLSession session )
{
// I don't care if the certificate doesn't match host name
return true;
}
} ) ;
// set up url connection to get retrieve information back
con.setRequestMethod ( "GET" ) ;
con.setDoInput ( true ) ;
public void setSSLSocketFactory(SSLSocketFactory sf)
- See Also:
getSSLSocketFactory()
, IllegalArgumentException, setDefaultSSLSocketFactory
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples