The inhibit any-policy extension can be used in certificates issued to CAs. The inhibit any-policy indicates that the special any-policy 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 any- policy is no longer permitted. For example, a value of one indicates that any-policy may be processed in certificates issued by the sub- ject of this certificate, but not in additional certificates in the path.
This extension MUST be critical.
The ASN.1 syntax for this extension is:
id-ce-inhibitAnyPolicy OBJECT IDENTIFIER ::= { id-ce 54 }
InhibitAnyPolicy ::= SkipCerts
SkipCerts ::= INTEGER (0..MAX)
Extension
| Modifier and Type | Field and Description |
|---|---|
| public static ObjectIdentifier | AnyPolicy_Id
Object identifier for "any-policy" |
| public static final String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | InhibitAnyPolicyExtension(int
specifies the depth of the certification path.
Use value of -1 to request unlimited depth. skipCerts)Default constructor for this object. |
| public | InhibitAnyPolicyExtension(Boolean
criticality flag to use. Must be true for this
extension. critical, Object a byte array holding the DER-encoded extension value. value)Create the extension from the passed DER encoded value of the same. |
| Modifier and Type | Method and Description |
|---|---|
| public void | encode(DerOutputStream
the DerOutputStream to encode the extension to. out)Overrides sun. Implements sun. Encode this extension value to the output stream. |
| private void | |
| public String | Returns: name of extension.Overrides sun. Return the name of this extension. |
| public int | |
| public String |
| AnyPolicy_Id | back to summary |
|---|---|
| public static ObjectIdentifier AnyPolicy_Id Object identifier for "any-policy" | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| skipCerts | back to summary |
|---|---|
| private int skipCerts | |
| InhibitAnyPolicyExtension | back to summary |
|---|---|
| public InhibitAnyPolicyExtension(int skipCerts) Default constructor for this object.
| |
| InhibitAnyPolicyExtension | back to summary |
|---|---|
| public InhibitAnyPolicyExtension(Boolean critical, Object value) throws IOException Create the extension from the passed DER encoded value of the same.
| |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream out) Overrides sun. Implements sun. Encode this extension value to the output stream.
| |
| encodeThis | back to summary |
|---|---|
| private void encodeThis() | |
| getName | back to summary |
|---|---|
| public String getName() Overrides sun. Return the name of this extension. | |
| getSkipCerts | back to summary |
|---|---|
| public int getSkipCerts() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides sun. Return user readable form of extension. | |