Class GeneralSubtree


  • public final class GeneralSubtree
    extends Object
    The class encapsulates the ASN.1 DER encoding/decoding work with the GeneralSubtree structure which is a part of X.509 certificate: (as specified in RFC 3280 - Internet X.509 Public Key Infrastructure. Certificate and Certificate Revocation List (CRL) Profile. http://www.ietf.org/rfc/rfc3280.txt):
    
       GeneralSubtree ::= SEQUENCE {
            base                    GeneralName,
            minimum         [0]     BaseDistance DEFAULT 0,
            maximum         [1]     BaseDistance OPTIONAL }
    
       BaseDistance ::= INTEGER (0..MAX)
    
     
    See Also:
    NameConstraints, GeneralName
    • Field Detail

      • ASN1

        public static final ASN1Sequence ASN1
        ASN.1 DER X.509 GeneralSubtree encoder/decoder class.
    • Constructor Detail

      • GeneralSubtree

        public GeneralSubtree​(GeneralName base,
                              int minimum,
                              int maximum)
    • Method Detail

      • getBase

        public GeneralName getBase()
        Returns the value of base field of the structure.
      • getEncoded

        public byte[] getEncoded()
        Returns ASN.1 encoded form of this X.509 GeneralSubtree value.