Class CRLDistributionPoint

  • All Implemented Interfaces:
    org.mozilla.jss.asn1.ASN1Value

    public class CRLDistributionPoint
    extends java.lang.Object
    implements org.mozilla.jss.asn1.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) }
     
    • Constructor Detail

      • CRLDistributionPoint

        public CRLDistributionPoint()
    • Method Detail

      • getFullName

        public GeneralNames getFullName()
        Returns the fullName of the DistributionPointName, which may be null.
      • getRelativeName

        public RDN getRelativeName()
        Returns the relativeName of the DistributionPointName, which may be null.
      • setFullName

        public void setFullName​(GeneralNames fullName)
                         throws GeneralNamesException,
                                java.io.IOException
        Sets the 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.
        Throws:
        GeneralNamesException - If an error occurs encoding the name.
        java.io.IOException
      • setRelativeName

        public void setRelativeName​(RDN relativeName)
        Sets the 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.
      • getReasons

        public BitArray getReasons()
        Returns the reason flags for this distribution point. May be null.
      • setReasons

        public void setReasons​(BitArray reasons)
        Sets the reason flags for this distribution point. May be set to null.
      • getCRLIssuer

        public GeneralNames getCRLIssuer()
        Returns the CRLIssuer for the CRL at this distribution point. May be null.
      • setCRLIssuer

        public void setCRLIssuer​(GeneralNames CRLIssuer)
                          throws GeneralNamesException,
                                 java.io.IOException
        Sets the CRLIssuer for the CRL at this distribution point. May be set to null.
        Throws:
        GeneralNamesException - If an error occurs encoding the name.
        java.io.IOException
      • getTag

        public org.mozilla.jss.asn1.Tag getTag()
        Specified by:
        getTag in interface org.mozilla.jss.asn1.ASN1Value
      • encode

        public void encode​(java.io.OutputStream ostream)
                    throws java.io.IOException
        Specified by:
        encode in interface org.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:
        encode in interface org.mozilla.jss.asn1.ASN1Value
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] args)
                         throws GeneralNamesException,
                                java.io.IOException,
                                org.mozilla.jss.asn1.InvalidBERException
        Throws:
        GeneralNamesException
        java.io.IOException
        org.mozilla.jss.asn1.InvalidBERException