what-the-bank/sources/o/C15485grm.java

113 lines
3.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.security.cert.PolicyNode;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
/* renamed from: o.grm, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15485grm implements PolicyNode {
boolean a;
PolicyNode b;
private int c;
List d;
protected Set e;
private Set f;
private String g;
public C15485grm(List list, int i, Set set, PolicyNode policyNode, Set set2, String str, boolean z) {
this.d = list;
this.c = i;
this.e = set;
this.b = policyNode;
this.f = set2;
this.g = str;
this.a = z;
}
@Override // java.security.cert.PolicyNode
public final Iterator getChildren() {
return this.d.iterator();
}
public final String toString() {
return d("");
}
private String d(String str) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append(str);
stringBuffer.append(this.g);
stringBuffer.append(" {\n");
for (int i = 0; i < this.d.size(); i++) {
C15485grm c15485grm = (C15485grm) this.d.get(i);
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(" ");
stringBuffer.append(c15485grm.d(sb.toString()));
}
stringBuffer.append(str);
stringBuffer.append("}\n");
return stringBuffer.toString();
}
public final Object clone() {
return b();
}
private C15485grm b() {
HashSet hashSet = new HashSet();
Iterator it = this.e.iterator();
while (it.hasNext()) {
hashSet.add(new String((String) it.next()));
}
HashSet hashSet2 = new HashSet();
Iterator it2 = this.f.iterator();
while (it2.hasNext()) {
hashSet2.add(new String((String) it2.next()));
}
C15485grm c15485grm = new C15485grm(new ArrayList(), this.c, hashSet, null, hashSet2, new String(this.g), this.a);
Iterator it3 = this.d.iterator();
while (it3.hasNext()) {
C15485grm b = ((C15485grm) it3.next()).b();
b.b = c15485grm;
c15485grm.d.add(b);
b.b = c15485grm;
}
return c15485grm;
}
@Override // java.security.cert.PolicyNode
public final boolean isCritical() {
return this.a;
}
@Override // java.security.cert.PolicyNode
public final String getValidPolicy() {
return this.g;
}
@Override // java.security.cert.PolicyNode
public final Set getPolicyQualifiers() {
return this.f;
}
@Override // java.security.cert.PolicyNode
public final PolicyNode getParent() {
return this.b;
}
@Override // java.security.cert.PolicyNode
public final Set getExpectedPolicies() {
return this.e;
}
@Override // java.security.cert.PolicyNode
public final int getDepth() {
return this.c;
}
}