Java Doc for SSLEngineImpl.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) 


java.lang.Object
   javax.net.ssl.SSLEngine
      org.apache.harmony.xnet.provider.jsse.SSLEngineImpl

SSLEngineImpl
public class SSLEngineImpl extends SSLEngine (Code)
Implementation of SSLEngine.
See Also:   javax.net.ssl.SSLEngine
See Also:    class documentation for more information.


Field Summary
protected  SSLRecordProtocolrecordProtocol
    
protected  SSLParameterssslParameters
    

Constructor Summary
protected  SSLEngineImpl(SSLParameters sslParameters)
    
protected  SSLEngineImpl(String host, int port, SSLParameters sslParameters)
    

Method Summary
public  voidbeginHandshake()
     Starts the handshake.
public  voidcloseInbound()
    
public  voidcloseOutbound()
    
public  RunnablegetDelegatedTask()
    
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  SSLEngineResult.HandshakeStatusgetHandshakeStatus()
     This method works according to the specification of implemented class.
public  booleangetNeedClientAuth()
     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()
     Returns names of supported cipher suites.
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.
public  booleanisInboundDone()
     This method works according to the specification of implemented class.
public  booleanisOutboundDone()
     This method works according to the specification of implemented class.
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  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  SSLEngineResultunwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length)
     Decodes one complete SSL/TLS record provided in the source buffer.
public  SSLEngineResultwrap(ByteBuffer[] srcs, int offset, int len, ByteBuffer dst)
     Encodes the application data into SSL/TLS record.

Field Detail
recordProtocol
protected SSLRecordProtocol recordProtocol(Code)



sslParameters
protected SSLParameters sslParameters(Code)




Constructor Detail
SSLEngineImpl
protected SSLEngineImpl(SSLParameters sslParameters)(Code)
Ctor sslParameters: SSLParameters



SSLEngineImpl
protected SSLEngineImpl(String host, int port, SSLParameters sslParameters)(Code)
Ctor host: String port: int sslParameters: SSLParameters




Method Detail
beginHandshake
public void beginHandshake() throws SSLException(Code)
Starts the handshake.
throws:
  SSLException -
See Also:   javax.net.ssl.SSLEngine.beginHandshake
See Also:    method documentation
See Also:   for more information



closeInbound
public void closeInbound() throws SSLException(Code)
Closes inbound operations of this engine
throws:
  SSLException -
See Also:   javax.net.ssl.SSLEngine.closeInbound
See Also:    method documentation
See Also:   for more information



closeOutbound
public void closeOutbound()(Code)
Closes outbound operations of this engine
See Also:   javax.net.ssl.SSLEngine.closeOutbound
See Also:    method documentation
See Also:   for more information



getDelegatedTask
public Runnable getDelegatedTask()(Code)
Returns handshake's delegated tasks to be run the delegated task to be executed.
See Also:   javax.net.ssl.SSLEngine.getDelegatedTask
See Also:    method documentation
See Also:   for more information



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



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



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



getHandshakeStatus
public SSLEngineResult.HandshakeStatus getHandshakeStatus()(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLEngine.getHandshakeStatus
See Also:    method
See Also:   documentation for more information



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



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



getSupportedCipherSuites
public String[] getSupportedCipherSuites()(Code)
Returns names of supported cipher suites. array of strings containing the names of supported cipher suites
See Also:   javax.net.ssl.SSLEngine.getSupportedCipherSuites
See Also:    method
See Also:   documentation for more information



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



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



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



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



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



setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLEngine.setEnableSessionCreation(boolean)
See Also:    method
See Also:   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.SSLEngine.setEnabledCipherSuites(String)
See Also:    method
See Also:   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.SSLEngine.setEnabledProtocols(String)
See Also:    method
See Also:   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.SSLEngine.setNeedClientAuth(boolean)
See Also:    method
See Also:   documentation for more information



setUseClientMode
public void setUseClientMode(boolean mode)(Code)
This method works according to the specification of implemented class.
See Also:   javax.net.ssl.SSLEngine.setUseClientMode(boolean)
See Also:    method
See Also:   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.SSLEngine.setWantClientAuth(boolean)
See Also:    method
See Also:   documentation for more information



unwrap
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) throws SSLException(Code)
Decodes one complete SSL/TLS record provided in the source buffer. If decoded record contained application data, this data will be placed in the destination buffers. For more information about TLS record fragmentation see TLS v 1 specification (http://www.ietf.org/rfc/rfc2246.txt) p 6.2.
Parameters:
  src - source buffer containing SSL/TLS record.
Parameters:
  dsts - destination buffers to place received application data.
See Also:   javax.net.ssl.SSLEngine.unwrap(ByteBufferByteBuffer[]intint)
See Also:   method documentation for more information



wrap
public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int len, ByteBuffer dst) throws SSLException(Code)
Encodes the application data into SSL/TLS record. If handshake status of the engine differs from NOT_HANDSHAKING the operation can work without consuming of the source data. For more information about TLS record fragmentation see TLS v 1 specification (http://www.ietf.org/rfc/rfc2246.txt) p 6.2.
Parameters:
  srcs - the source buffers with application data to be encodedinto SSL/TLS record.
Parameters:
  offset - the offset in the destination buffers array pointing tothe first buffer with the source data.
Parameters:
  len - specifies the maximum number of buffers to be procesed.
Parameters:
  dst - the destination buffer where encoded data will be placed.
See Also:   javax.net.ssl.SSLEngine.wrap(ByteBuffer[]intintByteBuffer)
See Also:    method
See Also:   documentation for more information



Methods inherited from javax.net.ssl.SSLEngine
abstract public void beginHandshake() throws SSLException(Code)(Java Doc)
abstract public void closeInbound() throws SSLException(Code)(Java Doc)
abstract public void closeOutbound()(Code)(Java Doc)
abstract public Runnable getDelegatedTask()(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 SSLEngineResult.HandshakeStatus getHandshakeStatus()(Code)(Java Doc)
abstract public boolean getNeedClientAuth()(Code)(Java Doc)
public String getPeerHost()(Code)(Java Doc)
public int getPeerPort()(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 boolean isInboundDone()(Code)(Java Doc)
abstract public boolean isOutboundDone()(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)
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst) throws SSLException(Code)(Java Doc)
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts) throws SSLException(Code)(Java Doc)
abstract public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) throws SSLException(Code)(Java Doc)
public SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst) throws SSLException(Code)(Java Doc)
public SSLEngineResult wrap(ByteBuffer[] srcs, ByteBuffer dst) throws SSLException(Code)(Java Doc)
abstract public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) throws SSLException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.