org.apache.geronimo.util.asn1.x509
Class BasicConstraints
java.lang.Object
org.apache.geronimo.util.asn1.ASN1Encodable
org.apache.geronimo.util.asn1.x509.BasicConstraints
- All Implemented Interfaces:
- DEREncodable
public class BasicConstraints
- extends ASN1Encodable
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(Object obj)
isCA
public boolean isCA()
getPathLenConstraint
public 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 String toString()
- Overrides:
toString
in class Object
Copyright © 2006 Apache Software Foundation. All Rights Reserved.