Class BasicConstraints

    • Constructor Detail

      • BasicConstraints

        public BasicConstraints​(boolean cA)
      • BasicConstraints

        public BasicConstraints​(int pathLenConstraint)
        create a cA=true object for the given path length constraint.
        Parameters:
        pathLenConstraint -
    • Method Detail

      • getInstance

        public static BasicConstraints getInstance​(java.lang.Object obj)
      • isCA

        public boolean isCA()
      • getPathLenConstraint

        public java.math.BigInteger getPathLenConstraint()
      • toASN1Primitive

        public ASN1Primitive toASN1Primitive()
        Produce an object suitable for an ASN1OutputStream.
         BasicConstraints := SEQUENCE {
            cA                  BOOLEAN DEFAULT FALSE,
            pathLenConstraint   INTEGER (0..MAX) OPTIONAL
         }
         
        Specified by:
        toASN1Primitive in interface ASN1Encodable
        Specified by:
        toASN1Primitive in class ASN1Object
        Returns:
        a primitive representation of this object.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object