Source Code Cross Referenced for PKIFailureInfo.java in  » Security » Bouncy-Castle » org » bouncycastle » asn1 » cmp » 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 » Security » Bouncy Castle » org.bouncycastle.asn1.cmp 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        package org.bouncycastle.asn1.cmp;
02:
03:        import org.bouncycastle.asn1.DERBitString;
04:
05:        /**
06:         * <pre>
07:         * PKIFailureInfo ::= BIT STRING {
08:         * badAlg               (0),
09:         *   -- unrecognized or unsupported Algorithm Identifier
10:         * badMessageCheck      (1), -- integrity check failed (e.g., signature did not verify)
11:         * badRequest           (2),
12:         *   -- transaction not permitted or supported
13:         * badTime              (3), -- messageTime was not sufficiently close to the system time, as defined by local policy
14:         * badCertId            (4), -- no certificate could be found matching the provided criteria
15:         * badDataFormat        (5),
16:         *   -- the data submitted has the wrong format
17:         * wrongAuthority       (6), -- the authority indicated in the request is different from the one creating the response token
18:         * incorrectData        (7), -- the requester's data is incorrect (for notary services)
19:         * missingTimeStamp     (8), -- when the timestamp is missing but should be there (by policy)
20:         * badPOP               (9)  -- the proof-of-possession failed
21:         * timeNotAvailable    (14),
22:         *   -- the TSA's time source is not available
23:         * unacceptedPolicy    (15),
24:         *   -- the requested TSA policy is not supported by the TSA
25:         * unacceptedExtension (16),
26:         *   -- the requested extension is not supported by the TSA
27:         *  addInfoNotAvailable (17)
28:         *    -- the additional information requested could not be understood
29:         *    -- or is not available
30:         *  systemFailure       (25)
31:         *    -- the request cannot be handled due to system failure 
32:         * </pre>
33:         */
34:        public class PKIFailureInfo extends DERBitString {
35:
36:            public static final int badAlg = (1 << 7); // unrecognized or unsupported Algorithm Identifier
37:            public static final int badMessageCheck = (1 << 6); // integrity check failed (e.g., signature did not verify)
38:            public static final int badRequest = (1 << 5);
39:            public static final int badTime = (1 << 4); // -- messageTime was not sufficiently close to the system time, as defined by local policy
40:            public static final int badCertId = (1 << 3); // no certificate could be found matching the provided criteria
41:            public static final int badDataFormat = (1 << 2);
42:            public static final int wrongAuthority = (1 << 1); // the authority indicated in the request is different from the one creating the response token
43:            public static final int incorrectData = 1; // the requester's data is incorrect (for notary services)
44:            public static final int missingTimeStamp = (1 << 15); // when the timestamp is missing but should be there (by policy)
45:            public static final int badPOP = (1 << 14); // the proof-of-possession failed
46:            public static final int timeNotAvailable = (1 << 9); // the TSA's time source is not available
47:            public static final int unacceptedPolicy = (1 << 8); // the requested TSA policy is not supported by the TSA
48:            public static final int unacceptedExtension = (1 << 23); //the requested extension is not supported by the TSA
49:            public static final int addInfoNotAvailable = (1 << 22); //the additional information requested could not be understood or is not available
50:            public static final int systemFailure = (1 << 30); //the request cannot be handled due to system failure
51:
52:            /** @deprecated use lower case version */
53:            public static final int BAD_ALG = badAlg; // unrecognized or unsupported Algorithm Identifier
54:            /** @deprecated use lower case version */
55:            public static final int BAD_MESSAGE_CHECK = badMessageCheck;
56:            /** @deprecated use lower case version */
57:            public static final int BAD_REQUEST = badRequest; // transaction not permitted or supported
58:            /** @deprecated use lower case version */
59:            public static final int BAD_TIME = badTime;
60:            /** @deprecated use lower case version */
61:            public static final int BAD_CERT_ID = badCertId;
62:            /** @deprecated use lower case version */
63:            public static final int BAD_DATA_FORMAT = badDataFormat; // the data submitted has the wrong format
64:            /** @deprecated use lower case version */
65:            public static final int WRONG_AUTHORITY = wrongAuthority;
66:            /** @deprecated use lower case version */
67:            public static final int INCORRECT_DATA = incorrectData;
68:            /** @deprecated use lower case version */
69:            public static final int MISSING_TIME_STAMP = missingTimeStamp;
70:            /** @deprecated use lower case version */
71:            public static final int BAD_POP = badPOP;
72:            /** @deprecated use lower case version */
73:            public static final int TIME_NOT_AVAILABLE = timeNotAvailable;
74:            /** @deprecated use lower case version */
75:            public static final int UNACCEPTED_POLICY = unacceptedPolicy;
76:            /** @deprecated use lower case version */
77:            public static final int UNACCEPTED_EXTENSION = unacceptedExtension;
78:            /** @deprecated use lower case version */
79:            public static final int ADD_INFO_NOT_AVAILABLE = addInfoNotAvailable;
80:            /** @deprecated use lower case version */
81:            public static final int SYSTEM_FAILURE = systemFailure;
82:
83:            /**
84:             * Basic constructor.
85:             */
86:            public PKIFailureInfo(int info) {
87:                super (getBytes(info), getPadBits(info));
88:            }
89:
90:            public PKIFailureInfo(DERBitString info) {
91:                super (info.getBytes(), info.getPadBits());
92:            }
93:
94:            public String toString() {
95:                return "PKIFailureInfo: 0x"
96:                        + Integer.toHexString(this.intValue());
97:            }
98:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.