39 lines
1.2 KiB
Java
39 lines
1.2 KiB
Java
|
package org.bouncycastle.asn1.cmp;
|
||
|
|
||
|
import org.bouncycastle.asn1.ASN1Object;
|
||
|
import org.bouncycastle.asn1.ASN1Primitive;
|
||
|
import org.bouncycastle.asn1.ASN1Sequence;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class POPODecKeyChallContent extends ASN1Object {
|
||
|
private ASN1Sequence content;
|
||
|
|
||
|
public Challenge[] toChallengeArray() {
|
||
|
int size = this.content.size();
|
||
|
Challenge[] challengeArr = new Challenge[size];
|
||
|
for (int i = 0; i != size; i++) {
|
||
|
challengeArr[i] = Challenge.getInstance(this.content.getObjectAt(i));
|
||
|
}
|
||
|
return challengeArr;
|
||
|
}
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
|
||
|
public ASN1Primitive toASN1Primitive() {
|
||
|
return this.content;
|
||
|
}
|
||
|
|
||
|
public static POPODecKeyChallContent getInstance(Object obj) {
|
||
|
if (obj instanceof POPODecKeyChallContent) {
|
||
|
return (POPODecKeyChallContent) obj;
|
||
|
}
|
||
|
if (obj != null) {
|
||
|
return new POPODecKeyChallContent(ASN1Sequence.getInstance(obj));
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
private POPODecKeyChallContent(ASN1Sequence aSN1Sequence) {
|
||
|
this.content = aSN1Sequence;
|
||
|
}
|
||
|
}
|