gnu.crypto.keyring
Class GnuPublicKeyring
- IKeyring, IPublicKeyring
public class GnuPublicKeyring
boolean | containsCertificate(String alias) - Tests if this keyring contains a certificate entry with the specified
alias .
|
Certificate | getCertificate(String alias) - Returns a certificate that has the given
alias , or
null if this keyring has no such entry.
|
protected void | load(InputStream in, char[] password)
|
void | putCertificate(String alias, Certificate cert) - Adds a certificate in this keyring, with the given
alias .
What happens if there is already a certificate entry with this alias?
|
protected void | store(OutputStream out, char[] password)
|
add , aliases , containsAlias , fixAlias , get , load , load , remove , reset , size , store , store |
USAGE
public static final int USAGE
- 1
GnuPublicKeyring
public GnuPublicKeyring()
GnuPublicKeyring
public GnuPublicKeyring(String mac,
int macLen)
containsCertificate
public boolean containsCertificate(String alias)
Tests if this keyring contains a certificate entry with the specified
alias
.
- containsCertificate in interface IPublicKeyring
alias
- The alias of the certificate to check.
true
if this keyring contains a certificate entry
that has the given alias
; false
otherwise.
getCertificate
public Certificate getCertificate(String alias)
Returns a certificate that has the given alias
, or
null
if this keyring has no such entry.
- getCertificate in interface IPublicKeyring
alias
- The alias of the certificate to find.
- The certificate with the designated
alias
, or
null
if none found.
load
protected void load(InputStream in,
char[] password)
throws IOException
- load in interface BaseKeyring
putCertificate
public void putCertificate(String alias,
Certificate cert)
Adds a certificate in this keyring, with the given
alias
.
What happens if there is already a certificate entry with this alias?
- putCertificate in interface IPublicKeyring
alias
- The alias of this certificate entry.cert
- The certificate.
store
protected void store(OutputStream out,
char[] password)
throws IOException
- store in interface BaseKeyring
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.