Package netscape.security.x509
Class CRLDistributionPoint
- java.lang.Object
-
- netscape.security.x509.CRLDistributionPoint
-
- All Implemented Interfaces:
org.mozilla.jss.asn1.ASN1Value
public class CRLDistributionPoint extends java.lang.Object implements org.mozilla.jss.asn1.ASN1ValueDistributionPoint ::= 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) }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCRLDistributionPoint.TemplateTemplate for decoding CRLDistributionPoint.
-
Constructor Summary
Constructors Constructor Description CRLDistributionPoint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream ostream)voidencode(org.mozilla.jss.asn1.Tag implicitTag, java.io.OutputStream ostream)GeneralNamesgetCRLIssuer()Returns the CRLIssuer for the CRL at this distribution point.GeneralNamesgetFullName()Returns thefullNameof theDistributionPointName, which may benull.BitArraygetReasons()Returns the reason flags for this distribution point.RDNgetRelativeName()Returns therelativeNameof theDistributionPointName, which may benull.org.mozilla.jss.asn1.TaggetTag()static CRLDistributionPoint.TemplategetTemplate()Returns an instance of a template for decoding a CRLDistributionPoint.static voidmain(java.lang.String[] args)voidsetCRLIssuer(GeneralNames CRLIssuer)Sets the CRLIssuer for the CRL at this distribution point.voidsetFullName(GeneralNames fullName)Sets thefullNameof theDistributionPointName.voidsetReasons(BitArray reasons)Sets the reason flags for this distribution point.voidsetRelativeName(RDN relativeName)Sets therelativeNameof theDistributionPointName.
-
-
-
Method Detail
-
getFullName
public GeneralNames getFullName()
Returns thefullNameof theDistributionPointName, which may benull.
-
getRelativeName
public RDN getRelativeName()
Returns therelativeNameof theDistributionPointName, which may benull.
-
setFullName
public void setFullName(GeneralNames fullName) throws GeneralNamesException, java.io.IOException
Sets thefullNameof theDistributionPointName. It may be set tonull. If it is set to a non-null value,relativeNamewill be set tonull, because at most one of these two attributes can be specified at a time.- Throws:
GeneralNamesException- If an error occurs encoding the name.java.io.IOException
-
setRelativeName
public void setRelativeName(RDN relativeName)
Sets therelativeNameof theDistributionPointName. It may be set tonull. If it is set to a non-null value,fullNamewill be set tonull, because at most one of these two attributes can be specified at a time.
-
getReasons
public BitArray getReasons()
Returns the reason flags for this distribution point. May benull.
-
setReasons
public void setReasons(BitArray reasons)
Sets the reason flags for this distribution point. May be set tonull.
-
getCRLIssuer
public GeneralNames getCRLIssuer()
Returns the CRLIssuer for the CRL at this distribution point. May benull.
-
setCRLIssuer
public void setCRLIssuer(GeneralNames CRLIssuer) throws GeneralNamesException, java.io.IOException
Sets the CRLIssuer for the CRL at this distribution point. May be set tonull.- Throws:
GeneralNamesException- If an error occurs encoding the name.java.io.IOException
-
getTag
public org.mozilla.jss.asn1.Tag getTag()
- Specified by:
getTagin interfaceorg.mozilla.jss.asn1.ASN1Value
-
encode
public void encode(java.io.OutputStream ostream) throws java.io.IOException- Specified by:
encodein interfaceorg.mozilla.jss.asn1.ASN1Value- Throws:
java.io.IOException
-
encode
public void encode(org.mozilla.jss.asn1.Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException- Specified by:
encodein interfaceorg.mozilla.jss.asn1.ASN1Value- Throws:
java.io.IOException
-
getTemplate
public static CRLDistributionPoint.Template getTemplate()
Returns an instance of a template for decoding a CRLDistributionPoint.
-
main
public static void main(java.lang.String[] args) throws GeneralNamesException, java.io.IOException, org.mozilla.jss.asn1.InvalidBERException- Throws:
GeneralNamesExceptionjava.io.IOExceptionorg.mozilla.jss.asn1.InvalidBERException
-
-