what-the-bank/sources/org/bouncycastle/asn1/x509/GeneralNamesBuilder.java

31 lines
881 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.asn1.x509;
import java.util.Vector;
/* loaded from: classes6.dex */
public class GeneralNamesBuilder {
private Vector names = new Vector();
public GeneralNames build() {
int size = this.names.size();
GeneralName[] generalNameArr = new GeneralName[size];
for (int i = 0; i != size; i++) {
generalNameArr[i] = (GeneralName) this.names.elementAt(i);
}
return new GeneralNames(generalNameArr);
}
public GeneralNamesBuilder addNames(GeneralNames generalNames) {
GeneralName[] names = generalNames.getNames();
for (int i = 0; i != names.length; i++) {
this.names.addElement(names[i]);
}
return this;
}
public GeneralNamesBuilder addName(GeneralName generalName) {
this.names.addElement(generalName);
return this;
}
}