be.cardon.asn1.x509.extensions
Class InhibitAnyPolicy

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.DERObject
          extended by org.bouncycastle.asn1.DERInteger
              extended by be.cardon.asn1.x509.extensions.InhibitAnyPolicy
All Implemented Interfaces:
org.bouncycastle.asn1.DEREncodable, org.bouncycastle.asn1.DERTags

public class InhibitAnyPolicy
extends org.bouncycastle.asn1.DERInteger

Extension InhibitAnyPolicy.

Documentation from RFC 3280:

The inhibit any-policy extension can be used in certificates issued to CAs. The inhibit any-policy indicates that the special anyPolicy OID, with the value { 2 5 29 32 0 }, is not considered an explicit match for other certificate policies. The value indicates the number of additional certificates that may appear in the path before anyPolicy is no longer permitted. For example, a value of one indicates that anyPolicy may be processed in certificates issued by the subject of this certificate, but not in additional certificates in the path.

This extension MUST be critical.

ASN.1 definitions:

   id-ce-inhibitAnyPolicy OBJECT IDENTIFIER ::=  { id-ce 54 }

   InhibitAnyPolicy ::= SkipCerts

   SkipCerts ::= INTEGER (0..MAX)
   


Field Summary
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Fields inherited from interface org.bouncycastle.asn1.DERTags
APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERAL_STRING, GENERALIZED_TIME, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SEQUENCE_OF, SET, SET_OF, T61_STRING, TAGGED, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING, VISIBLE_STRING
 
Constructor Summary
InhibitAnyPolicy(java.math.BigInteger skipCerts)
          Creates an new instance with the given skipCerts.
InhibitAnyPolicy(byte[] skipCerts)
          Creates an new instance with the given skipCerts.
InhibitAnyPolicy(org.bouncycastle.asn1.DERInteger skipCerts)
          Creates an new instance with the given skipCerts.
InhibitAnyPolicy(int skipCerts)
          Creates an new instance with the given skipCerts.
 
Method Summary
static InhibitAnyPolicy getInstance(java.lang.Object obj)
          Returns an instance from a DERInteger, a ASN1OctetString, or a ASN1TaggedObject object.
 int getSkipCerts()
          Returns the skipCerts value.
 
Methods inherited from class org.bouncycastle.asn1.DERInteger
equals, getInstance, getPositiveValue, getValue, hashCode, toString
 
Methods inherited from class org.bouncycastle.asn1.DERObject
toASN1Object
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
getDEREncoded, getDERObject, getEncoded, getEncoded
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InhibitAnyPolicy

public InhibitAnyPolicy(int skipCerts)
Creates an new instance with the given skipCerts.


InhibitAnyPolicy

public InhibitAnyPolicy(org.bouncycastle.asn1.DERInteger skipCerts)
Creates an new instance with the given skipCerts.


InhibitAnyPolicy

public InhibitAnyPolicy(java.math.BigInteger skipCerts)
Creates an new instance with the given skipCerts.


InhibitAnyPolicy

public InhibitAnyPolicy(byte[] skipCerts)
Creates an new instance with the given skipCerts.

Method Detail

getSkipCerts

public int getSkipCerts()
Returns the skipCerts value.

This function is an alias for DERInteger.getValue().intValue()

.


getInstance

public static InhibitAnyPolicy getInstance(java.lang.Object obj)
Returns an instance from a DERInteger, a ASN1OctetString, or a ASN1TaggedObject object.