Java Doc for CertificateException.java in  » 6.0-JDK-Modules » j2me » javax » microedition » pki » 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 » 6.0 JDK Modules » j2me » javax.microedition.pki 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.io.IOException
            javax.microedition.pki.CertificateException

CertificateException
public class CertificateException extends java.io.IOException (Code)
The CertificateException encapsulates an error that occurred while a Certificate is being used. If multiple errors are found within a Certificate the more significant error should be reported in the exception.


Field Summary
final public static  byteBAD_EXTENSIONS
     Indicates a certificate has unrecognized critical extensions.
final public static  byteBROKEN_CHAIN
     Indicates a certificate in a chain was not issued by the next authority in the chain.
final public static  byteCERTIFICATE_CHAIN_TOO_LONG
     Indicates the server certificate chain exceeds the length allowed by an issuer's policy.
final public static  byteEXPIRED
     Indicates a certificate is expired.
final public static  byteINAPPROPRIATE_KEY_USAGE
     Indicates a certificate public key has been used in way deemed inappropriate by the issuer.
final public static  byteMISSING_SIGNATURE
     Indicates a certificate object does not contain a signature.
final public static  byteNOT_YET_VALID
     Indicates a certificate is not yet valid.
final public static  byteROOT_CA_EXPIRED
     Indicates the root CA's public key is expired.
final public static  byteSITENAME_MISMATCH
     Indicates a certificate does not contain the correct site name.
final public static  byteUNAUTHORIZED_INTERMEDIATE_CA
     Indicates an intermediate certificate in the chain does not have the authority to be a intermediate CA.
final public static  byteUNRECOGNIZED_ISSUER
     Indicates a certificate was issued by an unrecognized entity.
final public static  byteUNSUPPORTED_PUBLIC_KEY_TYPE
     Indicates that type of the public key in a certificate is not supported by the device.
final public static  byteUNSUPPORTED_SIGALG
     Indicates a certificate was signed using an unsupported algorithm.
final public static  byteVERIFICATION_FAILED
     Indicates a certificate failed verification.

Constructor Summary
public  CertificateException(Certificate certificate, byte status)
     Create a new exception with a Certificate and specific error reason.
public  CertificateException(String message, Certificate certificate, byte status)
     Create a new exception with a message, Certificate, and specific error reason.

Method Summary
public  CertificategetCertificate()
     Get the Certificate that caused the exception.
static  StringgetMessageForReason(int reason)
     Gets the exception message for a reason.
public  bytegetReason()
     Get the reason code.

Field Detail
BAD_EXTENSIONS
final public static byte BAD_EXTENSIONS(Code)
Indicates a certificate has unrecognized critical extensions. The value is 1.



BROKEN_CHAIN
final public static byte BROKEN_CHAIN(Code)
Indicates a certificate in a chain was not issued by the next authority in the chain. The value is 11.



CERTIFICATE_CHAIN_TOO_LONG
final public static byte CERTIFICATE_CHAIN_TOO_LONG(Code)
Indicates the server certificate chain exceeds the length allowed by an issuer's policy. The value is 2.



EXPIRED
final public static byte EXPIRED(Code)
Indicates a certificate is expired. The value is 3.



INAPPROPRIATE_KEY_USAGE
final public static byte INAPPROPRIATE_KEY_USAGE(Code)
Indicates a certificate public key has been used in way deemed inappropriate by the issuer. The value is 10.



MISSING_SIGNATURE
final public static byte MISSING_SIGNATURE(Code)
Indicates a certificate object does not contain a signature. The value is 5.



NOT_YET_VALID
final public static byte NOT_YET_VALID(Code)
Indicates a certificate is not yet valid. The value is 6.



ROOT_CA_EXPIRED
final public static byte ROOT_CA_EXPIRED(Code)
Indicates the root CA's public key is expired. The value is 12.



SITENAME_MISMATCH
final public static byte SITENAME_MISMATCH(Code)
Indicates a certificate does not contain the correct site name. The value is 7.



UNAUTHORIZED_INTERMEDIATE_CA
final public static byte UNAUTHORIZED_INTERMEDIATE_CA(Code)
Indicates an intermediate certificate in the chain does not have the authority to be a intermediate CA. The value is 4.



UNRECOGNIZED_ISSUER
final public static byte UNRECOGNIZED_ISSUER(Code)
Indicates a certificate was issued by an unrecognized entity. The value is 8.



UNSUPPORTED_PUBLIC_KEY_TYPE
final public static byte UNSUPPORTED_PUBLIC_KEY_TYPE(Code)
Indicates that type of the public key in a certificate is not supported by the device. The value is 13.



UNSUPPORTED_SIGALG
final public static byte UNSUPPORTED_SIGALG(Code)
Indicates a certificate was signed using an unsupported algorithm. The value is 9.



VERIFICATION_FAILED
final public static byte VERIFICATION_FAILED(Code)
Indicates a certificate failed verification. The value is 14.




Constructor Detail
CertificateException
public CertificateException(Certificate certificate, byte status)(Code)
Create a new exception with a Certificate and specific error reason. The descriptive message for the new exception will be automatically provided, based on the reason.
Parameters:
  certificate - the certificate that caused the exception
Parameters:
  status - the reason for the exception;the status MUST be between BAD_EXTENSIONS and VERIFICATION_FAILEDinclusive.



CertificateException
public CertificateException(String message, Certificate certificate, byte status)(Code)
Create a new exception with a message, Certificate, and specific error reason.
Parameters:
  message - a descriptive message
Parameters:
  certificate - the certificate that caused the exception
Parameters:
  status - the reason for the exception;the status MUST be between BAD_EXTENSIONS and VERIFICATION_FAILEDinclusive.




Method Detail
getCertificate
public Certificate getCertificate()(Code)
Get the Certificate that caused the exception. the Certificate that included the failure.



getMessageForReason
static String getMessageForReason(int reason)(Code)
Gets the exception message for a reason.
Parameters:
  reason - reason code exception message



getReason
public byte getReason()(Code)
Get the reason code. the reason code





Methods inherited from java.lang.Throwable
public String getMessage()(Code)(Java Doc)
native public void printStackTrace()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.