Identity.addCertificate

Identity.addCertificate

Class Overview | Class Members | This Package | All Packages

Syntax
public void addCertificate( Certificate certificate ) throws KeyManagementException
Parameters
certificate
the certificate to be added.
Description
Adds a certificate for this identity. If the identity has a public key, the public key in the certificate must be the same, and if the identity does not have a public key, the identity's public key is set to be that specified in the certificate.

Exceptions
KeyManagementException if the certificate is not valid, if the public key in the certificate being added conflicts with this identity's public key, or if another exception occurs.