|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
codec.asn1.ASN1AbstractCollection
codec.asn1.ASN1Sequence
codec.x509.X509Extension
codec.x509.extensions.BasicConstraintsExtension
public class BasicConstraintsExtension
id-ce-extBasicConstraints OBJECT IDENTIFIER ::= {id-ce 19}
BasicConstraintsSyntax ::= SEQUENCE {
cA BOOLEAN DEFAULT FALSE,
pathLenConstraint (0..MAX) OPTIONAL
}
id-ce OBJECT IDENTIFIER ::= {joint-iso-ccitt(2) ds(5) 29}
| Field Summary | |
|---|---|
protected ASN1Sequence |
basicConstraintsSyntax
|
protected ASN1Boolean |
cA
|
protected static ASN1ObjectIdentifier |
id_ce_basicConstraints
|
protected ASN1Integer |
pathLenConstraints
|
| Fields inherited from class codec.x509.X509Extension |
|---|
critical, extnID, extnValue |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
|
BasicConstraintsExtension()
|
private |
BasicConstraintsExtension(ASN1ObjectIdentifier theoid,
boolean crit,
ASN1Type val)
Constructor for BasicConstraintsExtension is made private to prevent access. |
|
BasicConstraintsExtension(boolean crit)
Constructor for BasicConstraintsExtension. |
|
BasicConstraintsExtension(boolean cA,
boolean crit)
|
|
BasicConstraintsExtension(boolean cA,
int pathLenConstraints,
boolean crit)
|
|
BasicConstraintsExtension(byte[] ext)
Constructor for BasicConstraintsExtension. |
| Method Summary | |
|---|---|
void |
decode(Decoder dec)
Reads this collection from the given decoder. |
int |
getPathLenConstraints()
Returns the pathLenConstraints. |
boolean |
isCA()
Returns the cA. |
void |
setCA(boolean cA)
Sets the cA. |
void |
setPathLenConstraints(int pathLenConstraints)
Sets the pathLenConstraints. |
String |
toString(String offset)
Returns a human-readable String representation of this extension with an offset String. |
| Methods inherited from class codec.x509.X509Extension |
|---|
getCriticalExtensionOIDs, getEncoded, getExtensionValue, getNonCriticalExtensionOIDs, getOID, getValue, hasUnsupportedCriticalExtension, isCritical, setCritical, setOID, setValue, toString |
| Methods inherited from class codec.asn1.ASN1Sequence |
|---|
getTag |
| Methods inherited from class codec.asn1.ASN1AbstractCollection |
|---|
checkConstraints, encode, getCollection, getConstraint, getTagClass, isExplicit, isOptional, isType, setConstraint, setExplicit, setOptional |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
protected static final ASN1ObjectIdentifier id_ce_basicConstraints
protected ASN1Boolean cA
protected ASN1Integer pathLenConstraints
protected ASN1Sequence basicConstraintsSyntax
| Constructor Detail |
|---|
public BasicConstraintsExtension()
throws Exception
Exception
public BasicConstraintsExtension(boolean crit)
throws Exception
Exception
public BasicConstraintsExtension(boolean cA,
boolean crit)
throws Exception
Exception
public BasicConstraintsExtension(boolean cA,
int pathLenConstraints,
boolean crit)
throws Exception
Exception
public BasicConstraintsExtension(byte[] ext)
throws ASN1Exception,
IOException
ext -
ASN1Exception
IOException
private BasicConstraintsExtension(ASN1ObjectIdentifier theoid,
boolean crit,
ASN1Type val)
throws Exception
theoid - crit - val -
Exception| Method Detail |
|---|
public boolean isCA()
public int getPathLenConstraints()
public void setCA(boolean cA)
cA - The cA to set
public void setPathLenConstraints(int pathLenConstraints)
throws Exception
pathLenConstraints - The pathLenConstraints to set
Exception
public void decode(Decoder dec)
throws ASN1Exception,
IOException
ASN1AbstractCollectiondecoder. This type is initialised with the decoded
data. The components of the decoded collection must
match the components of this collection. If they do
then the components are also initialised with the
decoded values. Otherwise an exception is thrown.
decode in interface ASN1Typedecode in class ASN1AbstractCollectionASN1Exception
IOExceptionpublic String toString(String offset)
X509Extension
toString in class X509Extensionoffset - String that will be put before each line of output
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||