Package org.apache.harmony.security.x509
Class BasicConstraints
- java.lang.Object
-
- org.apache.harmony.security.x509.ExtensionValue
-
- org.apache.harmony.security.x509.BasicConstraints
-
public final class BasicConstraints extends ExtensionValue
Basic Constraints Extension (OID == 2.5.29.19). The ASN.1 definition for Basic Constraints Extension is:id-ce-basicConstraints OBJECT IDENTIFIER ::= { id-ce 19 } BasicConstraints ::= SEQUENCE { ca BOOLEAN DEFAULT FALSE, pathLenConstraint INTEGER (0..MAX) OPTIONAL }(as specified in RFC 3280)
-
-
Field Summary
Fields Modifier and Type Field Description static ASN1TypeASN1ASN.1 Encoder/Decoder.-
Fields inherited from class org.apache.harmony.security.x509.ExtensionValue
encoding
-
-
Constructor Summary
Constructors Constructor Description BasicConstraints(byte[] encoding)Creates the extension object on the base of its encoded form.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddumpValue(StringBuilder sb, String prefix)booleangetCa()byte[]getEncoded()Returns the encoded form of the object.intgetPathLenConstraint()-
Methods inherited from class org.apache.harmony.security.x509.ExtensionValue
dumpValue
-
-
-
-
Field Detail
-
ASN1
public static final ASN1Type ASN1
ASN.1 Encoder/Decoder.
-
-
Constructor Detail
-
BasicConstraints
public BasicConstraints(byte[] encoding) throws IOExceptionCreates the extension object on the base of its encoded form.- Throws:
IOException
-
-
Method Detail
-
getCa
public boolean getCa()
-
getPathLenConstraint
public int getPathLenConstraint()
-
getEncoded
public byte[] getEncoded()
Returns the encoded form of the object.- Overrides:
getEncodedin classExtensionValue
-
dumpValue
public void dumpValue(StringBuilder sb, String prefix)
- Overrides:
dumpValuein classExtensionValue
-
-