package o; /* renamed from: o.gmf, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public abstract class AbstractC15291gmf extends AbstractC15242glD { public String b; public String c; public String e; public AbstractC15291gmf(glS gls, String str, String str2, String str3) { super(gls); char charAt; this.c = null; this.b = null; this.e = null; if (str.length() != 2) { StringBuilder sb = new StringBuilder("Country code length must be 2, was "); sb.append(str.length()); throw new IllegalArgumentException(sb.toString()); } char charAt2 = str.charAt(0); if (charAt2 < 'A' || charAt2 > 'Z' || (charAt = str.charAt(1)) < 'A' || charAt > 'Z') { throw new IllegalArgumentException("Unknown country code: ".concat(String.valueOf(str))); } if (str2.length() == 0) { throw new IllegalArgumentException("Holder mnemonic too short, must have at least one character"); } if (str2.length() > 9) { StringBuilder sb2 = new StringBuilder("Holder mnemonic too long, max=9, was "); sb2.append(str2.length()); throw new IllegalArgumentException(sb2.toString()); } if (str3.length() != 5) { StringBuilder sb3 = new StringBuilder("Sequence number must have length 5, was "); sb3.append(str3.length()); throw new IllegalArgumentException(sb3.toString()); } for (int i = 0; i < str3.length(); i++) { if (!Character.isLetterOrDigit(str3.charAt(i))) { throw new IllegalArgumentException("Sequence number can only contain alphanumerics: ".concat(String.valueOf(str3))); } } this.c = str; this.b = str2; this.e = str3; } /* JADX INFO: Access modifiers changed from: protected */ public AbstractC15291gmf(glS gls, byte[] bArr) { super(gls); this.c = null; this.b = null; this.e = null; String str = new String(bArr); this.c = str.substring(0, 2); this.b = str.substring(2, str.length() - 5); this.e = str.substring(str.length() - 5); } @Override // o.AbstractC15242glD public final String d() { StringBuilder sb = new StringBuilder(); sb.append(this.c); sb.append("/"); sb.append(this.b); sb.append("/"); sb.append(this.e); return sb.toString(); } @Override // o.AbstractC15242glD protected final byte[] a() { StringBuilder sb = new StringBuilder(); sb.append(this.c); sb.append(this.b); sb.append(this.e); return sb.toString().getBytes(); } }