public class CRLDistributionPoint extends java.lang.Object implements ASN1Value
DistributionPoint ::= SEQUENCE {
distributionPoint [0] DistributionPointName OPTIONAL,
reasons [1] ReasonFlags OPTIONAL,
cRLIssuer [2] GeneralNames OPTIONAL }
DistributionPointName ::= CHOICE {
fullName [0] GeneralNames,
nameRelativeToCRLIssuer [1] RelativeDistinguishedName }
ReasonFlags ::= BIT STRING {
unused (0),
keyCompromise (1),
cACompromise (2),
affiliationChanged (3),
superseded (4),
cessationOfOperation (5),
certificateHold (6) }
| Modifier and Type | Class and Description |
|---|---|
static class |
CRLDistributionPoint.Template
Template for decoding CRLDistributionPoint.
|
| Constructor and Description |
|---|
CRLDistributionPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
its own base tag.
|
void |
encode(Tag implicitTag,
java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
an implicit tag.
|
GeneralNames |
getCRLIssuer()
Returns the CRLIssuer for the CRL at this distribution point.
|
GeneralNames |
getFullName()
Returns the
fullName of the DistributionPointName, which may be null. |
BitArray |
getReasons()
Returns the reason flags for this distribution point.
|
RDN |
getRelativeName()
Returns the
relativeName of the DistributionPointName, which may be null. |
Tag |
getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static CRLDistributionPoint.Template |
getTemplate()
Returns an instance of a template for decoding a CRLDistributionPoint.
|
static void |
main(java.lang.String[] args) |
void |
setCRLIssuer(GeneralNames CRLIssuer)
Sets the CRLIssuer for the CRL at this distribution point.
|
void |
setFullName(GeneralNames fullName)
Sets the
fullName of the DistributionPointName. |
void |
setReasons(BitArray reasons)
Sets the reason flags for this distribution point.
|
void |
setRelativeName(RDN relativeName)
Sets the
relativeName of the DistributionPointName. |
public GeneralNames getFullName()
fullName of the DistributionPointName, which may be null.public RDN getRelativeName()
relativeName of the DistributionPointName, which may be null.public void setFullName(GeneralNames fullName) throws GeneralNamesException, java.io.IOException
fullName of the DistributionPointName. It may be set to null.
If it is set to a non-null value, relativeName will be
set to null, because at most one of these two attributes
can be specified at a time.GeneralNamesException - If an error occurs encoding the
name.java.io.IOExceptionpublic void setRelativeName(RDN relativeName)
relativeName of the DistributionPointName. It may be set to null.
If it is set to a non-null value, fullName will be
set to null, because at most one of these two attributes
can be specified at a time.public BitArray getReasons()
null.public void setReasons(BitArray reasons)
null.public GeneralNames getCRLIssuer()
null.public void setCRLIssuer(GeneralNames CRLIssuer) throws GeneralNamesException, java.io.IOException
null.GeneralNamesException - If an error occurs encoding the name.java.io.IOExceptionpublic Tag getTag()
ASN1Valuepublic void encode(java.io.OutputStream ostream)
throws java.io.IOException
ASN1Valuepublic void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Valuepublic static CRLDistributionPoint.Template getTemplate()
public static void main(java.lang.String[] args)
throws GeneralNamesException,
java.io.IOException,
InvalidBERException
GeneralNamesExceptionjava.io.IOExceptionInvalidBERException