java.lang.Object | ||
↳ | sun.security.x509.Extension | |
↳ | sun.security.x509.InhibitAnyPolicyExtension |
This class represents the Inhibit Any-Policy Extension.
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)
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | IDENT | Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type. | |||||||||
String | NAME | Attribute names. | |||||||||
String | SKIP_CERTS |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnyPolicy_Id | Object identifier for "any-policy" |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor for this object.
| |||||||||||
Create the extension from the passed DER encoded value of the same.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete the attribute value.
| |||||||||||
Encode this extension value to the output stream.
| |||||||||||
Get the attribute value.
| |||||||||||
Return an enumeration of names of attributes existing within this
attribute.
| |||||||||||
Return the name of this attribute.
| |||||||||||
Set the attribute value.
| |||||||||||
Return user readable form of extension.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
Default constructor for this object.
skipCerts | specifies the depth of the certification path. Use value of -1 to request unlimited depth. |
---|
IOException |
---|
Create the extension from the passed DER encoded value of the same.
critical | criticality flag to use. Must be true for this extension. |
---|---|
value | a byte array holding the DER-encoded extension value. |
ClassCastException | if value is not an array of bytes |
---|---|
IOException | on error. |
Delete the attribute value.
name | name of attribute to delete. Must be SKIP_CERTS. |
---|
IOException | on error. In this case, IOException will always be thrown, because the only attribute, SKIP_CERTS, is required. |
---|
Encode this extension value to the output stream.
out | the DerOutputStream to encode the extension to. |
---|
IOException |
---|
Get the attribute value.
name | name of attribute to get. Must be SKIP_CERTS. |
---|
IOException | on error |
---|
Return an enumeration of names of attributes existing within this attribute.
Set the attribute value.
name | name of attribute to set. Must be SKIP_CERTS. |
---|---|
obj | value to which attribute is to be set. Must be Integer type. |
IOException | on error |
---|
Return user readable form of extension.