Java Doc for SSLSocketImpl.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » xnet » provider » jsse » 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 » Apache Harmony Java SE » org package » org.apache.harmony.xnet.provider.jsse 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.net.ssl.SSLSocket
   org.apache.harmony.xnet.provider.jsse.SSLSocketImpl

All known Subclasses:   org.apache.harmony.xnet.provider.jsse.SSLSocketWrapper,
SSLSocketImpl
public class SSLSocketImpl extends SSLSocket (Code)
SSLSocket implementation.
See Also:   javax.net.ssl.SSLSocket
See Also:    class documentation for more information.


Field Summary
protected  InputStreaminput
    
protected  OutputStreamoutput
    
protected  SSLRecordProtocolrecordProtocol
    
protected  SSLParameterssslParameters
    

Constructor Summary
protected  SSLSocketImpl(SSLParameters sslParameters)
    
protected  SSLSocketImpl(String host, int port, SSLParameters sslParameters)
    
protected  SSLSocketImpl(String host, int port, InetAddress localHost, int localPort, SSLParameters sslParameters)
    
protected  SSLSocketImpl(InetAddress host, int port, SSLParameters sslParameters)
    
protected  SSLSocketImpl(InetAddress address, int port, InetAddress localAddress, int localPort, SSLParameters sslParameters)
    

Method Summary
public  voidaddHandshakeCompletedListener(HandshakeCompletedListener listener)
     This method works according to the specification of implemented class.
public  voidclose()
     This method works according to the specification of implemented class.
protected  voidcloseTransportLayer()
     Closes the transport data streams.
public  voidconnect(SocketAddress endpoint)
     This method works according to the specification of implemented class.
public  voidconnect(SocketAddress endpoint, int timeout)
     This method works according to the specification of implemented class.
public  booleangetEnableSessionCreation()
     This method works according to the specification of implemented class.
public  String[]getEnabledCipherSuites()
     This method works according to the specification of implemented class.
public  String[]getEnabledProtocols()
     This method works according to the specification of implemented class.
public  InputStreamgetInputStream()
     This method works according to the specification of implemented class.
public  booleangetNeedClientAuth()
     This method works according to the specification of implemented class.
public  OutputStreamgetOutputStream()
     This method works according to the specification of implemented class.
public  SSLSessiongetSession()
     This method works according to the specification of implemented class.
public  String[]getSupportedCipherSuites()
     This method works according to the specification of implemented class.
public  String[]getSupportedProtocols()
     This method works according to the specification of implemented class.
public  booleangetUseClientMode()
     This method works according to the specification of implemented class.
public  booleangetWantClientAuth()
     This method works according to the specification of implemented class.
protected  voidinit()
     Initialize the SSL socket.
protected  voidinitTransportLayer()
     Initialize the transport data streams.
protected  voidneedAppData()
     This method is called by SSLSocketInputStream class when client application tryes to read application data from the stream, but there is no data in its underlying buffer.
public  voidremoveHandshakeCompletedListener(HandshakeCompletedListener listener)
     This method works according to the specification of implemented class.
public  voidsendUrgentData(int data)
     This method is not supported for SSLSocket implementation.
public  voidsetEnableSessionCreation(boolean flag)
     This method works according to the specification of implemented class.
public  voidsetEnabledCipherSuites(String[] suites)
     This method works according to the specification of implemented class.
public  voidsetEnabledProtocols(String[] protocols)
     This method works according to the specification of implemented class.
public  voidsetNeedClientAuth(boolean need)
     This method works according to the specification of implemented class.
public  voidsetOOBInline(boolean on)
     This method is not supported for SSLSocket implementation.
public  voidsetUseClientMode(boolean mode)
     This method works according to the specification of implemented class.
public  voidsetWantClientAuth(boolean want)
     This method works according to the specification of implemented class.
public  voidshutdownInput()
     This method is not supported for SSLSocket implementation.
public  voidshutdownOutput()
     This method is not supported for SSLSocket implementation.
public  voidstartHandshake()
     Performs the handshake process over the SSL/TLS connection as described in rfc 2246, TLS v1 specification http://www.ietf.org/rfc/rfc2246.txt.
public  StringtoString()
     Returns the string representation of the object.
