Java Doc for AlertProtocol.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
   org.apache.harmony.xnet.provider.jsse.AlertProtocol

AlertProtocol
public class AlertProtocol (Code)
This class encapsulates the functionality of Alert Protocol. Constant values are taken according to the TLS v1 specification (http://www.ietf.org/rfc/rfc2246.txt), p 7.2.


Field Summary
final protected static  byteACCESS_DENIED
    
final protected static  byteBAD_CERTIFICATE
    
final protected static  byteBAD_RECORD_MAC
    
final protected static  byteCERTIFICATE_EXPIRED
    
final protected static  byteCERTIFICATE_REVOKED
    
final protected static  byteCERTIFICATE_UNKNOWN
    
final protected static  byteCLOSE_NOTIFY
    
final protected static  byteDECODE_ERROR
    
final protected static  byteDECOMPRESSION_FAILURE
    
final protected static  byteDECRYPTION_FAILED
    
final protected static  byteDECRYPT_ERROR
    
final protected static  byteEXPORT_RESTRICTION
    
final protected static  byteFATAL
    
final protected static  byteHANDSHAKE_FAILURE
    
final protected static  byteILLEGAL_PARAMETER
    
final protected static  byteINSUFFICIENT_SECURITY
    
final protected static  byteINTERNAL_ERROR
    
final protected static  byteNO_RENEGOTIATION
    
final protected static  bytePROTOCOL_VERSION
    
final protected static  byteRECORD_OVERFLOW
    
final protected static  byteUNEXPECTED_MESSAGE
    
final protected static  byteUNKNOWN_CA
    
final protected static  byteUNSUPPORTED_CERTIFICATE
    
final protected static  byteUSER_CANCELED
    
final protected static  byteWARNING
    

Constructor Summary
protected  AlertProtocol()
     Creates the instance of AlertProtocol.

Method Summary
protected  voidalert(byte level, byte description)
     Reports an alert to be sent/received by transport.
protected  StringgetAlertDescription()
     Returns the string representation of occured alert.
protected  bytegetDescriptionCode()
     Returns the description code of alert or -100 if there is no alert.
protected  booleanhasAlert()
     Checks if any alert has occured.
protected  booleanisFatalAlert()
     Checks if occured alert is fatal alert.
protected  voidsetProcessed()
     Resets the protocol to be in "no alert" state.
protected  voidsetRecordProtocol(SSLRecordProtocol recordProtocol)
     Sets up the record protocol to be used by this allert protocol.
protected  voidshutdown()
     Shutdownes the protocol.
protected  byte[]wrap()
     Returns the record with reported alert message.

Field Detail
ACCESS_DENIED
final protected static byte ACCESS_DENIED(Code)
Defines the description code of the access_denied alert



BAD_CERTIFICATE
final protected static byte BAD_CERTIFICATE(Code)
Defines the description code of the bad_certificate alert



BAD_RECORD_MAC
final protected static byte BAD_RECORD_MAC(Code)
Defines the description code of the bad_record_mac alert



CERTIFICATE_EXPIRED
final protected static byte CERTIFICATE_EXPIRED(Code)
Defines the description code of the certificate_expired alert



CERTIFICATE_REVOKED
final protected static byte CERTIFICATE_REVOKED(Code)
Defines the description code of the certificate_revoked alert



CERTIFICATE_UNKNOWN
final protected static byte CERTIFICATE_UNKNOWN(Code)
Defines the description code of the certificate_unknown alert



CLOSE_NOTIFY
final protected static byte CLOSE_NOTIFY(Code)
Defines the description code of the close_notify alert



DECODE_ERROR
final protected static byte DECODE_ERROR(Code)
Defines the description code of the decode_error alert



DECOMPRESSION_FAILURE
final protected static byte DECOMPRESSION_FAILURE(Code)
Defines the description code of the decompression_failure alert



DECRYPTION_FAILED
final protected static byte DECRYPTION_FAILED(Code)
Defines the description code of the decryption_failed alert



DECRYPT_ERROR
final protected static byte DECRYPT_ERROR(Code)
Defines the description code of the decrypt_error alert



EXPORT_RESTRICTION
final protected static byte EXPORT_RESTRICTION(Code)
Defines the description code of the export_restriction alert



FATAL
final protected static byte FATAL(Code)
Defines the severity of alert as fatal



HANDSHAKE_FAILURE
final protected static byte HANDSHAKE_FAILURE(Code)
Defines the description code of the handshake_failure alert



ILLEGAL_PARAMETER
final protected static byte ILLEGAL_PARAMETER(Code)
Defines the description code of the illegal_parameter alert



INSUFFICIENT_SECURITY
final protected static byte INSUFFICIENT_SECURITY(Code)
Defines the description code of the insufficient_security alert



INTERNAL_ERROR
final protected static byte INTERNAL_ERROR(Code)
Defines the description code of the internal_error alert



NO_RENEGOTIATION
final protected static byte NO_RENEGOTIATION(Code)
Defines the description code of the no_renegotiation alert



PROTOCOL_VERSION
final protected static byte PROTOCOL_VERSION(Code)
Defines the description code of the protocol_version alert



RECORD_OVERFLOW
final protected static byte RECORD_OVERFLOW(Code)
Defines the description code of the record_overflow alert



UNEXPECTED_MESSAGE
final protected static byte UNEXPECTED_MESSAGE(Code)
Defines the description code of the unexpected_message alert



UNKNOWN_CA
final protected static byte UNKNOWN_CA(Code)
Defines the description code of the unknown_ca alert



UNSUPPORTED_CERTIFICATE
final protected static byte UNSUPPORTED_CERTIFICATE(Code)
Defines the description code of the unsupported_certificate alert



USER_CANCELED
final protected static byte USER_CANCELED(Code)
Defines the description code of the user_canceled alert



WARNING
final protected static byte WARNING(Code)
Defines the severity of alert as warning




Constructor Detail
AlertProtocol
protected AlertProtocol()(Code)
Creates the instance of AlertProtocol. Note that class is not ready to work without providing of record protocol
See Also:   setRecordProtocol




Method Detail
alert
protected void alert(byte level, byte description)(Code)
Reports an alert to be sent/received by transport. This method is usually called during processing of the income TSL record: if it contains alert message from another peer, or if warning alert occured during the processing of the message and this warning should be sent to another peer. level: alert level code description: alert description code



getAlertDescription
protected String getAlertDescription()(Code)
Returns the string representation of occured alert. If no alert has occured null is returned.



getDescriptionCode
protected byte getDescriptionCode()(Code)
Returns the description code of alert or -100 if there is no alert.



hasAlert
protected boolean hasAlert()(Code)
Checks if any alert has occured.



isFatalAlert
protected boolean isFatalAlert()(Code)
Checks if occured alert is fatal alert.



setProcessed
protected void setProcessed()(Code)
Resets the protocol to be in "no alert" state. This method shoud be called after processing of the reported alert.



setRecordProtocol
protected void setRecordProtocol(SSLRecordProtocol recordProtocol)(Code)
Sets up the record protocol to be used by this allert protocol.



shutdown
protected void shutdown()(Code)
Shutdownes the protocol. It will be impossiblke to use the instance after the calling of this method.



wrap
protected byte[] wrap()(Code)
Returns the record with reported alert message. The returned array of bytes is ready to be sent to another peer. Note, that this method does not automatically set the state of allert protocol in "no alert" state, so after wrapping the method setProcessed should be called.



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.