public boolean isShared(KerberosIdentityDescriptor that) {
    return hasSamePrincipal(that) || hasSameKeytab(that);
  }
@return true if the given identity has the same principal or keytab as me
ambari-server/src/main/java/org/apache/ambari/server/state/kerberos/KerberosIdentityDescriptor.java