Java Doc for HttpsClient.java in  » Portal » Open-Portal » com » sun » portal » rproxy » https » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.portal.rproxy.https 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.portal.rproxy.https.HttpsClient

HttpsClient
final public class HttpsClient extends HttpClient (Code)
This class provides HTTPS client URL support, building on the standard "sun.net.www" HTTP protocol handler. HTTPS is the same protocol as HTTP, but differs in the transport layer which it uses:
  • There's a Secure Sockets Layer between TCP and the HTTP protocol code.
  • It uses a different default TCP port.
  • It doesn't use application level proxies, which can see and manipulate HTTP user level data, compromising privacy. It uses low level tunneling instead, which hides HTTP protocol and data from all third parties. (Traffic analysis is still possible).
  • It does basic server authentication, to protect against "URL spoofing" attacks. This involves deciding whether the X.509 certificate chain identifying the server is trusted, and verifying that the name of the server is found in the certificate. (The application may enable an anonymous SSL cipher suite, and such checks are not done for anonymous ciphers.)
  • It exposes key SSL session attributes, specifically the cipher suite in use and the server's X509 certificates, to application software which knows about this protocol handler.

System properties used include:

  • https.proxyHost ... the host supporting SSL tunneling using the conventional CONNECT syntax
  • https.proxyPort ... port to use on proxyHost
  • https.cipherSuites ... comma separated list of SSL cipher suite names to enable.
  • http.nonProxyHosts ...

version:
   1.24
author:
   David Brownell
author:
   Bill Foote


Field Summary
public static  intjssProxyPort
    

Constructor Summary
public  HttpsClient(URL url)
     Create an HTTPS client URL.

Method Summary
public static  HttpClientNew(URL url)
     See HttpClient for the model for this method.
protected  SocketdoConnect(String host, int port)
     Overrides HTTP protocol handler method so that we return an SSL socket, not a TCP socket.
public  StringgetCipherSuite()
     Returns the cipher suite in use on this connection.
protected  intgetDefaultPort()
    
public  X509Certificate[]getServerCertificateChain()
     Returns the X.509 certificate chain with which the server authenticated itself, or null if the server did not authenticate.
protected  booleanisNonProxyHost()
     Returns true if host is on the "don't proxy" list.
public static synchronized  voidresetSecureProperties()
     Re-initialize the dontProxy list, and other properties we depend on.

Field Detail
jssProxyPort
public static int jssProxyPort(Code)




Constructor Detail
HttpsClient
public HttpsClient(URL url) throws IOException(Code)
Create an HTTPS client URL. Traffic will be tunneled through any intermediate nodes rather than proxied, so that confidentiality of data exchanged can be preserved. However, note that all the anonymous SSL flavors are subject to "person-in-the-middle" attacks against confidentiality. If you enable use of those flavors, you may be giving up the protection you get through SSL tunneling.
Parameters:
  URL - https URL with which a connection must be established




Method Detail
New
public static HttpClient New(URL url) throws IOException(Code)
See HttpClient for the model for this method.



doConnect
protected Socket doConnect(String host, int port) throws IOException, UnknownHostException(Code)
Overrides HTTP protocol handler method so that we return an SSL socket, not a TCP socket. This establishes a secure tunnel if appropriate.
Parameters:
  host - the host to connect to
Parameters:
  port - the port on that host.
exception:
  IOException - on errors including a host doesn't authenicate corectly.
exception:
  UnknownHostException - if "host" is unknown



getCipherSuite
public String getCipherSuite()(Code)
Returns the cipher suite in use on this connection.



getDefaultPort
protected int getDefaultPort()(Code)
Returns the default HTTPS port (443)



getServerCertificateChain
public X509Certificate[] getServerCertificateChain()(Code)
Returns the X.509 certificate chain with which the server authenticated itself, or null if the server did not authenticate.



isNonProxyHost
protected boolean isNonProxyHost()(Code)
Returns true if host is on the "don't proxy" list.



resetSecureProperties
public static synchronized void resetSecureProperties()(Code)
Re-initialize the dontProxy list, and other properties we depend on.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.