1 11 12 package org.eclipse.update.internal.security; 13 14 import java.security.cert.*; 15 16 19 public class CertificatePair { 20 private Certificate root; 21 private Certificate issuer; 22 23 24 25 29 public Certificate getRoot() { 30 return root; 31 } 32 33 37 public void setRoot(Certificate root) { 38 this.root = root; 39 } 40 41 45 public Certificate getIssuer() { 46 return issuer; 47 } 48 49 53 public void setIssuer(Certificate issuer) { 54 this.issuer = issuer; 55 } 56 57 60 public boolean equals(Object obj) { 61 62 if (obj==null) return false; 63 64 if (!(obj instanceof CertificatePair)) return false; 65 66 if (root==null || issuer==null) return false; 67 68 CertificatePair pair = (CertificatePair)obj; 69 70 return (root.equals(pair.getRoot()) && issuer.equals(pair.getIssuer())); 71 } 72 73 } 74 | Popular Tags |