Lines Matching refs:certificate
224 * Adds a certificate for this identity. If the identity has a public
225 * key, the public key in the certificate must be the same, and if
227 * public key is set to be that specified in the certificate.
231 * as its argument to see if it's ok to add a certificate.
233 * @param certificate the certificate to be added.
235 * @exception KeyManagementException if the certificate is not valid,
236 * if the public key in the certificate being added conflicts with
241 * adding a certificate.
245 public void addCertificate(Certificate certificate)
254 if (!keyEquals(publicKey, certificate.getPublicKey())) {
259 publicKey = certificate.getPublicKey();
261 certificates.addElement(certificate);
278 * Removes a certificate from this identity.
282 * as its argument to see if it's ok to remove a certificate.
284 * @param certificate the certificate to be removed.
286 * @exception KeyManagementException if the certificate is
291 * removing a certificate.
295 public void removeCertificate(Certificate certificate)
299 certificates.removeElement(certificate);