Package org.bouncycastle.asn1.x509
Class BasicConstraints
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.x509.BasicConstraints
-
- All Implemented Interfaces:
ASN1Encodable
,Encodable
public class BasicConstraints extends ASN1Object
-
-
Constructor Summary
Constructors Constructor Description BasicConstraints(boolean cA)
BasicConstraints(int pathLenConstraint)
create a cA=true object for the given path length constraint.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BasicConstraints
fromExtensions(Extensions extensions)
static BasicConstraints
getInstance(java.lang.Object obj)
static BasicConstraints
getInstance(ASN1TaggedObject obj, boolean explicit)
java.math.BigInteger
getPathLenConstraint()
boolean
isCA()
ASN1Primitive
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.java.lang.String
toString()
-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
-
-
-
Method Detail
-
getInstance
public static BasicConstraints getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
public static BasicConstraints getInstance(java.lang.Object obj)
-
fromExtensions
public static BasicConstraints fromExtensions(Extensions extensions)
-
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 interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-