Information

1
Story Points

Technologies

Decompiled Java File
package iaik.x509.extensions;

import iaik.asn1.ASN1Object;
import iaik.asn1.INTEGER;
import iaik.asn1.ObjectID;
import iaik.x509.V3Extension;
import iaik.x509.X509ExtensionException;
import java.math.BigInteger;

public class InhibitAnyPolicy extends V3Extension {
   int a;
   public static final ObjectID oid = new ObjectID("2.5.29.54", "InhibitAnyPolicy");

   public String toString() {
      return "skipCerts: " + this.a;
   }

   public ASN1Object toASN1Object() throws X509ExtensionException {
      return new INTEGER(this.a);
   }

   public void init(ASN1Object var1) throws X509ExtensionException {
      this.a = ((BigInteger)var1.getValue()).intValue();
      if(this.a < 0) {
         throw new X509ExtensionException("Invalid skipCerts value. Must be >= 0!");
      }
   }

   public int hashCode() {
      return oid.hashCode();
   }

   public int getSkipCerts() {
      return this.a;
   }

   public ObjectID getObjectID() {
      return oid;
   }

   public InhibitAnyPolicy(int var1) {
      if(var1 < 0) {
         throw new IllegalArgumentException("Invalid skipCerts value. Must be >= 0!");
      } else {
         this.a = var1;
      }
   }

   public InhibitAnyPolicy() {
      this.a = 0;
   }
}
Page generated: Oct 19, 2017 2:34:15 PM