|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.ASN1Encodable
org.bouncycastle.asn1.DERObject
org.bouncycastle.asn1.DERInteger
be.cardon.asn1.x509.extensions.InhibitAnyPolicy
public class InhibitAnyPolicy
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 |
---|
public InhibitAnyPolicy(int skipCerts)
skipCerts
.
public InhibitAnyPolicy(org.bouncycastle.asn1.DERInteger skipCerts)
skipCerts
.
public InhibitAnyPolicy(java.math.BigInteger skipCerts)
skipCerts
.
public InhibitAnyPolicy(byte[] skipCerts)
skipCerts
.
Method Detail |
---|
public int getSkipCerts()
skipCerts
value.
This function is an alias for DERInteger.getValue().intValue()
public static InhibitAnyPolicy getInstance(java.lang.Object obj)
DERInteger
,
a ASN1OctetString
, or a ASN1TaggedObject
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |