Class GeneralSubtree

java.lang.Object
org.apache.harmony.security.x509.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 Details

    • ASN1

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

    • GeneralSubtree

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

    • 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.
    • dumpValue

      public void dumpValue​(StringBuilder sb, String prefix)