Class InhibitAnyPolicy

java.lang.Object
org.bouncycastle.asn1.ASN1Object
se.swedenconnect.cert.extensions.InhibitAnyPolicy
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class InhibitAnyPolicy extends org.bouncycastle.asn1.ASN1Object
InhibitAnyPolicy X.509 extension implementation for extending Bouncycastle
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    InhibitAnyPolicy(int skipcerts)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    fromExtensions(org.bouncycastle.asn1.x509.Extensions extensions)
    Creates an instance of the InhibitAnyPolicy extension
    Creates an instance of the InhibitAnyPolicy extension
    org.bouncycastle.asn1.ASN1Primitive
    Produce an object suitable for an ASN1OutputStream.

    Methods inherited from class org.bouncycastle.asn1.ASN1Object

    encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • OID

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OID
  • Constructor Details

    • InhibitAnyPolicy

      public InhibitAnyPolicy(int skipcerts)
      Constructor
      Parameters:
      skipcerts - skipcerts parameter
  • Method Details

    • getInstance

      public static InhibitAnyPolicy getInstance(Object obj)
      Creates an instance of the InhibitAnyPolicy extension
      Parameters:
      obj - object holding extension data
      Returns:
      InhibitAnyPolicy extension
    • fromExtensions

      public static InhibitAnyPolicy fromExtensions(org.bouncycastle.asn1.x509.Extensions extensions)
      Creates an instance of the InhibitAnyPolicy extension
      Parameters:
      extensions - extensions
      Returns:
      InhibitAnyPolicy extension
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Produce an object suitable for an ASN1OutputStream.
       InhibitAnyPolicy ::= SkipCerts
       
       SkipCerts ::= INTEGER (0..MAX)
       
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object
      Returns:
      ASN.1 object of the extension
    • toString

      public String toString()
      Overrides:
      toString in class Object