what-the-bank/sources/org/bouncycastle/asn1/OIDTokenizer.java

32 lines
754 B
Java

package org.bouncycastle.asn1;
/* loaded from: classes6.dex */
public class OIDTokenizer {
private int index = 0;
private String oid;
public String nextToken() {
int i = this.index;
if (i == -1) {
return null;
}
int indexOf = this.oid.indexOf(46, i);
if (indexOf == -1) {
String substring = this.oid.substring(this.index);
this.index = -1;
return substring;
}
String substring2 = this.oid.substring(this.index, indexOf);
this.index = indexOf + 1;
return substring2;
}
public boolean hasMoreTokens() {
return this.index != -1;
}
public OIDTokenizer(String str) {
this.oid = str;
}
}