| |
|
| 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.
|
defaultKeystorePath | final public static String defaultKeystorePath(Code) | | Default location of the keystore. Used when the value is not supplied by
the user.
|
getAlias | String getAlias()(Code) | | Returns the alias used to access the keystore entry. |
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 |
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 |
|
|
|