< prev index next >

src/java.base/share/classes/java/security/Identity.java

Print this page

        

*** 183,193 **** /* Should we throw an exception if this is already set? */ public void setPublicKey(PublicKey key) throws KeyManagementException { check("setIdentityPublicKey"); this.publicKey = key; ! certificates = new Vector<Certificate>(); } /** * Specifies a general information string for this identity. * --- 183,193 ---- /* Should we throw an exception if this is already set? */ public void setPublicKey(PublicKey key) throws KeyManagementException { check("setIdentityPublicKey"); this.publicKey = key; ! certificates = new Vector<>(); } /** * Specifies a general information string for this identity. *
*** 246,256 **** throws KeyManagementException { check("addIdentityCertificate"); if (certificates == null) { ! certificates = new Vector<Certificate>(); } if (publicKey != null) { if (!keyEquals(publicKey, certificate.getPublicKey())) { throw new KeyManagementException( "public key different from cert public key"); --- 246,256 ---- throws KeyManagementException { check("addIdentityCertificate"); if (certificates == null) { ! certificates = new Vector<>(); } if (publicKey != null) { if (!keyEquals(publicKey, certificate.getPublicKey())) { throw new KeyManagementException( "public key different from cert public key");
< prev index next >