protected  voidwriteAppData(byte[] data, int offset, int len)
     This method is called by SSLSocketOutputStream when client application tryes to send the data over ssl protocol.

Field Detail
input
protected InputStream input(Code)



output
protected OutputStream output(Code)



recordProtocol
protected SSLRecordProtocol recordProtocol(Code)



sslParameters
protected SSLParameters sslParameters(Code)




Constructor Detail
SSLSocketImpl
protected SSLSocketImpl(SSLParameters sslParameters)(Code)
Constructor sslParameters: SSLParameters
See Also:   javax.net.ssl.SSLSocket.SSLSocket
See Also:    method documentation
See Also:   for more information.



SSLSocketImpl
protected SSLSocketImpl(String host, int port, SSLParameters sslParameters) throws IOException, UnknownHostException(Code)
Constructor host: String port: int sslParameters: SSLParameters
throws:
  IOException -
throws:
  UnknownHostException -
See Also:   javax.net.ssl.SSLSocket.SSLSocket(Stringint)
See Also:   
See Also:   method documentation for more information.



SSLSocketImpl
protected SSLSocketImpl(String host, int port, InetAddress localHost, int localPort, SSLParameters sslParameters) throws IOException, UnknownHostException(Code)
Constructor host: String port: int localHost: InetAddress localPort: int sslParameters: SSLParameters
throws:
  IOException -
throws:
  UnknownHostException -
See Also:   javax.net.ssl.SSLSocket.SSLSocket(StringintInetAddressint)
See Also:   method documentation for more information.



SSLSocketImpl
protected SSLSocketImpl(InetAddress host, int port, SSLParameters sslParameters) throws IOException(Code)
Constructor host: InetAddress port: int sslParameters: SSLParameters
throws:
  IOException -
See Also:   javax.net.ssl.SSLSocket.SSLSocket(InetAddressint)
See Also:   
See Also:   method documentation for more information.



SSLSocketImpl
protected SSLSocketImpl(InetAddress address, int port, InetAddress localAddress, int localPort, SSLParameters sslParameters) throws IOException(Code)
Constructor address: InetAddress port: int localAddress: InetAddress localPort: int sslParameters: SSLParameters
throws:
  IOException -
See Also:   javax.net.ssl.SSLSocket.SSLSocket(InetAddressintInetAddressint)
See Also:   method documentation for more information.




