Difference between revisions of "JSS CryptoStore"

From Dogtag
Jump to: navigation, search
m (Private Keys)
m (Replaced content with "This page has been moved to https://github.com/dogtagpki/jss/wiki/CryptoStore.")
 
Line 1: Line 1:
= Getting CryptoStore =
+
This page has been moved to https://github.com/dogtagpki/jss/wiki/CryptoStore.
 
 
<pre>
 
CryptoToken token = ...
 
CryptoStore store = token.getCryptoStore();
 
</pre>
 
 
 
= Certificates =
 
 
 
To get all certificates:
 
 
 
<pre>
 
X509Certificate certs = store.getCertificates();
 
</pre>
 
 
 
To delete a certificate:
 
 
 
<pre>
 
store.deleteCert(cert);
 
</pre>
 
 
 
= Public Keys =
 
 
 
To get all public keys:
 
 
 
<pre>
 
PublicKey[] publicKeys = store.getPublicKeys();
 
</pre>
 
 
 
To delete a public key:
 
 
 
<pre>
 
store.deletePublicKey(publicKey);
 
</pre>
 
 
 
= Private Keys =
 
 
 
To get all private keys:
 
 
 
<pre>
 
PrivateKey[] privateKeys = store.getPrivateKeys();
 
</pre>
 
 
 
To delete a private key:
 
 
 
<pre>
 
store.deletePrivateKey(privateKey);
 
</pre>
 
 
 
= Symmetric Keys =
 
 
 
To get all symmetric keys:
 
 
 
<pre>
 
SymmetricKey[] symmetricKeys = store.getSymmetricKeys();
 
</pre>
 
 
 
To delete a symmetric key:
 
 
 
<pre>
 
store.deleteSymmetricKey(symmetricKey);
 
</pre>
 
 
 
= References =
 
 
 
* [[JSS API]]
 

Latest revision as of 18:07, 29 July 2022

This page has been moved to https://github.com/dogtagpki/jss/wiki/CryptoStore.