Java Doc for KeytoolParameters.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.KeytoolParameters

KeytoolParameters
public class KeytoolParameters (Code)
The class encapsulates paramaters for Keytool most of which are usually given in command line.


Field Summary
final public static  StringdefaultKeystorePath
     Default location of the keystore.


Method Summary
 StringgetAlias()
    
 KeyStoregetCacerts()
    
 char[]getCacertsPass()
    
 StringgetCacertsPath()
    
 StringgetCertProvider()
    
 intgetCertSerialNr()
    
 CommandgetCommand()
    
 StringgetConvKsProvider()
    
 char[]getConvertedKeyStorePass()
    
 StringgetConvertedKeyStorePath()
    
 StringgetConvertedKeyStoreType()
    
 StringgetCrlFile()
    
 StringgetDName()
    
 StringgetDestAlias()
    
 StringgetFileName()
    
 StringgetHelpTopic()
    
 StringgetIssuerAlias()
    
 char[]getIssuerPass()
    
 StringgetKeyAlg()
    
 char[]getKeyPass()
    
 StringgetKeyProvider()
    
 intgetKeySize()
    
 KeyStoregetKeyStore()
    
 StringgetKsProvider()
    
 StringgetMdProvider()
    
 char[]getNewPasswd()
    
 StringgetProvider()
    
 StringgetSigAlg()
    
 StringgetSigProvider()
    
 char[]getStorePass()
    
 StringgetStorePath()
    
 StringgetStoreType()
    
 intgetValidity()
    
 intgetX509version()
    
 booleanisCA()
    
 booleanisConvertKeyEntries()
    
public  booleanisNeedSaveKS()
    
 booleanisNoPrompt()
    
 booleanisRfc()
    
 booleanisSecretKey()
    
 booleanisTrustCACerts()
    
 booleanisVerbose()
    
public  voidsetAlias(String alias)
    
public  voidsetCA(boolean isCA)
    
 voidsetCacerts(KeyStore cacerts)
    
public  voidsetCacertsPass(char[] cacertsPass)
    
public  voidsetCacertsPath(String cacertsPath)
    
public  voidsetCertProvider(String certProvider)
    
public  voidsetCertSerialNr(int certSerialNr)
    
public  voidsetCommand(Command command)
    
public  voidsetConvKsProvider(String convKsProvider)
    
public  voidsetConvertKeyEntries(boolean convertKeyEnties)
    
public  voidsetConvertedKeyStorePass(char[] convertedKeyStorePass)
    
public  voidsetConvertedKeyStorePath(String convertedKeyStorePath)
    
public  voidsetConvertedKeyStoreType(String convertedKeyStoreType)
    
public  voidsetCrlFile(String crlStore)
    
public  voidsetDName(String name)
    
 voidsetDefault()
     The method sets the fields to default values.
public  voidsetDestAlias(String destAlias)
    
public  voidsetFileName(String fileName)
    
public  voidsetHelpTopic(String helpTopic)
    
public  voidsetIssuerAlias(String issuerAlias)
    
public  voidsetIssuerPass(char[] issuerPass)
    
public  voidsetKeyAlg(String keyAlg)
    
public  voidsetKeyPass(char[] keyPass)
    
public  voidsetKeyProvider(String keyProvider)
    
public  voidsetKeySize(int keySize)
    
 voidsetKeyStore(KeyStore keyStore)
    
public  voidsetKsProvider(String ksProvider)
    
public  voidsetMdProvider(String mdProvider)
    
public  voidsetNeedSaveKS(boolean needSaveKS)
    
public  voidsetNewPasswd(char[] newPasswd)
    
public  voidsetNoPrompt(boolean noPrompt)
    
public  voidsetProvider(String provider)
    
public  voidsetRfc(boolean rfc)
    
public  voidsetSecretKey(boolean secretKey)
    
public  voidsetSigAlg(String sigAlg)
    
public  voidsetSigProvider(String sigProvider)
    
