package com.l7tech.server.security.cert;

import com.l7tech.common.io.CertUtils;
import com.l7tech.security.cert.TrustedCert;
import java.math.BigInteger;
import java.security.cert.X509Certificate;

class b {
   final TrustedCert a;
   final X509Certificate b;
   final String c;
   final String d;
   final String e;
   final BigInteger f;

   b(TrustedCert var1) {
      this.a = var1;
      this.b = var1.getCertificate();
      this.c = var1.getSubjectDn();
      this.d = var1.getSki();
      this.e = CertUtils.getIssuerDN(this.b);
      this.f = this.b.getSerialNumber();
   }

   @Override
   public boolean equals(Object var1) {
      if (this == var1) {
         return true;
      } else if (var1 != null && this.getClass() == var1.getClass()) {
         b var2 = (b)var1;
         return this.a != null ? this.a.equals(var2.a) : var2.a == null;
      } else {
         return false;
      }
   }

   @Override
   public int hashCode() {
      return this.a != null ? this.a.hashCode() : 0;
   }
}
