gnu.crypto.keyring
public interface IPublicKeyring extends IKeyring
An interface for keyrings that contain trusted (by the owner) public credentials (incl. certificates).
Version: $Revision: 1.3 $
See Also: IKeyring
Method Summary | |
---|---|
boolean | containsCertificate(String alias) Tests if this keyring contains a certificate entry with the specified
|
Certificate | getCertificate(String alias) Returns a certificate that has the given |
void | putCertificate(String alias, Certificate cert) Adds a certificate in this keyring, with the given What happens if there is already a certificate entry with this alias? |
Tests if this keyring contains a certificate entry with the specified
alias
.
Parameters: alias The alias of the certificate to check.
Returns: true
if this keyring contains a certificate entry
that has the given alias
; false
otherwise.
Returns a certificate that has the given alias
, or
null
if this keyring has no such entry.
Parameters: alias The alias of the certificate to find.
Returns: The certificate with the designated alias
, or
null
if none found.
Adds a certificate in this keyring, with the given alias
.
What happens if there is already a certificate entry with this alias?
Parameters: alias The alias of this certificate entry. cert The certificate.