Source Code Cross Referenced for CertAdminConstants.java in  » Portal » Open-Portal » com » sun » portal » cli » cert » 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 » Portal » Open Portal » com.sun.portal.cli.cert 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * CertAdminConstants.java
003:         * @author  ss133690
004:         * @version 0.1
005:         */package com.sun.portal.cli.cert;
006:
007:        public class CertAdminConstants {
008:
009:            static final String SEPERATOR = System
010:                    .getProperty("file.separator");
011:            static final String newline = System.getProperty("line.separator");
012:            static final String LOCALEFILE = "AMConfig.properties";
013:            static final String PLATFORMFILE = "platform.conf";
014:            static final String JSSPASSFILE = ".jsspass";
015:            static final String JSSNICKNAMEFILE = ".nickname";
016:            static final String SPACE = " ";
017:            static final String KEYDB = "key3.db";
018:            static final String BACKUP = "backup";
019:            static final String VALID_PEER = "p";
020:            static final String TRUSTED_PEER = "P";
021:            static final String VALID_CA = "c";
022:            static final String TRUSTED_CLIENT_CA = "T";
023:            static final String TRUSTED_CA = "C";
024:            static final String USER = "u";
025:            static final String NO_TRUST = "N";
026:            static final String COMMON_NAME = "CN";
027:            static final String LOCALITY = "L";
028:            static final String STATE_OR_PROVINCE = "ST";
029:            static final String ORGANIZATION = "O";
030:            static final String ORGANIZATION_UNIT = "OU";
031:            static final String COUNTRY = "C";
032:            public static final String CHAR_ENC = "UTF-8";
033:
034:            static final String ResourceFileNotFound = "iwtGateway properties file not found.";
035:            static final String q1 = "]";
036:            static final String q2 = "What is the fully-qualified DNS name of this host? [";
037:            static final String q3 = "What is the name of your organization (ex: Company)? [";
038:            static final String q4 = "What is the name of your organizational unit (ex: division)? [";
039:            static final String q5 = "What is the name of your City or Locality? [";
040:            static final String q6 = "What is the name (no abbreviation please) of your State or Province? [";
041:            static final String q7 = "What is the two-letter country code for this unit? []";
042:            static final String q8 = "Enter the token name []";
043:            static final String q9 = "Enter the name you like for this certificate [";
044:            static final String q10 = "Enter the validity period for the certificate (months) [";
045:            static final String q11 = "What is the email address of the admin/webmaster for this server ?";
046:            static final String q12 = "What is the phone number of the admin/webmaster for this server ?";
047:            static final String q13 = "Are these values correct (y/n) ? [n]";
048:            static final String q14 = "What is the name (including path) of file that contains the root";
049:            static final String q141 = "certificate that you would like to add to your database ?";
050:            static final String q15 = "What is the name (including path) of file that contains the certificate ?";
051:            static final String q16 = "Enter the token name you used when creating CSR for this certificate []";
052:            static final String q17 = "Enter the name of the certificate to be deleted ?";
053:            static final String q18 = "Enter the name of the certificate ?";
054:            static final String q19 = "Enter the trust attribute you want the certificate to have [";
055:            static final String q20 = "Enter passphrase ?";
056:            static final String q21 = "Verify (re-enter) passphrase ?";
057:            static final String q22 = "Do you want to keep the existing certificate database files (y/n) ? [y]";
058:            static final String m1 = "Error!, Initialization failed";
059:            static final String m2 = "Error!, Cannot locate Platform file";
060:            static final String m3 = "Initialization: couldn't open the key database";
061:            static final String m4 = "Initialization: couldn't open the certificate database";
062:            static final String m5 = "Initialization: CryptoManager already initialized";
063:            static final String m6 = "Initialization: Exception occurred";
064:            static final String m7 = "************************************************************************";
065:            static final String m71 = "*********             Certificate Administration               *********";
066:            static final String m72 = "1)  Generate Self-Signed Certificate";
067:            static final String m73 = "2)  Generate Certificate Signing Request (CSR)";
068:            static final String m74 = "3)  Add Root CA Certificate";
069:            static final String m75 = "4)  Install Certificate From Certificate Authority (CA)";
070:            static final String m76 = "5)  Delete Certificate";
071:            static final String m77 = "6)  Modify Trust Attributes of Certificate (e.g., for PDC)";
072:            static final String m78 = "7)  List Root CA Certificates";
073:            static final String m79 = "8)  List All Certificates";
074:            static final String m711 = "9)  Print Certificate content";
075:            static final String m712 = "10) Quit";
076:            static final String m713 = "----------------------------";
077:            static final String m714 = "choice: [10]";
078:            static final String m8 = "Invalid Option!";
079:            static final String m9 = "Enter a valid country code!";
080:            static final String m10 = "Certificate with the specified nickname already exist!";
081:            static final String m11 = "Generating self-signed certificate...";
082:            static final String m12 = "Generating key.  This may take a few moments...";
083:            static final String m13 = "Could not generate the self signed certificate!";
084:            static final String m14 = "Generated 1024-bit RSA KeyPair";
085:            static final String m15 = "Self-signed certificate generated";
086:            static final String m16 = "You have entered the following values:";
087:            static final String m17 = "Webmaster Email :";
088:            static final String m18 = "Webmaster Phone : ";
089:            static final String m19 = "Email/Phone values should not be empty!";
090:            static final String m20 = "Generating CSR...";
091:            static final String m21 = "Could not write the csr to the file!";
092:            static final String m22 = "Could not generate the csr!";
093:            static final String m23 = "Certificate file";
094:            static final String m231 = "doesn't exist!";
095:            static final String m24 = "Added the Root CA certificate successfully";
096:            static final String m25 = "Could not add the Root CA certificate";
097:            static final String m26 = "Certificate";
098:            static final String m261 = " already exist. Choose another nickname!";
099:            static final String m27 = "Certificate successfully installed";
100:            static final String m28 = "To use the new Certificate, you must (re)start the server";
101:            static final String m29 = "Could not install certificate!";
102:            static final String m30 = "Certificate name entered is not valid!";
103:            static final String m31 = "Specified certificate does not exist!";
104:            static final String m32 = "deleted successfully";
105:            static final String m33 = "Could not delete the certificate!";
106:            static final String m34 = "Invalid trust attribute";
107:            static final String m35 = "specified!";
108:            static final String m36 = "Modifying the trust attribute ...";
109:            static final String m37 = "Could not modify the trust attributes of the certificate!";
110:            static final String m38 = "Certificate trust attributes modified successfully ";
111:            static final String m39 = "Could not print the certificate!";
112:            static final String m40 = "Passphrase cannot be blank!";
113:            static final String m41 = "Passphrase accepted";
114:            static final String m42 = "Could not store the password!";
115:            static final String m43 = "Passwords don't match!";
116:            static final String m44 = "The CSR is also show below:";
117:            static final String m441 = "Certificate request generated by Netscape certutil";
118:            static final String m442 = "Phone :";
119:            static final String m443 = "Common Name :";
120:            static final String m444 = "Email :";
121:            static final String m445 = "Organization :";
122:            static final String m446 = "State";
123:            static final String m447 = "Country :";
124:            static final String m45 = "Usage: java certadmin <option-name> <config-name> <basedir> <idsame-locale-dir>";
125:            static final String m451 = "Usage: certadmin -n <config-name>";
126:            static final String m452 = "certadmin cannot get started. Configuration for specified profile does not exist!";
127:            static final String m46 = "Could not delete the .nickname file!";
128:            static final String m47 = "Could not update .nickname file. Please update it manually!";
129:            static final String m48 = ".nickname file location : ";
130:            static final String m49 = "Could not verify the certificate!";
131:            static final String m50 = "Could not load the property file!";
132:            static final String m51 = "Error!, Cannot locate the idsame property file";
133:            static final String m52 = "Certificate files backup Successful!";
134:            static final String m53 = "Error!, Could not backup the certificate files";
135:            static final String m54 = "Error!, Could not initialize the JSS password engine";
136:            static final String m55 = "Error!, Could not encode|decode the JSS engine password";
137:            static final String m56 = "Insufficient command parameters";
138:            static final String m57 = "Could not verify,";
139:            static final String m58 = "Gateway certficate status:";
140:            static final String m59 = "has already expired!";
141:            static final String m60 = "is a self signed certificate!";
142:            static final String m61 = "is invalid!";
143:            static final String m62 = "is valid!";
144:            static final String m63 = "Certificate with the specified Subject DN already exist!";
145:            static final String m64 = "Certificate Nickname:";
146:            static final String m65 = "Certificate Subject DN:";
147:            static final String m66 = "Retry deleting the certificate or change the Subject DN for the new certificate";
148:            static final String m67 = "Hit Return to continue!!";
149:
150:            static final String ht1 = "NOTE: Field entries cannot contain an = character.";
151:            static final String ht2 = "To install the certificate you have recieved from the CA, you must put the";
152:            static final String ht21 = "certificate into a file that can be read in. The certificate begins with";
153:            static final String ht22 = "line that reads:";
154:            static final String ht23 = "-----BEGIN CERTIFICATE-----";
155:            static final String ht24 = "and ends with the line that reads:";
156:            static final String ht25 = "-----END CERTIFICATE-----";
157:            static final String ht26 = "include both of those lines in the file)";
158:            static final String ht3 = "Now input some contact information for the webmaster of the machine";
159:            static final String ht31 = "that the certificate is to be generated for.";
160:            static final String ht4 = "*********************************************************************";
161:            static final String ht41 = "CSR was generated into the file:csr.";
162:            static final String ht42 = "Submit this (generally the part between and including the";
163:            static final String ht43 = "'-----BEGIN NEW CERTIFICATE REQUEST-----' and the";
164:            static final String ht44 = "'-----END NEW CERTIFICATE REQUEST-----') to your chosen Certificate";
165:            static final String ht45 = "Authority when you apply for a server/SSL certificate.";
166:            static final String ht46 = "NOTE: Once you request a certificate from a Certificate Authority (CA),";
167:            static final String ht47 = "do _not_ delete your certificate database files under: /etc/opt/SUNWportal/cert/profile-name";
168:            static final String ht48 = "which contains the key pair you just used to generate the CSR) or else";
169:            static final String ht49 = "you will not be able to use the certificate when you get it back from the CA.";
170:            static final String ht5 = "Token name is needed only if you are not using the default internal (software)";
171:            static final String ht51 = "cryptographic module, for example, if you want to use a crypto card (Token names";
172:            static final String ht52 = "could be listed using: modutil -dbdir /etc/opt/SUNWportal/cert/default -list";
173:            static final String ht53 = "Otherwise, just hit Return below.";
174:            static final String ht6 = "Creating passphrase to be used for the certificate...";
175:            static final String ht61 = "IMPORTANT: Remember this passphrase, it may be needed later";
176:            static final String ht7 = "This option is used to change the trust attribute of an existing certificate.";
177:            static final String ht71 = "For example, a certain root CA may be marked C,C,C which means it is trusted";
178:            static final String ht72 = "to issue server certificates, but you want it to be also trusted to issue client";
179:            static final String ht73 = "certificates so that you could use PDC for authentication. In that case, you could";
180:            static final String ht74 = "use this option to change the trust attribute of this certificate to CT,CT,c which";
181:            static final String ht75 = "means it is trusted to issue both server and client certificates.";
182:
183:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.