Package org.apache.harmony.security.x509
Class IssuingDistributionPoint
- java.lang.Object
-
- org.apache.harmony.security.x509.ExtensionValue
-
- org.apache.harmony.security.x509.IssuingDistributionPoint
-
public final class IssuingDistributionPoint extends ExtensionValue
CRL's Issuing Distribution Point Extension (OID = 2.5.29.28).id-ce-issuingDistributionPoint OBJECT IDENTIFIER ::= { id-ce 28 } issuingDistributionPoint ::= SEQUENCE { distributionPoint [0] DistributionPointName OPTIONAL, onlyContainsUserCerts [1] BOOLEAN DEFAULT FALSE, onlyContainsCACerts [2] BOOLEAN DEFAULT FALSE, onlySomeReasons [3] ReasonFlags OPTIONAL, indirectCRL [4] BOOLEAN DEFAULT FALSE, onlyContainsAttributeCerts [5] BOOLEAN DEFAULT FALSE }(as specified in RFC 3280 http://www.ietf.org/rfc/rfc3280.txt)
-
-
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 IssuingDistributionPoint(DistributionPointName distributionPoint, ReasonFlags onlySomeReasons)Constructs the object on the base of its distributionPoint and onlySomeReasons fields values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IssuingDistributionPointdecode(byte[] encoding)Creates the extension object on the base of its encoded form.voiddumpValue(StringBuilder sb, String prefix)byte[]getEncoded()Returns encoded form of the object.voidsetIndirectCRL(boolean indirectCRL)Sets the value of indirectCRL field of the structure.voidsetOnlyContainsAttributeCerts(boolean onlyContainsAttributeCerts)Sets the value of onlyContainsAttributeCerts field of the structure.voidsetOnlyContainsCACerts(boolean onlyContainsCACerts)Sets the value of onlyContainsCACerts field of the structure.voidsetOnlyContainsUserCerts(boolean onlyContainsUserCerts)Sets the value of onlyContainsUserCerts field of the structure.-
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
-
IssuingDistributionPoint
public IssuingDistributionPoint(DistributionPointName distributionPoint, ReasonFlags onlySomeReasons)
Constructs the object on the base of its distributionPoint and onlySomeReasons fields values.
-
-
Method Detail
-
decode
public static IssuingDistributionPoint decode(byte[] encoding) throws IOException
Creates the extension object on the base of its encoded form.- Throws:
IOException
-
setOnlyContainsUserCerts
public void setOnlyContainsUserCerts(boolean onlyContainsUserCerts)
Sets the value of onlyContainsUserCerts field of the structure.
-
setOnlyContainsCACerts
public void setOnlyContainsCACerts(boolean onlyContainsCACerts)
Sets the value of onlyContainsCACerts field of the structure.
-
setIndirectCRL
public void setIndirectCRL(boolean indirectCRL)
Sets the value of indirectCRL field of the structure.
-
setOnlyContainsAttributeCerts
public void setOnlyContainsAttributeCerts(boolean onlyContainsAttributeCerts)
Sets the value of onlyContainsAttributeCerts field of the structure.
-
getEncoded
public byte[] getEncoded()
Description copied from class:ExtensionValueReturns encoded form of the object.- Overrides:
getEncodedin classExtensionValue
-
dumpValue
public void dumpValue(StringBuilder sb, String prefix)
- Overrides:
dumpValuein classExtensionValue
-
-