public  voidsetStorePass(char[] storePass)
    
public  voidsetStorePath(String storePath)
    
public  voidsetStoreType(String storeType)
    
public  voidsetTrustCACerts(boolean trustCACerts)
    
public  voidsetValidity(int validity)
    
public  voidsetVerbose(boolean verbose)
    
public  voidsetX509version(int x509version)
    

Field Detail
defaultKeystorePath
final public static String defaultKeystorePath(Code)
Default location of the keystore. Used when the value is not supplied by the user.





Method Detail
getAlias
String getAlias()(Code)
Returns the alias used to access the keystore entry.



getCacerts
KeyStore getCacerts() throws FileNotFoundException, KeyStoreException, NoSuchAlgorithmException, CertificateException, NoSuchProviderException, IOException(Code)
cacerts keystore containing the certificates from rootcertificate authorities (usually self-signed)
throws:
  IOException -
throws:
  NoSuchProviderException -
throws:
  CertificateException -
throws:
  NoSuchAlgorithmException -
throws:
  KeyStoreException -
throws:
  FileNotFoundException -



getCacertsPass
char[] getCacertsPass()(Code)
password for cacerts keystore



getCacertsPath
String getCacertsPath()(Code)
Returns the location of cacerts file, containing the certificatesfrom root certificate authorities (usually self-signed).



getCertProvider
String getCertProvider()(Code)
the name of the provider to work with certificates



getCertSerialNr
int getCertSerialNr()(Code)
Returns the certificate serial number



getCommand
Command getCommand()(Code)
Returns the command to perform



getConvKsProvider
String getConvKsProvider()(Code)
the name of the provider to work with keystore to convert themain keystore to



getConvertedKeyStorePass
char[] getConvertedKeyStorePass()(Code)
password for the keystore to convert the current keystore to



getConvertedKeyStorePath
String getConvertedKeyStorePath()(Code)
path to the keystore to convert the current keystore to



getConvertedKeyStoreType
String getConvertedKeyStoreType()(Code)
type of the keystore to convert the current keystore to



getCrlFile
String getCrlFile()(Code)
Returns path to a file with CRLs.



getDName
String getDName()(Code)
Returns the X.500 Distinguished Name to generate a certificate



getDestAlias
String getDestAlias()(Code)
Returns the destination alias to copy key pair to



getFileName
String getFileName()(Code)
Returns the name of the file to import/export certificates



getHelpTopic
String getHelpTopic()(Code)
topic to print help on



getIssuerAlias
String getIssuerAlias()(Code)
Returns the alias to access the issuer's certificate (certificatewhich a newly generated certificate can be signed with)



getIssuerPass
char[] getIssuerPass()(Code)
password to access the issuer's certificate (certificate which anewly generated certificate can be signed with)



getKeyAlg
String getKeyAlg()(Code)
Returns the algorithm name to get instance of KeyPairGenerator,KeyFactory, etc.



getKeyPass
char[] getKeyPass()(Code)
Returns the password to access the key entry



getKeyProvider
String getKeyProvider()(Code)
the name of the provider to work with keys



getKeySize
int getKeySize()(Code)
Returns the size of the key to generate



getKeyStore
KeyStore getKeyStore() throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, KeyStoreException, NoSuchProviderException, IOException(Code)
Returns the keystore to work with.
throws:
  IOException -
throws:
  NoSuchProviderException -
throws:
  KeyStoreException -
throws:
  FileNotFoundException -
throws:
  CertificateException -
throws:
  NoSuchAlgorithmException -



getKsProvider
String getKsProvider()(Code)
the name of the provider to work with keystore



getMdProvider
String getMdProvider()(Code)
the name of the provider to work with message digests



getNewPasswd
char[] getNewPasswd()(Code)
Returns the new password to change the old one to



getProvider
String getProvider()(Code)
Returns the name of the provider to use if specific provider isnot given



getSigAlg
String getSigAlg()(Code)
Returns the digital signature algorithm



