java.lang.Object | ||
↳ | sun.security.x509.Extension | |
↳ | sun.security.x509.PolicyConstraintsExtension |
This class defines the certificate extension which specifies the Policy constraints.
The policy constraints extension can be used in certificates issued to CAs. The policy constraints extension constrains path validation in two ways. It can be used to prohibit policy mapping or require that each certificate in a path contain an acceptable policy identifier.
The ASN.1 syntax for this is (IMPLICIT tagging is defined in the module definition):
PolicyConstraints ::= SEQUENCE { requireExplicitPolicy [0] SkipCerts OPTIONAL, inhibitPolicyMapping [1] SkipCerts OPTIONAL } 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 | INHIBIT | ||||||||||
String | NAME | Attribute names. | |||||||||
String | REQUIRE |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a PolicyConstraintsExtension object with both
require explicit policy and inhibit policy mapping.
| |||||||||||
Create a PolicyConstraintsExtension object with specified
criticality and both require explicit policy and inhibit
policy mapping.
| |||||||||||
Create the extension from its DER encoded value and criticality.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete the attribute value.
| |||||||||||
Write the extension to the DerOutputStream.
| |||||||||||
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 the extension as user readable string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
Create a PolicyConstraintsExtension object with both require explicit policy and inhibit policy mapping. The extension is marked non-critical.
require | require explicit policy (-1 for optional). |
---|---|
inhibit | inhibit policy mapping (-1 for optional). |
IOException |
---|
Create a PolicyConstraintsExtension object with specified criticality and both require explicit policy and inhibit policy mapping.
critical | true if the extension is to be treated as critical. |
---|---|
require | require explicit policy (-1 for optional). |
inhibit | inhibit policy mapping (-1 for optional). |
IOException |
---|
Create the extension from its DER encoded value and criticality.
critical | true if the extension is to be treated as critical. |
---|---|
value | an array of DER encoded bytes of the actual value. |
ClassCastException | if value is not an array of bytes |
---|---|
IOException | on error. |
Write the extension to the DerOutputStream.
out | the DerOutputStream to write the extension to. |
---|
IOException | on encoding errors. |
---|
Return an enumeration of names of attributes existing within this attribute.
Set the attribute value.
name | the name of the attribute (e.g. "x509.info.key") |
---|---|
obj | the attribute object. |
IOException |
---|
Return the extension as user readable string.