-
Notifications
You must be signed in to change notification settings - Fork 30
CryptoStore
Endi S. Dewata edited this page Jul 29, 2022
·
1 revision
CryptoToken token = ... CryptoStore store = token.getCryptoStore();
To get all certificates:
X509Certificate certs = store.getCertificates();
To delete a certificate:
store.deleteCert(cert);
To get all public keys:
PublicKey[] publicKeys = store.getPublicKeys();
To delete a public key:
store.deletePublicKey(publicKey);
To get all private keys:
PrivateKey[] privateKeys = store.getPrivateKeys();
To delete a private key:
store.deletePrivateKey(privateKey);
To get all symmetric keys:
SymmetricKey[] symmetricKeys = store.getSymmetricKeys();
To delete a symmetric key:
store.deleteSymmetricKey(symmetricKey);