|
JSS 3.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is an interface for a permanent repository of cryptographic objects, such as keys, certs, and passwords.
| Method Summary | |
void |
deleteCert(X509Certificate cert)
Deletes a certificate from a token. |
void |
deletePrivateKey(PrivateKey key)
Deletes the given PrivateKey from the CryptoToken. |
X509Certificate[] |
getCertificates()
Returns all user certificates stored on this token. |
byte[] |
getEncryptedPrivateKeyInfo(X509Certificate cert,
PBEAlgorithm pbeAlg,
Password pw,
int iteration)
|
PrivateKey[] |
getPrivateKeys()
Returns all private keys stored on this token. |
void |
importPrivateKey(byte[] key,
PrivateKey.Type type)
Imports a raw private key into this token. |
| Method Detail |
public void importPrivateKey(byte[] key,
PrivateKey.Type type)
throws TokenException,
KeyAlreadyImportedException
key - The private key.
TokenException - If the key cannot be imported to this token.
KeyAlreadyImportedException - If the key already exists on this token.
public PrivateKey[] getPrivateKeys()
throws TokenException
TokenException - If an error occurs on the token while
gathering the keys.
public void deletePrivateKey(PrivateKey key)
throws NoSuchItemOnTokenException,
TokenException
key - A PrivateKey to be permanently deleted. It must reside
on this token.
NoSuchItemOnTokenException - If the given privae key does
not reside on this token.
TokenException - If an error occurs on the token while
deleting the key.
public byte[] getEncryptedPrivateKeyInfo(X509Certificate cert,
PBEAlgorithm pbeAlg,
Password pw,
int iteration)
public X509Certificate[] getCertificates()
throws TokenException
TokenException - If an error occurs on the token while
gathering the certificates.
public void deleteCert(X509Certificate cert)
throws NoSuchItemOnTokenException,
TokenException
cert - A certificate to be deleted from this token. The cert
must actually reside on this token.
NoSuchItemOnTokenException - If the given cert does not
reside on this token.
TokenException - If an error occurred on the token while
deleting the certificate.
|
JSS 3.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||