01: package org.bouncycastle.asn1.cmp;
02:
03: import org.bouncycastle.asn1.ASN1Encodable;
04: import org.bouncycastle.asn1.ASN1Null;
05: import org.bouncycastle.asn1.DERObject;
06:
07: public class PKIConfirmContent extends ASN1Encodable {
08: private ASN1Null val;
09:
10: private PKIConfirmContent(ASN1Null val) {
11: this .val = val;
12: }
13:
14: public static PKIConfirmContent getInstance(Object o) {
15: if (o instanceof PKIConfirmContent) {
16: return (PKIConfirmContent) o;
17: }
18:
19: if (o instanceof ASN1Null) {
20: return new PKIConfirmContent((ASN1Null) o);
21: }
22:
23: throw new IllegalArgumentException("Invalid object: "
24: + o.getClass().getName());
25: }
26:
27: /**
28: * <pre>
29: * PKIConfirmContent ::= NULL
30: * </pre>
31: * @return a basic ASN.1 object representation.
32: */
33: public DERObject toASN1Object() {
34: return val;
35: }
36: }
|