Class KJUR.asn1.x509.PolicyInformation
Extends
KJUR.asn1.ASN1Object.
PolicyInformation ASN.1 structure class
Defined in: asn1x509-1.0.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
KJUR.asn1.x509.PolicyInformation(params)
PolicyInformation ASN.1 structure class
This class represents
PolicyInformation defined in RFC 5280 4.2.1.4.
|
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified, params
- Methods borrowed from class KJUR.asn1.ASN1Object:
- getEncodedHex, getLengthHexFromValue, getValueHex, tohex
Class Detail
KJUR.asn1.x509.PolicyInformation(params)
PolicyInformation ASN.1 structure class
This class represents
PolicyInformation defined in RFC 5280 4.2.1.4.
PolicyInformation ::= SEQUENCE {
policyIdentifier CertPolicyId,
policyQualifiers SEQUENCE SIZE (1..MAX) OF
PolicyQualifierInfo OPTIONAL }
CertPolicyId ::= OBJECT IDENTIFIER
Its constructor can have following parameters:
- {String}policyoid - policy OID (ex. "1.2.3.4.5")
- {Object}array - array of KJUR.asn1.x509.PolicyQualifierInfo parameters (OPTIONAL)
new KJUR.asn1.x509.PolicyInformation({
policyoid: "1.2.3.4.5",
array: [
{ cps: "https://example.com/repository" },
{ unotice: {
noticeref: { // CA SHOULD NOT use this by RFC
org: {type: "ia5", str: "Sample Org"},
noticenum: [{int: 5}, {hex: "01af"}]
},
exptext: {type: "ia5", str: "Sample Policy"}
}}
]
})
- Parameters:
- {Array} params
- JSON object of parameters
- Since:
- jsrsasign 8.0.23 asn1x509 1.1.12