getSigProvider
String getSigProvider()(Code)
the name of the provider to work with signatures



getStorePass
char[] getStorePass()(Code)
Returns the password to access the store



getStorePath
String getStorePath()(Code)
Returns path to the keystore or certstore depending on a command.



getStoreType
String getStoreType()(Code)
Returns the type of the store



getValidity
int getValidity()(Code)
Returns the validity period of the generated certificate in daysfrom the current moment



getX509version
int getX509version()(Code)
Returns the X.509 protocol version to use when generating acertificate



isCA
boolean isCA()(Code)
true if the generated certificate should be a CA certificate,false - otherwise



isConvertKeyEntries
boolean isConvertKeyEntries()(Code)
true if key entries should be converted, false - if not



isNeedSaveKS
public boolean isNeedSaveKS()(Code)
Returns true if keystore is to be saved, false - otherwise.



isNoPrompt
boolean isNoPrompt()(Code)
Returns true if unspecified parameters should be prompted for,false - otherwise



isRfc
boolean isRfc()(Code)
Returns true if the certificate should be printed or exported inprintable format, false - if in binary format



isSecretKey
boolean isSecretKey()(Code)
Returns true if a secret key should be generated, false - if akey pair.



isTrustCACerts
boolean isTrustCACerts()(Code)
Returns true if the certificates from cacerts file should beconsidered for the chain of trust, false - if not



isVerbose
boolean isVerbose()(Code)
Returns true if the keytool should print the detailed informationon the operation, false - if not



setAlias
public void setAlias(String alias)(Code)

Parameters:
  alias - The alias to access the keystore entry.



setCA
public void setCA(boolean isCA)(Code)

Parameters:
  isCA - set true if the generated certificate should be a CAcertificate, false - otherwise



setCacerts
void setCacerts(KeyStore cacerts)(Code)

Parameters:
  cacerts - keystore containing the certificates from root certificateauthorities (usually self-signed)



setCacertsPass
public void setCacertsPass(char[] cacertsPass)(Code)

Parameters:
  cacertsPass - password for cacerts keystore



setCacertsPath
public void setCacertsPath(String cacertsPath)(Code)

Parameters:
  cacertsPath - the location of cacerts file, containing the certificates fromroot certificate authorities (usually self-signed).



setCertProvider
public void setCertProvider(String certProvider)(Code)

Parameters:
  certProvider - the name of the provider to work with certificates



setCertSerialNr
public void setCertSerialNr(int certSerialNr)(Code)

Parameters:
  certSerialNr - The certificate serial number



setCommand
public void setCommand(Command command)(Code)

Parameters:
  command - The command to perform



setConvKsProvider
public void setConvKsProvider(String convKsProvider)(Code)

Parameters:
  convKsProvider - the name of the provider to work with keystore to convert themain keystore to



setConvertKeyEntries
public void setConvertKeyEntries(boolean convertKeyEnties)(Code)

Parameters:
  convertKeyEnties - set true if key entries should be converted, false - if not



setConvertedKeyStorePass
public void setConvertedKeyStorePass(char[] convertedKeyStorePass)(Code)

Parameters:
  convertedKeyStorePass - password for the keystore to convert the current keystore to



setConvertedKeyStorePath
public void setConvertedKeyStorePath(String convertedKeyStorePath)(Code)

Parameters:
  convertedKeyStorePath - path to the keystore to convert the current keystore to



setConvertedKeyStoreType
public void setConvertedKeyStoreType(String convertedKeyStoreType)(Code)

Parameters:
  convertedKeyStoreType - type of the keystore to convert the current keystore to



setCrlFile
public void setCrlFile(String crlStore)(Code)

Parameters:
  crlFile - path to a file with CRLs.



setDName
public void setDName(String name)(Code)

Parameters:
  name - The X.500 Distinguished Name to generate a certificate



setDefault
void setDefault()(Code)
The method sets the fields to default values. If there is not a default value the field is set to null.



