Class Index | File Index

Classes


Class KJUR.asn1.x509.GeneralSubtree

GeneralSubtree ASN.1 structure class
Defined in: asn1x509-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
GeneralSubtree ASN.1 structure class
This class provides a encoder for GeneralSubtree defined in RFC 5280 4.2.1.10.
Class Detail
KJUR.asn1.x509.GeneralSubtree()
GeneralSubtree ASN.1 structure class
This class provides a encoder for GeneralSubtree defined in RFC 5280 4.2.1.10. This will be used for nameConstraints extension.
Here is definition of the ASN.1 syntax:
GeneralSubtree ::= SEQUENCE {
  base           GeneralName,
  minimum   [0]  BaseDistance DEFAULT 0,
  maximum   [1]  BaseDistance OPTIONAL }
BaseDistance ::= INTEGER (0..MAX)
An argument for constructor is the same as KJUR.asn1.x509.GeneralName except this has following optional members:
  • min - {Number} value for the minimum field
  • max - {Number} value for the maximum field
Please note that min and max can't be specified since they are prohibited in RFC 5280.
new GeneralSubtree({dns: "example.com"})
new GeneralSubtree({uri: ".example.com"})
new GeneralSubtree({dn: "/C=JP/O=Test1"})
Since:
jsrsasign 10.5.16 asn1x509 2.1.13
See:
KJUR.asn1.x509.NameConstraints
KJUR.asn1.x509.GeneralName
X509#getExtNameConstraints
X509#getGeneralSubtree

© 2012-2023 Kenji Urushima, All rights reserved
Documentation generated by JsDoc Toolkit 2.4.0