Class NameConstraintsExtension.GeneralSubtree

    • Field Detail

      • minimumDistance

        private final int minimumDistance
      • maximumDistance

        private final int maximumDistance
    • Constructor Detail

      • GeneralSubtree

        public GeneralSubtree​(GeneralName base,
                              int minimumDistance,
                              int maximumDistance)
        Construct a new instance.
        Parameters:
        base - the base name (must not be null)
        minimumDistance - the minimum distance (must be >= 0)
        maximumDistance - the maximum distance (must be -1 indicating "not specified" or >= minimumDistance)
    • Method Detail

      • encodeTo

        public void encodeTo​(ASN1Encoder encoder)
        Description copied from interface: ASN1Encodable
        Encode this object.
        Specified by:
        encodeTo in interface ASN1Encodable
        Parameters:
        encoder - the encoder (must not be null)