Source code: cryptix/pki/ExtendedKeyStoreSpi.java
1 /* $Id: ExtendedKeyStoreSpi.java,v 1.3 2005/03/13 17:47:10 woudt Exp $
2 *
3 * Copyright (C) 1999-2005 The Cryptix Foundation Limited.
4 * All rights reserved.
5 *
6 * Use, modification, copying and distribution of this software is subject
7 * the terms and conditions of the Cryptix General Licence. You should have
8 * received a copy of the Cryptix General License along with this library;
9 * if not, you can download a copy from http://www.cryptix.org/ .
10 */
11
12 package cryptix.pki;
13
14
15 import java.security.KeyStoreException;
16 import java.security.KeyStoreSpi;
17
18
19 /**
20 * DOCUMENT ME
21 *
22 * @author Edwin Woudt <edwin@cryptix.org>
23 * @version $Revision: 1.3 $
24 */
25 public abstract class ExtendedKeyStoreSpi extends KeyStoreSpi {
26
27
28 // Extended methods
29 // ..........................................................................
30
31
32 /**
33 * Returns the keybundle identified by the given alias.
34 *
35 * @param alias the alias for the entry to return
36 * @return the keybundle entry identified by alias or null if the
37 * given alias does not identify a keybundle entry
38 * @throws KeyStoreException if the keystore has not been initialized
39 * (loaded) yet
40 */
41 public abstract KeyBundle engineGetKeyBundle(String alias)
42 throws KeyStoreException;
43
44
45 /**
46 * Returns if the entry identified by alias is a keybundle entry.
47 *
48 * @param alias the alias for the entry to check
49 * @return true if the entry identified by alias is a keybundle entry,
50 * false otherwise
51 * @throws KeyStoreException if the keystore has not been initialized
52 * (loaded) yet
53 */
54 public abstract boolean engineIsKeyBundleEntry(String alias)
55 throws KeyStoreException;
56
57
58 /**
59 * Stores the given keybundle in this store.
60 *
61 * @param bundle the bundle to store
62 * @return the alias under which the bundle is stored
63 * @throws KeyStoreException if the keystore has not been initialized
64 * (loaded) yet
65 */
66 public abstract String engineSetKeyBundleEntry(KeyBundle bundle)
67 throws KeyStoreException;
68
69 }