|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object extended bygnu.crypto.keyring.BaseKeyring extended bygnu.crypto.keyring.GnuPublicKeyring
| Field Summary | |
static int |
USAGE
|
| 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 | |
GnuPublicKeyring()
|
|
GnuPublicKeyring(java.lang.String mac,
int macLen)
|
|
| Method Summary | |
boolean |
containsCertificate(java.lang.String alias)
Tests if this keyring contains a certificate entry with the specified alias. |
java.security.cert.Certificate |
getCertificate(java.lang.String alias)
Returns a certificate that has the given alias, or
null if this keyring has no such entry. |
protected void |
load(java.io.InputStream in,
char[] password)
|
void |
putCertificate(java.lang.String alias,
java.security.cert.Certificate cert)
Adds a certificate in this keyring, with the given alias. |
protected void |
store(java.io.OutputStream out,
char[] password)
|
| Methods inherited from class gnu.crypto.keyring.BaseKeyring |
add, aliases, containsAlias, fixAlias, get, load, remove, reset, size, store |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gnu.crypto.keyring.IKeyring |
add, aliases, containsAlias, get, load, remove, reset, size, store |
| Field Detail |
public static final int USAGE
| Constructor Detail |
public GnuPublicKeyring(java.lang.String mac, int macLen)
public GnuPublicKeyring()
| Method Detail |
public boolean containsCertificate(java.lang.String alias)
IPublicKeyringTests if this keyring contains a certificate entry with the specified
alias.
containsCertificate in interface IPublicKeyringalias - The alias of the certificate to check.
true if this keyring contains a certificate entry
that has the given alias; false otherwise.public java.security.cert.Certificate getCertificate(java.lang.String alias)
IPublicKeyringReturns a certificate that has the given alias, or
null if this keyring has no such entry.
getCertificate in interface IPublicKeyringalias - The alias of the certificate to find.
alias, or
null if none found.public void putCertificate(java.lang.String alias, java.security.cert.Certificate cert)
IPublicKeyringAdds a certificate in this keyring, with the given alias.
What happens if there is already a certificate entry with this alias?
putCertificate in interface IPublicKeyringalias - The alias of this certificate entry.cert - The certificate.protected void load(java.io.InputStream in, char[] password) throws java.io.IOException
load in class BaseKeyringjava.io.IOExceptionprotected void store(java.io.OutputStream out, char[] password) throws java.io.IOException
store in class BaseKeyringjava.io.IOException
|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||