what-the-bank/sources/org/bouncycastle/asn1/eac/CertificateHolderReference....

54 lines
1.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.asn1.eac;
import java.io.UnsupportedEncodingException;
/* loaded from: classes6.dex */
public class CertificateHolderReference {
private static final String ReferenceEncoding = "ISO-8859-1";
private String countryCode;
private String holderMnemonic;
private String sequenceNumber;
public String getSequenceNumber() {
return this.sequenceNumber;
}
public String getHolderMnemonic() {
return this.holderMnemonic;
}
public byte[] getEncoded() {
StringBuilder sb = new StringBuilder();
sb.append(this.countryCode);
sb.append(this.holderMnemonic);
sb.append(this.sequenceNumber);
try {
return sb.toString().getBytes("ISO-8859-1");
} catch (UnsupportedEncodingException e) {
throw new IllegalStateException(e.toString());
}
}
public String getCountryCode() {
return this.countryCode;
}
/* JADX INFO: Access modifiers changed from: package-private */
public CertificateHolderReference(byte[] bArr) {
try {
String str = new String(bArr, "ISO-8859-1");
this.countryCode = str.substring(0, 2);
this.holderMnemonic = str.substring(2, str.length() - 5);
this.sequenceNumber = str.substring(str.length() - 5);
} catch (UnsupportedEncodingException e) {
throw new IllegalStateException(e.toString());
}
}
public CertificateHolderReference(String str, String str2, String str3) {
this.countryCode = str;
this.holderMnemonic = str2;
this.sequenceNumber = str3;
}
}