|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.crypto.AbstractX509Extension anon.crypto.X509BasicConstraints
public class X509BasicConstraints
This class implements the BasicConstrains extension for X.509-certificates as specified in RFC 5280.
http://tools.ietf.org/html/rfc5280
Field Summary | |
---|---|
static java.lang.String |
IDENTIFIER
|
private boolean |
m_cA
true if the certificate belongs to a CA |
private int |
m_pathLenConstraint
the maximal length of a certification path build from this cert to an end entity |
Constructor Summary | |
---|---|
X509BasicConstraints(boolean cA)
Creates a new X509BasicConstrains objects with the specified value for cA. |
|
X509BasicConstraints(org.bouncycastle.asn1.DERSequence a_extension)
Creates an new X509BasicConstraints object from a BouncyCastle DERSequence |
|
X509BasicConstraints(int pathLenConstraint)
Creates a new X509BasicConstrains objects with pathLength limited to the specified value. |
Method Summary | |
---|---|
private static byte[] |
createDEROctets(boolean cA)
Generates the DEROctets of this extension to hand over to the super class. |
private static byte[] |
createDEROctets(int pathLenConstraint)
Generates the DEROctets of this extension to hand over to the super class. |
private void |
createValue()
Instantiates a new BouncyCastle BasicConstraints from the DEROctets of this extension an extracts the cA and pathLenConstraint values. |
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()
|
Methods inherited from class anon.crypto.AbstractX509Extension |
---|
equals, getBCExtension, getDEROctets, getIdentifier, getInstance, hashCode, isCritical, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String IDENTIFIER
private boolean m_cA
true
if the certificate belongs to a CA
private int m_pathLenConstraint
Constructor Detail |
---|
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(org.bouncycastle.asn1.DERSequence a_extension)
a_extension
- the extions as DERSequenceMethod Detail |
---|
private static byte[] createDEROctets(int pathLenConstraint)
pathLenConstraint
- the maximum length of a certification Path
private static byte[] createDEROctets(boolean cA)
cA
- indicates if the certificate belongs to a CA.
private void createValue()
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |