| java.lang.Object sun.security.x509.Extension sun.security.x509.PolicyConstraintsExtension
PolicyConstraintsExtension | public class PolicyConstraintsExtension extends Extension implements CertAttrSet(Code) | | 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)
author: Amit Kapoor author: Hemma Prafullchandra version: 1.9 See Also: Extension See Also: CertAttrSet |
Field Summary | |
final public static String | IDENT Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type. | final public static String | INHIBIT | final public static String | NAME Attribute names. | final public static String | REQUIRE |
Constructor Summary | |
public | PolicyConstraintsExtension(int require, int inhibit) Create a PolicyConstraintsExtension object with both
require explicit policy and inhibit policy mapping. | public | PolicyConstraintsExtension(Boolean critical, int require, int inhibit) Create a PolicyConstraintsExtension object with specified
criticality and both require explicit policy and inhibit
policy mapping. | public | PolicyConstraintsExtension(Boolean critical, Object value) Create the extension from its DER encoded value and criticality. |
IDENT | final public static String IDENT(Code) | | Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
PolicyConstraintsExtension | public PolicyConstraintsExtension(int require, int inhibit) throws IOException(Code) | | Create a PolicyConstraintsExtension object with both
require explicit policy and inhibit policy mapping. The
extension is marked non-critical.
Parameters: require - require explicit policy (-1 for optional). Parameters: inhibit - inhibit policy mapping (-1 for optional). |
PolicyConstraintsExtension | public PolicyConstraintsExtension(Boolean critical, int require, int inhibit) throws IOException(Code) | | Create a PolicyConstraintsExtension object with specified
criticality and both require explicit policy and inhibit
policy mapping.
Parameters: critical - true if the extension is to be treated as critical. Parameters: require - require explicit policy (-1 for optional). Parameters: inhibit - inhibit policy mapping (-1 for optional). |
PolicyConstraintsExtension | public PolicyConstraintsExtension(Boolean critical, Object value) throws IOException(Code) | | Create the extension from its DER encoded value and criticality.
Parameters: critical - true if the extension is to be treated as critical. Parameters: value - Array of DER encoded bytes of the actual value. exception: IOException - on error. |
decode | public void decode(InputStream in) throws IOException(Code) | | Decode the extension from the InputStream.
Parameters: in - the InputStream to unmarshal the contents from. exception: IOException - on decoding or validity errors. |
encode | public void encode(OutputStream out) throws IOException(Code) | | Write the extension to the DerOutputStream.
Parameters: out - the DerOutputStream to write the extension to. exception: IOException - on encoding errors. |
getElements | public Enumeration getElements()(Code) | | Return an enumeration of names of attributes existing within this
attribute.
|
getName | public String getName()(Code) | | Return the name of this attribute.
|
toString | public String toString()(Code) | | Return the extension as user readable string.
|
|
|