public InhibitAnyPolicyExtension(Boolean critical,Object value) throws IOException {
  this.extensionId=PKIXExtensions.InhibitAnyPolicy_Id;
  if (!critical.booleanValue())   throw new IOException("Criticality cannot be false for " + "InhibitAnyPolicy");
  this.critical=critical.booleanValue();
  this.extensionValue=(byte[])value;
  DerValue val=new DerValue(this.extensionValue);
  if (val.tag != DerValue.tag_Integer)   throw new IOException("Invalid encoding of InhibitAnyPolicy: " + "data not integer");
  if (val.data == null)   throw new IOException("Invalid encoding of InhibitAnyPolicy: " + "null data");
  int skipCertsValue=val.getInteger();
  if (skipCertsValue < -1)   throw new IOException("Invalid value for skipCerts");
  if (skipCertsValue == -1) {
    this.skipCerts=Integer.MAX_VALUE;
  }
 else {
    this.skipCerts=skipCertsValue;
  }
}

public InhibitAnyPolicyExtension ( Boolean critical , Object value ) throws IOException { this . extensionId = PKIXExtensions . InhibitAnyPolicy_Id ; if ( ! critical . booleanValue ( ) ) throw new IOException ( "Criticality cannot be false for " + "InhibitAnyPolicy" ) ; this . critical = critical . booleanValue ( ) ; this . extensionValue = ( byte [ ] ) value ; DerValue val = new DerValue ( this . extensionValue ) ; if ( val . tag != DerValue . tag_Integer ) throw new IOException ( "Invalid encoding of InhibitAnyPolicy: " + "data not integer" ) ; if ( val . data == null ) throw new IOException ( "Invalid encoding of InhibitAnyPolicy: " + "null data" ) ; int skipCertsValue = val . getInteger ( ) ; if ( skipCertsValue < - 1 ) throw new IOException ( "Invalid value for skipCerts" ) ; if ( skipCertsValue == - 1 ) { this . skipCerts = Integer . MAX_VALUE ; } else { this . skipCerts = skipCertsValue ; } }
create the extension from the passed der encoded value of the same .
