Information

0
Story Points

Technologies

Decompiled Java File
package iaik.x509.extensions.qualified.structures;

import iaik.asn1.ASN1Object;
import iaik.asn1.ASN1Type;
import iaik.asn1.CodingException;
import iaik.asn1.ObjectID;
import iaik.asn1.SEQUENCE;
import iaik.x509.extensions.qualified.structures.QCStatementInfo;
import iaik.x509.extensions.qualified.structures.SemanticsInformation;
import iaik.x509.extensions.qualified.structures.UnknownQCStatementInfo;
import iaik.x509.extensions.qualified.structures.a;
import iaik.x509.extensions.qualified.structures.etsi.QcEuCompliance;
import iaik.x509.extensions.qualified.structures.etsi.QcEuLimitValue;
import iaik.x509.extensions.qualified.structures.etsi.QcEuRetentionPeriod;

public class QCStatement implements ASN1Type {
   // $FF: synthetic field
   static Class e;
   // $FF: synthetic field
   static Class g;
   // $FF: synthetic field
   static Class h;
   // $FF: synthetic field
   static Class f;
   // $FF: synthetic field
   static Class d;
   QCStatementInfo a;
   ObjectID b;
   private static a c = new a();

   static Class a(String var0) {
      try {
         return Class.forName(var0);
      } catch (ClassNotFoundException var2) {
         throw new NoClassDefFoundError(var2.getMessage());
      }
   }

   public String toString() {
      StringBuffer var1 = new StringBuffer();
      var1.append(this.b.getName() + "\n");
      if(this.a != null) {
         var1.append(this.a);
      }

      return var1.toString();
   }

   public ASN1Object toASN1Object() throws CodingException {
      if(this.b == null) {
         throw new CodingException("Cannot create ASN.1 object. Missing statement ID!");
      } else {
         SEQUENCE var1 = new SEQUENCE();
         var1.addComponent(this.b);
         if(this.a != null) {
            ASN1Object var2 = this.a.toASN1Object();
            if(var2 != null) {
               var1.addComponent(var2);
            }
         }

         return var1;
      }
   }

   public static void register(ObjectID var0, Class var1) {
      c.register(e != null?e:(e = a("iaik.x509.extensions.qualified.structures.QCStatementInfo")), var0, var1);
   }

   public QCStatementInfo getStatementInfo() {
      return this.a;
   }

   public ObjectID getStatementID() {
      return this.b;
   }

   public void decode(ASN1Object var1) throws CodingException {
      this.b = (ObjectID)var1.getComponentAt(0);
      if(var1.countComponents() == 2) {
         try {
            this.a = create(this.b);
            this.a.decode(var1.getComponentAt(1));
         } catch (InstantiationException var2) {
            this.a = new UnknownQCStatementInfo(this.b);
            this.a.decode(var1.getComponentAt(1));
         }
      }
   }

   public static QCStatementInfo create(ObjectID var0) throws InstantiationException {
      return (QCStatementInfo)c.create(e != null?e:(e = a("iaik.x509.extensions.qualified.structures.QCStatementInfo")), var0, false);
   }

   public QCStatement(QCStatementInfo var1) {
      this.a = var1;
      this.b = var1.getStatementID();
   }

   public QCStatement(ObjectID var1) {
      this.b = var1;
   }

   public QCStatement() {
   }

   static {
      register(SemanticsInformation.statementID, d != null?d:(d = a("iaik.x509.extensions.qualified.structures.SemanticsInformation")));
      register(QcEuCompliance.statementID, f != null?f:(f = a("iaik.x509.extensions.qualified.structures.etsi.QcEuCompliance")));
      register(QcEuLimitValue.statementID, h != null?h:(h = a("iaik.x509.extensions.qualified.structures.etsi.QcEuLimitValue")));
      register(QcEuRetentionPeriod.statementID, g != null?g:(g = a("iaik.x509.extensions.qualified.structures.etsi.QcEuRetentionPeriod")));
   }
}
Page generated: Oct 19, 2017 2:34:48 PM