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 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
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 Details
-
ASN1
ASN.1 Encoder/Decoder.
-
-
Constructor Details
-
BasicConstraints
Creates the extension object on the base of its encoded form.- Throws:
IOException
-
-
Method Details
-
getCa
public boolean getCa() -
getPathLenConstraint
public int getPathLenConstraint() -
getEncoded
public byte[] getEncoded()Returns the encoded form of the object.- Overrides:
getEncodedin classExtensionValue
-
dumpValue
- Overrides:
dumpValuein classExtensionValue
-