Method Detail
addHandshakeCompletedListener
public void addHandshakeCompletedListener(HandshakeCompletedListener listener)(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.addHandshakeCompletedListener(HandshakeCompletedListener)
See Also:   method documentation for more information



close
public void close() throws IOException(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.close
See Also:   method documentation for more information



closeTransportLayer
protected void closeTransportLayer() throws IOException(Code)
Closes the transport data streams.



connect
public void connect(SocketAddress endpoint) throws IOException(Code)
This method works according to the specification of implemented class.
See Also:   java.net.Socket.connect(SocketAddress)
See Also:   method documentation for more information



connect
public void connect(SocketAddress endpoint, int timeout) throws IOException(Code)
This method works according to the specification of implemented class.
See Also:   java.net.Socket.connect(SocketAddressint)
See Also:   method documentation for more information



getEnableSessionCreation
public boolean getEnableSessionCreation()(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.getEnableSessionCreation
See Also:   method documentation for more information



getEnabledCipherSuites
public String[] getEnabledCipherSuites()(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.getEnabledCipherSuites
See Also:   method documentation for more information



getEnabledProtocols
public String[] getEnabledProtocols()(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.getEnabledProtocols
See Also:   method documentation for more information



getInputStream
public InputStream getInputStream() throws IOException(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.getInputStream
See Also:   method documentation for more information



getNeedClientAuth
public boolean getNeedClientAuth()(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.getNeedClientAuth
See Also:   method documentation for more information



getOutputStream
public OutputStream getOutputStream() throws IOException(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.getOutputStream
See Also:   method documentation for more information



getSession
public SSLSession getSession()(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.getSession
See Also:   method documentation for more information



getSupportedCipherSuites
public String[] getSupportedCipherSuites()(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.getSupportedCipherSuites
See Also:   method documentation for more information



getSupportedProtocols
public String[] getSupportedProtocols()(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.getSupportedProtocols
See Also:   method documentation for more information



getUseClientMode
public boolean getUseClientMode()(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.getUseClientMode
See Also:   method documentation for more information



getWantClientAuth
public boolean getWantClientAuth()(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.getWantClientAuth
See Also:   method documentation for more information



init
protected void init() throws IOException(Code)
Initialize the SSL socket.



initTransportLayer
protected void initTransportLayer() throws IOException(Code)
Initialize the transport data streams.



needAppData
protected void needAppData() throws IOException(Code)
This method is called by SSLSocketInputStream class when client application tryes to read application data from the stream, but there is no data in its underlying buffer.
throws:
  IOException -



removeHandshakeCompletedListener
public void removeHandshakeCompletedListener(HandshakeCompletedListener listener)(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.removeHandshakeCompletedListener(HandshakeCompletedListener)
See Also:   method documentation for more information



sendUrgentData
public void sendUrgentData(int data) throws IOException(Code)
This method is not supported for SSLSocket implementation.



setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.setEnableSessionCreation(boolean)
See Also:   method documentation for more information



setEnabledCipherSuites
public void setEnabledCipherSuites(String[] suites)(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.setEnabledCipherSuites(String[])
See Also:   method documentation for more information



setEnabledProtocols
public void setEnabledProtocols(String[] protocols)(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.setEnabledProtocols(String[])
See Also:   method documentation for more information



setNeedClientAuth
public void setNeedClientAuth(boolean need)(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.setNeedClientAuth(boolean)
See Also:   method documentation for more information



setOOBInline
public void setOOBInline(boolean on) throws SocketException(Code)
This method is not supported for SSLSocket implementation.



setUseClientMode
public void setUseClientMode(boolean mode)(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.setUseClientMode(boolean)
See Also:   method documentation for more information



setWantClientAuth
public void setWantClientAuth(boolean want)(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.setWantClientAuth(boolean)
See Also:   method documentation for more information



shutdownInput
public void shutdownInput()(Code)
This method is not supported for SSLSocket implementation.



shutdownOutput
public void shutdownOutput()(Code)
This method is not supported for SSLSocket implementation.



startHandshake
public void startHandshake() throws IOException(Code)
Performs the handshake process over the SSL/TLS connection as described in rfc 2246, TLS v1 specification http://www.ietf.org/rfc/rfc2246.txt. If the initial handshake has been already done, this method initiates rehandshake. This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLSocket.startHandshake
See Also:   method documentation for more information



toString
public String toString()(Code)
Returns the string representation of the object.



writeAppData
protected void writeAppData(byte[] data, int offset, int len) throws IOException(Code)
This method is called by SSLSocketOutputStream when client application tryes to send the data over ssl protocol.



Methods inherited from javax.net.ssl.SSLSocket
abstract public void addHandshakeCompletedListener(HandshakeCompletedListener listener)(Code)(Java Doc)
abstract public boolean getEnableSessionCreation()(Code)(Java Doc)
abstract public String[] getEnabledCipherSuites()(Code)(Java Doc)
abstract public String[] getEnabledProtocols()(Code)(Java Doc)
abstract public boolean getNeedClientAuth()(Code)(Java Doc)
public SSLParameters getSSLParameters()(Code)(Java Doc)
abstract public SSLSession getSession()(Code)(Java Doc)
abstract public String[] getSupportedCipherSuites()(Code)(Java Doc)
abstract public String[] getSupportedProtocols()(Code)(Java Doc)
abstract public boolean getUseClientMode()(Code)(Java Doc)
abstract public boolean getWantClientAuth()(Code)(Java Doc)
abstract public void removeHandshakeCompletedListener(HandshakeCompletedListener listener)(Code)(Java Doc)
abstract public void setEnableSessionCreation(boolean flag)(Code)(Java Doc)
abstract public void setEnabledCipherSuites(String suites)(Code)(Java Doc)
abstract public void setEnabledProtocols(String protocols)(Code)(Java Doc)
abstract public void setNeedClientAuth(boolean need)(Code)(Java Doc)
public void setSSLParameters(SSLParameters params)(Code)(Java Doc)
abstract public void setUseClientMode(boolean mode)(Code)(Java Doc)
abstract public void setWantClientAuth(boolean want)(Code)(Java Doc)
abstract public void startHandshake() throws IOException(Code)(Java Doc)

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