For the latest news and information visit The GNU Crypto project | ||
Prev Class | Next Class | Frames | No Frames | |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.crypto.keyring.BaseKeyring
gnu.crypto.keyring.GnuPrivateKeyring
Field Summary | |
static int | |
protected String | |
protected int | |
protected String | |
protected int | |
protected String |
Fields inherited from class gnu.crypto.keyring.BaseKeyring | |
keyring , keyring2 |
Fields inherited from interface gnu.crypto.keyring.IKeyring | |
KEYRING_DATA_IN , KEYRING_DATA_OUT , KEYRING_PASSWORD |
Constructor Summary | |
|
Method Summary | |
boolean |
|
boolean |
|
boolean |
|
Certificate[] |
|
Key |
|
PublicKey |
|
protected void |
|
void |
|
void |
|
void |
|
protected void |
|
Methods inherited from class gnu.crypto.keyring.BaseKeyring | |
add , aliases , containsAlias , fixAlias , get , load , load , remove , reset , size , store , store |
public static final int USAGE
- Field Value:
- 3
protected String cipher
protected int keylen
protected String mac
protected int maclen
protected String mode
public GnuPrivateKeyring()
public GnuPrivateKeyring(String mac, int maclen, String cipher, String mode, int keylen)
public boolean containsCertPath(String alias)
- Specified by:
- containsCertPath in interface IPrivateKeyring
public boolean containsPrivateKey(String alias)
- Specified by:
- containsPrivateKey in interface IPrivateKeyring
public boolean containsPublicKey(String alias)
- Specified by:
- containsPublicKey in interface IPrivateKeyring
public Certificate[] getCertPath(String alias)
- Specified by:
- getCertPath in interface IPrivateKeyring
public Key getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException
- Specified by:
- getPrivateKey in interface IPrivateKeyring
public PublicKey getPublicKey(String alias)
- Specified by:
- getPublicKey in interface IPrivateKeyring
protected void load(InputStream in, char[] password) throws IOException
- Overrides:
- load in interface BaseKeyring
public void putCertPath(String alias, Certificate[] path)
- Specified by:
- putCertPath in interface IPrivateKeyring
public void putPrivateKey(String alias, Key key, char[] password)
- Specified by:
- putPrivateKey in interface IPrivateKeyring
public void putPublicKey(String alias, PublicKey key)
- Specified by:
- putPublicKey in interface IPrivateKeyring
protected void store(OutputStream out, char[] password) throws IOException
- Overrides:
- store in interface BaseKeyring