Class JavaKeyStore
- All Implemented Interfaces:
AutoCloseable
Load, inspect, modify, convert, and save Java keystore data.
Chilkat.JavaKeyStore is the Chilkat class for working with Java
keystore data. It supports private-key entries with aliases and certificate
chains, trusted certificate entries, and secret-key entries. It can load and
save keystores, import private-key entries from PFX, add trusted certificates
and symmetric keys, retrieve private keys and certificate chains, manage
aliases, change private-key passwords, and convert keystore contents to PEM,
PFX, or JWK Set format.
Load and save keystores
Read Java keystore data into memory, inspect or modify its contents, and save the updated keystore when changes are complete.
Private-key entries
Work with private keys stored under aliases, including their associated certificate chains and entry-specific passwords.
Trusted certificates
Add, retrieve, and manage trusted certificate entries used for trust stores, TLS validation, and Java-based security configuration.
Secret-key entries
Store and retrieve symmetric secret keys when the keystore is used for application key material in addition to certificates.
Import and convert
Import private-key entries from PFX/P12 and export or convert keystore contents to PEM, PFX, or JWK Set format.
Alias management
Enumerate aliases, locate entries, rename or manage entry names, and organize keys and certificates by application-specific identifiers.
Common pattern:
Load the keystore with its store password, locate the needed entry by alias,
retrieve the private key, certificate chain, trusted certificate, or secret
key, then save the keystore or export the selected material in the format
required by the target system. Use JavaKeyStore when the data is
organized as a Java keystore; use Cert, PrivateKey,
Pfx, or TrustedRoots when working directly with
individual certificate or key objects.
For an extended overview, see JavaKeyStore Class Overview.
</section>
Instances hold a native Chilkat object: close them with ChilkatObject.close() (try-with-resources) when
done; an unclosed instance is freed when it becomes unreachable.
- See Also:
- Online reference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidImports the private-key entries found in thePfxobject supplied inpfx.voidaddPrivateKey(Cert cert, String aliasName, String password)Adds a private-key entry using the certificate incert.voidaddSecretKey(String encodedKeyBytes, String encoding, String algorithm, String aliasName, String password)Adds a symmetric secret-key entry.voidaddTrustedCert(Cert cert, String aliasName)Addscertas a trusted-certificate entry under the alias supplied inaliasName.voidcertChainAt(int index, CertChain certChain)LoadscertChainwith the certificate chain belonging to the private-key entry at zero-based indexindex.voidcertChainOf(String aliasName, boolean caseSensitive, CertChain certChain)Searches the private-key entries for an alias equal toaliasNameand loads the matching certificate chain intocertChain.voidchangePassword(int index, String oldPassword, String newPassword)Changes the password protecting the private-key entry atindex.intReturns the number of private-key entries currently contained in the keystore.intReturns the number of symmetric secret-key entries currently contained in the keystore.intReturns the number of trusted-certificate entries currently contained in the keystore.getPrivateKeyAlias(int index)Returns the alias of the private-key entry atindex.booleanControls whether a complete certificate chain is required when a private-key entry is added.getSecretKey(String password, int index, String encoding)Recovers the secret-key entry atindexand returns its raw key bytes encoded usingencoding.getSecretKeyAlias(int index)Returns the alias of the secret-key entry atindex.getTrustedCertAlias(int index)Returns the alias of the trusted-certificate entry atindex.booleanControls validation of the keystore-level integrity digest when a JKS or JCEKS store is loaded.voidLoads a JKS or JCEKS keystore from the bytes currently contained inbd.voidloadEncoded(String password, String jksEncData, String encoding)Decodes the serialized keystore text injksEncDatausing the binary encoding named byencoding, then loads the resulting JKS or JCEKS bytes.voidLoads a JKS or JCEKS keystore from the file atpath.voidloadJwkSet(String password, JsonObject jwkSet)Loads supported keys from the JWK Set injwkSetinto this Java keystore object.voidprivateKeyAt(String password, int index, PrivateKey privKey)LoadsprivKeywith the private key at zero-based indexindex.voidprivateKeyOf(String password, String aliasName, boolean caseSensitive, PrivateKey privKey)Searches the private-key entries for an alias equal toaliasNameand loads the matching private key intoprivKey.voidremoveEntry(int entryType, int index)Removes an entry selected by type and zero-based index.voidChanges the alias of an entry selected by type and zero-based index.voidsetRequireCompleteChain(boolean value)Sets theRequireCompleteChainproperty; seegetRequireCompleteChain().voidsetVerifyKeyedDigest(boolean value)Sets theVerifyKeyedDigestproperty; seegetVerifyKeyedDigest().voidSerializes the current Java keystore and writes the complete JKS or JCEKS file image tobd.toEncodedString(String password, String encoding)Serializes the current Java keystore and returns the resulting JKS or JCEKS bytes encoded as text usingencoding.voidSerializes the current Java keystore and writes the complete JKS or JCEKS file image topath.voidtoJwkSet(String password, StringBuilder sbJwkSet)Exports supported private-key and secret-key entries as a JSON Web Key Set and writes the JSON tosbJwkSet.voidConverts the keystore material supported by thePemclass and loads the result intopemObj.voidConverts the certificates and recoverable private-key entries in the Java keystore and loads the result intopfxObj.voidtrustedCertAt(int index, Cert cert)Loadscertwith the trusted certificate at the zero-based indexindex.voidtrustedCertOf(String aliasName, boolean caseSensitive, Cert cert)Searches the trusted-certificate entries for an alias equal toaliasNameand loads the matching certificate intocert.voiduseCertVault(XmlCertVault vault)Addsvaultto the certificate sources Chilkat searches when it needs issuer certificates to build a private-key certificate chain.Methods inherited from class com.chilkatsoft.chilkat2.ChilkatObject
close, getDebugLogFilePath, getLastErrorHtml, getLastErrorText, getLastErrorXml, getLastMethodSuccess, getVerboseLogging, getVersion, isClosed, setDebugLogFilePath, setLastMethodSuccess, setVerboseLogging, toString
-
Constructor Details
-
JavaKeyStore
public JavaKeyStore()Creates a newJavaKeyStoreobject.
-
-
Method Details
-
getNumPrivateKeys
public int getNumPrivateKeys()Returns the number of private-key entries currently contained in the keystore. Each private-key entry has an alias, a protected private key, and an associated certificate chain. Valid private-key indexes range from0throughNumPrivateKeys - 1.Entry password versus store password: The private key in each entry may have its own password. That entry password is supplied to methods such asandprivateKeyAt(String, int, PrivateKey). It is distinct from the store password used when loading or saving the complete keystore.privateKeyOf(String, String, boolean, PrivateKey)- Returns:
- the value of the
NumPrivateKeysproperty (read-only)
-
getNumSecretKeys
public int getNumSecretKeys()Returns the number of symmetric secret-key entries currently contained in the keystore. Examples include AES, HMAC, Blowfish, and ChaCha key material. Valid indexes range from0throughNumSecretKeys - 1.JCEKS entry type: Secret-key entries require the JCEKS format; the traditional JKS format stores private-key entries and trusted-certificate entries but does not provide the JCEKS secret-key entry type.- Returns:
- the value of the
NumSecretKeysproperty (read-only)
-
getNumTrustedCerts
public int getNumTrustedCerts()Returns the number of trusted-certificate entries currently contained in the keystore. Each entry contains one certificate and an alias. Valid indexes range from0throughNumTrustedCerts - 1.A trusted entry is not necessarily a root CA: Java keystores can mark any certificate as trusted. The application or Java security configuration decides what that trust means; this class does not validate the certificate merely because it is stored as a trusted-certificate entry.- Returns:
- the value of the
NumTrustedCertsproperty (read-only)
-
getRequireCompleteChain
public boolean getRequireCompleteChain()Controls whether a complete certificate chain is required when a private-key entry is added. The default is. When enabled,trueandaddPrivateKey(Cert, String, String)fail if Chilkat cannot build the chain through the issuing certificates to a root or self-signed certificate. When set toaddPfx(Pfx, String, String), an incomplete chain may be stored.Providing missing issuers: Callfalseto make additional certificates available for chain construction. Trusted CA roots supplied through Chilkat trusted-root facilities may also help complete the chain. This property affects chain construction while adding entries; it does not perform application trust-policy validation.useCertVault(XmlCertVault)- Returns:
- the value of the
RequireCompleteChainproperty
-
setRequireCompleteChain
public void setRequireCompleteChain(boolean value)Sets theRequireCompleteChainproperty; seegetRequireCompleteChain().- Parameters:
value- the new value
-
getVerifyKeyedDigest
public boolean getVerifyKeyedDigest()Controls validation of the keystore-level integrity digest when a JKS or JCEKS store is loaded. The default is. In this mode, the load method uses the supplied store password to verify that the serialized keystore has not been altered and that the password is appropriate for the store.trueWhen set to
, a load method may be called with an empty password to read the store without validating its integrity digest.falseSecurity consequence: Disabling this check does not decrypt private or secret key entries and does not make their entry passwords unnecessary. It only skips store-level integrity verification, so corrupted or modified keystore data may be accepted. Leave this property enabled for normal use.
- Returns:
- the value of the
VerifyKeyedDigestproperty
-
setVerifyKeyedDigest
public void setVerifyKeyedDigest(boolean value)Sets theVerifyKeyedDigestproperty; seegetVerifyKeyedDigest().- Parameters:
value- the new value
-
addPfx
Imports the private-key entries found in thePfxobject supplied inpfx. One Java keystore private-key entry is added for each private key in the PFX/PKCS #12 data. Certificates from the PFX are used to construct the certificate chain associated with each imported private key.aliasNamespecifies the alias for the first imported private key. If it is empty, Chilkat chooses an alias in this order:- The subject common name of the private key certificate.
- The subject email address.
- The PKCS #12 friendly-name attribute.
- The certificate serial number.
If the PFX contains additional private keys, their aliases are chosen automatically using the same preference order.
passwordbecomes the entry password used to protect the imported private keys in the Java keystore.What is not imported: Standalone certificates from the PFX are not added as trusted-certificate entries. They are used only as possible members of private-key certificate chains. Call
separately when a certificate should become an explicit trust entry.Chain completion: IfaddTrustedCert(Cert, String)is enabled, the method fails when any imported private-key chain cannot be completed.getRequireCompleteChain()can supply additional issuer certificates.useCertVault(XmlCertVault)- Parameters:
pfx- thepfxargument (notnull)aliasName- thealiasNameargument (notnull)password- thepasswordargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
addPrivateKey
Adds a private-key entry using the certificate incert. TheCertobject must have access to its associated private key. Chilkat obtains that private key and builds the certificate chain beginning withcert.aliasNameis the entry alias. If it is empty, Chilkat chooses an alias from the certificate in this order: subject common name, subject email address, then certificate serial number.passwordis the password used to protect the private key inside the keystore.Certificate-chain construction: A private-key entry consists of the private key and the certificate chain for its public key. If
is enabled, the method fails unless the chain can be completed. UsegetRequireCompleteChain()when additional issuer certificates are needed.useCertVault(XmlCertVault)- Parameters:
cert- thecertargument (notnull)aliasName- thealiasNameargument (notnull)password- thepasswordargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
addSecretKey
public void addSecretKey(String encodedKeyBytes, String encoding, String algorithm, String aliasName, String password)Adds a symmetric secret-key entry.encodedKeyBytescontains the key bytes encoded as text, andencodingnames that encoding, such ashex,base64, orbase64url.algorithmrecords the key algorithm, such asAES,HMAC_SHA256, orCHACHA.aliasNameis the alias, andpasswordis the password used to protect the key entry.The algorithm value describes the intended key type; it does not transform the supplied key bytes. For example, a 128-bit AES key is supplied as exactly 16 decoded bytes and
algorithmis set toAES.JCEKS and legacy protection: Secret-key entries are stored in JCEKS form. JCEKS protects these entries using the legacy
PBEWithMD5AndTripleDESmechanism defined by that format. Use this format when interoperability requires JCEKS, and protect both the entry password and the resulting file.- Parameters:
encodedKeyBytes- theencodedKeyBytesargument (notnull)encoding- theencodingargument (notnull)algorithm- thealgorithmargument (notnull)aliasName- thealiasNameargument (notnull)password- thepasswordargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
addTrustedCert
Addscertas a trusted-certificate entry under the alias supplied inaliasName. A trusted-certificate entry contains the certificate only; it does not contain a private key or a certificate chain.Trust is an application decision: Adding a certificate as a trusted entry does not prove that it is a CA certificate, validate its signature chain, or make it universally trustworthy. It records that the keystore owner intends to trust that certificate for the consuming Java application or security configuration.- Parameters:
cert- thecertargument (notnull)aliasName- thealiasNameargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
certChainAt
LoadscertChainwith the certificate chain belonging to the private-key entry at zero-based indexindex. Valid indexes range from0through. The first certificate contains the public key corresponding to the private key; subsequent certificates are issuing certificates toward the root.getNumPrivateKeys()- 1- Parameters:
index- theindexargumentcertChain- thecertChainargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
certChainOf
Searches the private-key entries for an alias equal toaliasNameand loads the matching certificate chain intocertChain.caseSensitivecontrols whether the alias comparison is case-sensitive. The first certificate in the chain contains the public key corresponding to the private key.Alias case behavior: Java keystore implementations can differ in alias case handling. Avoid aliases that differ only by case, even when a case-sensitive search is requested.- Parameters:
aliasName- thealiasNameargument (notnull)caseSensitive- thecaseSensitiveargumentcertChain- thecertChainargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
changePassword
Changes the password protecting the private-key entry atindex. Indexing begins at0.oldPasswordis the current entry password andnewPasswordis the new entry password.This does not change only the store password: A JKS/JCEKS store can have one password for store-level integrity and separate passwords for private-key entries. To migrate a keystore from one common password to another, load it using the old store password, call this method for each private-key entry that uses the old password, and then save the store using the new store password.- Parameters:
index- theindexargumentoldPassword- theoldPasswordargument (notnull)newPassword- thenewPasswordargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
getPrivateKeyAlias
Returns the alias of the private-key entry atindex. Indexing begins at0; valid indexes range from0through.Alias portability: Java keystore alias case behavior is implementation-dependent. Avoid creating aliases that differ only by letter case, even when a Chilkat lookup method offers a case-sensitive option.getNumPrivateKeys()- 1- Parameters:
index- theindexargument- Returns:
- the result (never
null) - Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
getSecretKey
Recovers the secret-key entry atindexand returns its raw key bytes encoded usingencoding.passwordis the password protecting that entry. Indexing begins at0. Common output encodings includehex,base64, andbase64url.Secret material: The returned text represents the actual symmetric key bytes, not a fingerprint or identifier. Avoid writing it to logs, command histories, or unprotected configuration files.- Parameters:
password- thepasswordargument (notnull)index- theindexargumentencoding- theencodingargument (notnull)- Returns:
- the result (never
null) - Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
getSecretKeyAlias
Returns the alias of the secret-key entry atindex. Indexing begins at0; valid indexes range from0through.getNumSecretKeys()- 1- Parameters:
index- theindexargument- Returns:
- the result (never
null) - Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
getTrustedCertAlias
Returns the alias of the trusted-certificate entry atindex. Indexing begins at0; valid indexes range from0through.getNumTrustedCerts()- 1- Parameters:
index- theindexargument- Returns:
- the result (never
null) - Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
loadBd
Loads a JKS or JCEKS keystore from the bytes currently contained inbd.passwordis the store password used for integrity verification whenis enabled.getVerifyKeyedDigest()- Parameters:
password- thepasswordargument (notnull)bd- thebdargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
loadEncoded
Decodes the serialized keystore text injksEncDatausing the binary encoding named byencoding, then loads the resulting JKS or JCEKS bytes. Common encodings includebase64,hex, andbase64url.passwordis the store password used for integrity verification.Encoding is not encryption:encodingdescribes how binary keystore bytes are represented as text. It does not name the keystore format and does not protect the data cryptographically.- Parameters:
password- thepasswordargument (notnull)jksEncData- thejksEncDataargument (notnull)encoding- theencodingargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
loadFile
Loads a JKS or JCEKS keystore from the file atpath.passwordis the store password used to verify the keystore-level integrity digest whenis enabled.JKS/JCEKS versus PKCS #12: This class is intended for the proprietary Java JKS and JCEKS formats. Modern Java releases use PKCS #12 as the default keystore type; usegetVerifyKeyedDigest()Chilkat.Pfxwhen the input is a.p12or.pfxcontainer.- Parameters:
password- thepasswordargument (notnull)path- thepathargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
loadJwkSet
Loads supported keys from the JWK Set injwkSetinto this Java keystore object.passwordis used to protect imported private-key and secret-key entries. A JWKkidvalue is used as the entry alias when present.JWK Set structure:jwkSetshould contain a JSON object with akeysarray. Private asymmetric JWKs contain private parameters such asd; symmetric JWKs usekty: "oct"and contain the key ink. Treat the input as sensitive whenever it contains private or symmetric key material.- Parameters:
password- thepasswordargument (notnull)jwkSet- thejwkSetargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
privateKeyAt
LoadsprivKeywith the private key at zero-based indexindex.passwordis the password protecting that private-key entry. Valid indexes range from0through.Use the entry password:getNumPrivateKeys()- 1passwordis not necessarily the password used to load the complete keystore. Java keystores can protect each private-key entry with a different password.- Parameters:
password- thepasswordargument (notnull)index- theindexargumentprivKey- theprivKeyargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
privateKeyOf
public void privateKeyOf(String password, String aliasName, boolean caseSensitive, PrivateKey privKey)Searches the private-key entries for an alias equal toaliasNameand loads the matching private key intoprivKey.passwordis the password protecting that key entry, andcaseSensitivecontrols whether the alias comparison is case-sensitive.- Parameters:
password- thepasswordargument (notnull)aliasName- thealiasNameargument (notnull)caseSensitive- thecaseSensitiveargumentprivKey- theprivKeyargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
removeEntry
public void removeEntry(int entryType, int index)Removes an entry selected by type and zero-based index.entryTypeuses the following documented values:entryTypeEntry selected1Trusted-certificate entry;indexindexes the trusted-certificate list.2Private-key entry;indexindexes the private-key list.indexis an index within the selected entry category, not an index across all entries in the keystore.In-memory change: This method modifies the current object. Call
,toFile(String, String), or anothertoBd(String, BinData)To*method to persist the updated keystore.- Parameters:
entryType- theentryTypeargumentindex- theindexargument- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
setAlias
Changes the alias of an entry selected by type and zero-based index.entryTypeuses the following documented values:entryTypeEntry selected1Trusted-certificate entry;indexindexes the trusted-certificate list.2Private-key entry;indexindexes the private-key list.aliasNameis the new alias. The index is relative to the selected category, not the complete set of keystore entries.Choose aliases carefully: Aliases identify entries within a Java keystore, but case sensitivity is implementation-dependent. Use unique aliases that do not differ only by case.
- Parameters:
entryType- theentryTypeargumentindex- theindexargumentaliasName- thealiasNameargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
toBd
Serializes the current Java keystore and writes the complete JKS or JCEKS file image tobd.passwordis the store password used to create the keystore-level integrity digest.Separate entry protection: Private-key and secret-key entries may have passwords distinct from the store password. Serializing withpassworddoes not automatically change those entry passwords.- Parameters:
password- thepasswordargument (notnull)bd- thebdargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
toEncodedString
Serializes the current Java keystore and returns the resulting JKS or JCEKS bytes encoded as text usingencoding. Common choices includebase64,hex, andbase64url.passwordis the store password used to create the keystore-level integrity digest.- Parameters:
password- thepasswordargument (notnull)encoding- theencodingargument (notnull)- Returns:
- the result (never
null) - Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
toFile
Serializes the current Java keystore and writes the complete JKS or JCEKS file image topath.passwordis the store password used to create the keystore-level integrity digest.Password roles: The store password may differ from the passwords protecting individual private-key or secret-key entries. Saving with a new store password does not automatically change each entry password; usefor private-key entries when needed.changePassword(int, String, String)- Parameters:
password- thepasswordargument (notnull)path- thepathargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
toJwkSet
Exports supported private-key and secret-key entries as a JSON Web Key Set and writes the JSON tosbJwkSet.passwordis used to recover protected key entries. Each exported JWK receives akidvalue derived from the keystore alias.Sensitive output: A JWK containing private parameterdor symmetric parameterkcontains secret key material. Protect the resulting JSON as carefully as the original keystore and do not log or transmit it over an untrusted channel.- Parameters:
password- thepasswordargument (notnull)sbJwkSet- thesbJwkSetargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
toPemObj
Converts the keystore material supported by thePemclass and loads the result intopemObj.passwordis used to decrypt private-key entries during the conversion.Output handling: The destinationPemobject receives the converted material in memory. Its own export methods and properties control whether later PEM text is encrypted and how it is formatted. Treat unencrypted private-key PEM as sensitive data.- Parameters:
password- thepasswordargument (notnull)pemObj- thepemObjargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
toPfxObj
Converts the certificates and recoverable private-key entries in the Java keystore and loads the result intopfxObj.passwordis used to decrypt private-key entries during the conversion.Conversion password:passwordis an input password for recovering the Java keystore entries. It is not automatically the password that will protect a later serialized PFX; use the destinationPfxexport method to choose the PFX password.- Parameters:
password- thepasswordargument (notnull)pfxObj- thepfxObjargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
trustedCertAt
Loadscertwith the trusted certificate at the zero-based indexindex. Valid indexes range from0through. The returned certificate is the single certificate stored in the trust entry and has no private key merely by virtue of being trusted.getNumTrustedCerts()- 1- Parameters:
index- theindexargumentcert- thecertargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
trustedCertOf
Searches the trusted-certificate entries for an alias equal toaliasNameand loads the matching certificate intocert.caseSensitivecontrols whether the alias comparison is case-sensitive.- Parameters:
aliasName- thealiasNameargument (notnull)caseSensitive- thecaseSensitiveargumentcert- thecertargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-
useCertVault
Addsvaultto the certificate sources Chilkat searches when it needs issuer certificates to build a private-key certificate chain. This is useful before callingoraddPrivateKey(Cert, String, String)when the supplied certificate material does not already contain the complete chain.Lookup source only: Registering a certificate vault does not copy all vault certificates into the Java keystore and does not create trusted-certificate entries. Certificates are consulted only as candidates for chain construction.addPfx(Pfx, String, String)- Parameters:
vault- thevaultargument (notnull)- Throws:
ChilkatException- if the operation fails;ChilkatException.getLastErrorText()says why
-