Skip to content

CryptoStore

Endi S. Dewata edited this page Jul 29, 2022 · 1 revision

Getting CryptoStore

CryptoToken token = ...
CryptoStore store = token.getCryptoStore();

Certificates

To get all certificates:

X509Certificate certs = store.getCertificates();

To delete a certificate:

store.deleteCert(cert);

Public Keys

To get all public keys:

PublicKey[] publicKeys = store.getPublicKeys();

To delete a public key:

store.deletePublicKey(publicKey);

Private Keys

To get all private keys:

PrivateKey[] privateKeys = store.getPrivateKeys();

To delete a private key:

store.deletePrivateKey(privateKey);

Symmetric Keys

To get all symmetric keys:

SymmetricKey[] symmetricKeys = store.getSymmetricKeys();

To delete a symmetric key:

store.deleteSymmetricKey(symmetricKey);