Java Doc for ArgumentsParser.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » tools » keytool » 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.tools.keytool 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.tools.keytool.ArgumentsParser

ArgumentsParser
class ArgumentsParser (Code)
The class to interact with the user - parse the program arguments, ask for confirmations, and necessary parameters which haven't been set in the command line.


Field Summary
static  intcharsRead
    
static  InputStreamReaderin
    
static  intmaxNrOfAttempts
    
static  intminPwdLength
    
static  char[]readData
    
final static  StringsAlias
    
final static  StringsCA
    
final static  StringsCAcertsPass
    
final static  StringsCAcertsPath
    
final static  StringsCRLfile
    
final static  StringsCertProvider
    
final static  StringsCertSerial
    
final static  StringsCertreq
    
final static  StringsCheck
    
final static  StringsConvKeyEntries
    
final static  StringsConvKsProvider
    
final static  StringsConvStorePass
    
final static  StringsConvStorePath
    
final static  StringsConvStoreType
    
final static  StringsConvert
    
final static  StringsDelete
    
final static  StringsDestAlias
    
final static  StringsDname
    
final static  StringsExport
    
final static  StringsFile
    
final static  StringsGenkey
    
final static  StringsHelp
    
final static  StringsImport
    
final static  StringsIssuerAlias
    
final static  StringsIssuerPass
    
final static  StringsJ
    
final static  StringsKeyProvider
    
final static  StringsKeyalg
    
final static  StringsKeyclone
    
final static  StringsKeypass
    
final static  StringsKeypasswd
    
final static  StringsKeysize
    
final static  StringsKeystore
    
final static  StringsKsProvider
    
final static  StringsList
    
final static  StringsMdProvider
    
final static  StringsNew
    
final static  StringsNoprompt
    
final static  StringsPrintcert
    
final static  StringsProvider
    
final static  StringsRfc
    
final static  StringsSecretkey
    
final static  StringsSelfcert
    
final static  StringsSigProvider
    
final static  StringsSigalg
    
final static  StringsStorepass
    
final static  StringsStorepasswd
    
final static  StringsStoretype
    
final static  StringsTrustcacerts
    
final static  StringsV
    
final static  StringsValidity
    
final static  StringsVerify
    
final static  StringsX509Version
    


Method Summary
static  voidgetAdditionalParameters(KeytoolParameters param)
     Checks if the needed values are set and, if not, prompts for them.
static  booleangetConfirmation(String promt, boolean acceptAnother)
     Prints a promt.
static  KeytoolParametersparseArgs(String[] args)
     The method finds known options in args which is usually taken from command line and sets the corresponding fields of the returned KeytoolParameters object to given values.
Parameters:
  args - -String array to parse.

Field Detail
charsRead
static int charsRead(Code)



in
static InputStreamReader in(Code)



maxNrOfAttempts
static int maxNrOfAttempts(Code)



minPwdLength
static int minPwdLength(Code)



readData
static char[] readData(Code)



sAlias
final static String sAlias(Code)



sCA
final static String sCA(Code)



sCAcertsPass
final static String sCAcertsPass(Code)



sCAcertsPath
final static String sCAcertsPath(Code)



sCRLfile
final static String sCRLfile(Code)



sCertProvider
final static String sCertProvider(Code)



sCertSerial
final static String sCertSerial(Code)



sCertreq
final static String sCertreq(Code)



sCheck
final static String sCheck(Code)



sConvKeyEntries
final static String sConvKeyEntries(Code)



sConvKsProvider
final static String sConvKsProvider(Code)



sConvStorePass
final static String sConvStorePass(Code)



sConvStorePath
final static String sConvStorePath(Code)



sConvStoreType
final static String sConvStoreType(Code)



sConvert
final static String sConvert(Code)



sDelete
final static String sDelete(Code)



sDestAlias
final static String sDestAlias(Code)



sDname
final static String sDname(Code)



sExport
final static String sExport(Code)



sFile
final static String sFile(Code)



sGenkey
final static String sGenkey(Code)



sHelp
final static String sHelp(Code)



sImport
final static String sImport(Code)



sIssuerAlias
final static String sIssuerAlias(Code)



sIssuerPass
final static String sIssuerPass(Code)



sJ
final static String sJ(Code)



sKeyProvider
final static String sKeyProvider(Code)



sKeyalg
final static String sKeyalg(Code)



sKeyclone
final static String sKeyclone(Code)



sKeypass
final static String sKeypass(Code)



sKeypasswd
final static String sKeypasswd(Code)



sKeysize
final static String sKeysize(Code)



sKeystore
final static String sKeystore(Code)



sKsProvider
final static String sKsProvider(Code)



sList
final static String sList(Code)



sMdProvider
final static String sMdProvider(Code)



sNew
final static String sNew(Code)



sNoprompt
final static String sNoprompt(Code)



sPrintcert
final static String sPrintcert(Code)



sProvider
final static String sProvider(Code)



sRfc
final static String sRfc(Code)



sSecretkey
final static String sSecretkey(Code)



sSelfcert
final static String sSelfcert(Code)



sSigProvider
final static String sSigProvider(Code)



sSigalg
final static String sSigalg(Code)



sStorepass
final static String sStorepass(Code)



sStorepasswd
final static String sStorepasswd(Code)



sStoretype
final static String sStoretype(Code)



sTrustcacerts
final static String sTrustcacerts(Code)



sV
final static String sV(Code)



sValidity
final static String sValidity(Code)



sVerify
final static String sVerify(Code)



sX509Version
final static String sX509Version(Code)





Method Detail
getAdditionalParameters
static void getAdditionalParameters(KeytoolParameters param) throws KeytoolException, IOException, KeyStoreException, UnrecoverableKeyException, NoSuchAlgorithmException, CertificateException, NoSuchProviderException(Code)
Checks if the needed values are set and, if not, prompts for them. This method must be called after the keystore is loaded.
Parameters:
  param -
throws:
  KeytoolException -
throws:
  UnrecoverableKeyException -
throws:
  NoSuchAlgorithmException -
throws:
  IOException -
throws:
  KeyStoreException -
throws:
  NoSuchProviderException -
throws:
  CertificateException -



getConfirmation
static boolean getConfirmation(String promt, boolean acceptAnother) throws IOException, KeytoolException(Code)
Prints a promt. Reads what the user enters. If the user has entered 'y'/"yes" or 'n'/"no" (case insensitively) the method returns respectively true or false. Depending on acceptAnother parameter the method can return false if anything except 'y' or "yes" is entered, or it can prompt for a correct answer. If only ENTER is pressed false is returned.
Parameters:
  promt - -text printed to ask the user for a confirmation
Parameters:
  acceptAnother - -if set to true, the method returns true if and only if theuser enters 'y' or "yes"; if set to false prompts to reenterthe answer from user until 'y'/"yes" or 'n'/"no" is entered. true if the user confirms the request, false - otherwise.
throws:
  IOException -



parseArgs
static KeytoolParameters parseArgs(String[] args) throws NumberFormatException, KeytoolException, IOException(Code)
The method finds known options in args which is usually taken from command line and sets the corresponding fields of the returned KeytoolParameters object to given values.
Parameters:
  args - -String array to parse. null if args is null or zero-sized, one of the elements of argsis null or empty, an unknown option is found or an expectedoption value is not given or not of an expected type.
throws:
  IOException -
throws:
  NumberFormatException -
throws:
  KeytoolException -



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.