org.gudy.bouncycastle.asn1.x509
Class BasicConstraints
java.lang.Object
org.gudy.bouncycastle.asn1.ASN1Encodable
org.gudy.bouncycastle.asn1.x509.BasicConstraints
- All Implemented Interfaces:
- DEREncodable
public class BasicConstraints
- extends ASN1Encodable
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BasicConstraints
public BasicConstraints(ASN1Sequence seq)
BasicConstraints
public BasicConstraints(boolean cA,
int pathLenConstraint)
- Deprecated. use one of the other two unambigous constructors.
- Parameters:
cA
- pathLenConstraint
-
BasicConstraints
public BasicConstraints(boolean cA)
BasicConstraints
public BasicConstraints(int pathLenConstraint)
- create a cA=true object for the given path length constraint.
- Parameters:
pathLenConstraint
-
getInstance
public static BasicConstraints getInstance(ASN1TaggedObject obj,
boolean explicit)
getInstance
public static BasicConstraints getInstance(java.lang.Object obj)
isCA
public boolean isCA()
getPathLenConstraint
public java.math.BigInteger getPathLenConstraint()
toASN1Object
public DERObject toASN1Object()
- Produce an object suitable for an ASN1OutputStream.
BasicConstraints := SEQUENCE {
cA BOOLEAN DEFAULT FALSE,
pathLenConstraint INTEGER (0..MAX) OPTIONAL
}
- Specified by:
toASN1Object
in class ASN1Encodable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object