setDestAlias
public void setDestAlias(String destAlias)(Code)

Parameters:
  destAlias - The destination alias to copy key pair to



setFileName
public void setFileName(String fileName)(Code)

Parameters:
  fileName - The name of the file to import/export certificates



setHelpTopic
public void setHelpTopic(String helpTopic)(Code)

Parameters:
  helpTopic - topic to print help on



setIssuerAlias
public void setIssuerAlias(String issuerAlias)(Code)

Parameters:
  issuerAlias - The alias to access the issuer's certificate (certificatewhich a newly generated certificate can be signed with)



setIssuerPass
public void setIssuerPass(char[] issuerPass)(Code)

Parameters:
  issuerPass - password to access the issuer's certificate (certificate whicha newly generated certificate can be signed with)



setKeyAlg
public void setKeyAlg(String keyAlg)(Code)

Parameters:
  keyAlg - algorithm name to get instance of KeyPairGenerator,KeyFactory, etc.



setKeyPass
public void setKeyPass(char[] keyPass)(Code)

Parameters:
  keyPass - password to access the key entry



setKeyProvider
public void setKeyProvider(String keyProvider)(Code)

Parameters:
  keyProvider - the name of the provider to work with keys



setKeySize
public void setKeySize(int keySize)(Code)

Parameters:
  keySize - The size of the key to generate



setKeyStore
void setKeyStore(KeyStore keyStore)(Code)

Parameters:
  keyStore - The KeyStore to set as keystore worked with.



setKsProvider
public void setKsProvider(String ksProvider)(Code)

Parameters:
  ksProvider - the name of the provider to work with keystore



setMdProvider
public void setMdProvider(String mdProvider)(Code)

Parameters:
  mdProvider - the name of the provider to work with message digests



setNeedSaveKS
public void setNeedSaveKS(boolean needSaveKS)(Code)

Parameters:
  needSaveKS - -if true keystore is to be saved, if false - it is not.



setNewPasswd
public void setNewPasswd(char[] newPasswd)(Code)

Parameters:
  newPasswd - The new password to change the old one to



setNoPrompt
public void setNoPrompt(boolean noPrompt)(Code)

Parameters:
  noPrompt - Set true if unspecified parameters should be prompted for,false if not



setProvider
public void setProvider(String provider)(Code)

Parameters:
  provider - the name of the provider to use if specific provider is notgiven



setRfc
public void setRfc(boolean rfc)(Code)

Parameters:
  rfc - set true if the certificate should be printed or exported inprintable format, false - if in binary format



setSecretKey
public void setSecretKey(boolean secretKey)(Code)

Parameters:
  isSecretKey - set true if a secret key should be generated, false - if a keypair.



setSigAlg
public void setSigAlg(String sigAlg)(Code)

Parameters:
  sigAlg - The digital signature algorithm to set.



setSigProvider
public void setSigProvider(String sigProvider)(Code)

Parameters:
  sigProvider - the name of the provider to work with signatures



setStorePass
public void setStorePass(char[] storePass)(Code)

Parameters:
  storePass - The password to access the store



setStorePath
public void setStorePath(String storePath)(Code)

Parameters:
  storePath - The path to the keystore or certstore (depending on acommand).



setStoreType
public void setStoreType(String storeType)(Code)

Parameters:
  storeType - The type of the store to set.



setTrustCACerts
public void setTrustCACerts(boolean trustCACerts)(Code)

Parameters:
  trustCACerts - set true if the certificates from cacerts file should beconsidered for the chain of trust, false - if not.



setValidity
public void setValidity(int validity)(Code)

Parameters:
  validity - The validity period of the generated certificate in days fromthe current moment



setVerbose
public void setVerbose(boolean verbose)(Code)

Parameters:
  verbose - set true if the keytool should print the detailed informationon the operation, false - if not



setX509version
public void setX509version(int x509version)(Code)

Parameters:
  x509version - The X.509 protocol version to use when generating acertificate



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.