public class X509BasicConstraints extends AbstractX509Extension
http://tools.ietf.org/html/rfc5280
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IDENTIFIER |
Constructor and Description |
---|
X509BasicConstraints(mybouncycastle.org.bouncycastle.asn1.ASN1Sequence a_extension)
Creates an new X509BasicConstraints object from a BouncyCastle
ASN1Sequence
|
X509BasicConstraints(boolean cA)
Creates a new X509BasicConstrains objects with the specified value for
cA.
|
X509BasicConstraints(int pathLenConstraint)
Creates a new X509BasicConstrains objects with pathLength limited to the
specified value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the human-readable name of this extension.
|
int |
getPathLengthConstraint() |
java.util.Vector |
getValues()
This method returns all values of this extension in separated String objects.
|
boolean |
isCA() |
equals, getDEROctets, getIdentifier, hashCode, isCritical, toString
public X509BasicConstraints(boolean cA)
cA
- indicates if the certificate belongs to a CA.public X509BasicConstraints(int pathLenConstraint)
true
if a
pathLength is specified. This Extension is by default set to non-critical
according to RFC 5280.pathLenConstraint
- the maximum length of a certification Pathpublic X509BasicConstraints(mybouncycastle.org.bouncycastle.asn1.ASN1Sequence a_extension)
a_extension
- the extions as ASN1Sequencepublic boolean isCA()
public int getPathLengthConstraint()
public java.lang.String getName()
AbstractX509Extension
getName
in class AbstractX509Extension
public java.util.Vector getValues()
AbstractX509Extension
getValues
in class AbstractX509Extension
Copyright © 2023. All rights reserved.