@Role public interface KeyStore
| Modifier and Type | Method and Description |
|---|---|
CertifiedKeyPair |
retrieve(StoreReference store)
Retrieve a private key from a given store that may contains only a single key.
|
CertifiedKeyPair |
retrieve(StoreReference store,
byte[] password)
Retrieve the certified key pair from a given store that may contains only a single key and decrypt it using
the given password.
|
CertifiedKeyPair |
retrieve(StoreReference store,
CertifiedPublicKey publicKey)
Retrieve the certified key pair from a given store that match the given certificate.
|
CertifiedKeyPair |
retrieve(StoreReference store,
CertifiedPublicKey publicKey,
byte[] password)
Retrieve the certified key pair from a given store that match the given certificate and decrypt it using
the given password.
|
void |
store(StoreReference store,
CertifiedKeyPair keyPair)
Store a private key and its certificate into a given store.
|
void |
store(StoreReference store,
CertifiedKeyPair keyPair,
byte[] password)
Store a private key and its certificate into a given store, encrypting the key with a password.
|
void store(StoreReference store, CertifiedKeyPair keyPair) throws KeyStoreException
store - the store where to save the key and its certificate.keyPair - the key pair to be stored.KeyStoreException - on error.void store(StoreReference store, CertifiedKeyPair keyPair, byte[] password) throws KeyStoreException
store - the store where to save the key and its certificate.keyPair - the key pair to be stored.password - the password to encrypt the private key.KeyStoreException - on error.CertifiedKeyPair retrieve(StoreReference store) throws KeyStoreException
store - the single-key store where the key is stored with its certificate.KeyStoreException - on error.CertifiedKeyPair retrieve(StoreReference store, byte[] password) throws KeyStoreException
store - the single-key store where the key is stored encrypted with its certificate.password - the password to decrypt the private key.KeyStoreException - on error.CertifiedKeyPair retrieve(StoreReference store, CertifiedPublicKey publicKey) throws KeyStoreException
store - the multi-key store where the key has been stored with its certificate.publicKey - for which the private key is requested.KeyStoreException - on error.CertifiedKeyPair retrieve(StoreReference store, CertifiedPublicKey publicKey, byte[] password) throws KeyStoreException
store - the multi-key store where the key has been stored encrypted with its certificatepublicKey - for which the private key is requested.password - the password to decrypt the private key.KeyStoreException - on error.Copyright © 2004–2015 XWiki. All rights reserved.