Class IssuingDistributionPointExtension

  • All Implemented Interfaces:
    Extension

    public class IssuingDistributionPointExtension
    extends sun.security.x509.Extension
    A critical CRL extension that identifies the CRL distribution point for a particular CRL
     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 }
    
     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) }
    
     GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
    
     GeneralName ::= CHOICE {
             otherName                       [0]     OtherName,
             rfc822Name                      [1]     IA5String,
             dNSName                         [2]     IA5String,
             x400Address                     [3]     ORAddress,
             directoryName                   [4]     Name,
             ediPartyName                    [5]     EDIPartyName,
             uniformResourceIdentifier       [6]     IA5String,
             iPAddress                       [7]     OCTET STRING,
             registeredID                    [8]     OBJECT IDENTIFIER}
    
     OtherName ::= SEQUENCE {
             type-id    OBJECT IDENTIFIER,
             value      [0] EXPLICIT ANY DEFINED BY type-id }
    
     EDIPartyName ::= SEQUENCE {
             nameAssigner            [0]     DirectoryString OPTIONAL,
             partyName               [1]     DirectoryString }
    
     RelativeDistinguishedName ::=
             SET OF AttributeTypeAndValue
    
     AttributeTypeAndValue ::= SEQUENCE {
             type     AttributeType,
             value    AttributeValue }
    
     AttributeType ::= OBJECT IDENTIFIER
    
     AttributeValue ::= ANY DEFINED BY AttributeType
     
    • Constructor Summary

      Constructors 
      Constructor Description
      IssuingDistributionPointExtension​(Object value)
      Create the extension from the passed DER encoded value of the same.
      IssuingDistributionPointExtension​(sun.security.x509.GeneralNames fullName, boolean onlyContainsUserCerts, boolean onlyContainsCACerts, boolean[] reasonFlags, boolean indirectCRL, boolean critical)
      Create a IssuingDistributionPointExtension.
      IssuingDistributionPointExtension​(sun.security.x509.RDN relativeName, boolean onlyContainsUserCerts, boolean onlyContainsCACerts, boolean[] reasonFlags, boolean indirectCRL, boolean critical)
      Create a IssuingDistributionPointExtension.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void encode​(sun.security.util.DerOutputStream out)
      Write the extension to the DerOutputStream.
      sun.security.x509.GeneralNames getFullName()
      Return the full distribution point name or null if not set.
      boolean getIndirectCRL()
      Return the indirectCRL attribute
      String getName()
      Return the name of this attribute.
      boolean getOnlyContainsCACerts()
      Return the onlyContainsCACerts attribute
      boolean getOnlyContainsUserCerts()
      Return the onlyContainsUserCerts attribute
      boolean[] getOnlySomeReasons()
      Return the reason flags or null if not set.
      sun.security.x509.RDN getRelativeName()
      Return the relative distribution point name or null if not set.
      void setFullName​(sun.security.x509.GeneralNames fullName)
      Sets the full distribution point name.
      void setIndirectCRL​(boolean indirectCRL)
      Sets the indirectCRL attribute.
      void setOnlyContainsCACerts​(boolean onlyContainsCACerts)
      Sets the onlyContainsCACerts attribute.
      void setOnlyContainsUserCerts​(boolean onlyContainsUserCerts)
      Sets the onlyContainsUserCerts attribute.
      void setOnlySomeReasons​(boolean[] reasonFlags)
      Sets the reason flags for this distribution point.
      void setRelativeName​(sun.security.x509.RDN relativeName)
      Sets the relative distribution point name.
      String toString()
      Return the extension as user readable string.
      • Methods inherited from class sun.security.x509.Extension

        encode, equals, getExtensionId, getExtensionValue, getId, getValue, hashCode, isCritical, newExtension
    • Constructor Detail

      • IssuingDistributionPointExtension

        public IssuingDistributionPointExtension​(sun.security.x509.GeneralNames fullName,
                                                 boolean onlyContainsUserCerts,
                                                 boolean onlyContainsCACerts,
                                                 boolean[] reasonFlags,
                                                 boolean indirectCRL,
                                                 boolean critical)
                                          throws IOException
        Create a IssuingDistributionPointExtension.
        Parameters:
        fullName - the GeneralNames of the distribution point; may be null
        onlyContainsUserCerts - the 'onlyContainsUserCerts' attribute
        onlyContainsCACerts - the 'onlyContainsCACerts' attribute
        reasonFlags - the 'reasonFlags' attribute
        indirectCRL - the 'indirectCRL' attribute
        critical - true if this is a critical extension
        Throws:
        IOException - on error
      • IssuingDistributionPointExtension

        public IssuingDistributionPointExtension​(sun.security.x509.RDN relativeName,
                                                 boolean onlyContainsUserCerts,
                                                 boolean onlyContainsCACerts,
                                                 boolean[] reasonFlags,
                                                 boolean indirectCRL,
                                                 boolean critical)
                                          throws IOException
        Create a IssuingDistributionPointExtension.
        Parameters:
        relativeName - the RelativeDistinguishedName of the distribution point; may not be null
        onlyContainsUserCerts - the 'onlyContainsUserCerts' attribute
        onlyContainsCACerts - the 'onlyContainsCACerts' attribute
        reasonFlags - the 'reasonFlags' attribute
        indirectCRL - the 'indirectCRL' attribute
        critical - true if this is a critical extension
        Throws:
        IOException - on error
      • IssuingDistributionPointExtension

        public IssuingDistributionPointExtension​(Object value)
                                          throws IOException
        Create the extension from the passed DER encoded value of the same.
        Parameters:
        value - Array of DER encoded bytes of the actual value.
        Throws:
        IOException - on error.
    • Method Detail

      • getName

        public String getName()
        Return the name of this attribute.
      • getFullName

        public sun.security.x509.GeneralNames getFullName()
        Return the full distribution point name or null if not set.
      • getRelativeName

        public sun.security.x509.RDN getRelativeName()
        Return the relative distribution point name or null if not set.
      • getOnlyContainsUserCerts

        public boolean getOnlyContainsUserCerts()
        Return the onlyContainsUserCerts attribute
      • getOnlyContainsCACerts

        public boolean getOnlyContainsCACerts()
        Return the onlyContainsCACerts attribute
      • getOnlySomeReasons

        public boolean[] getOnlySomeReasons()
        Return the reason flags or null if not set.
      • getIndirectCRL

        public boolean getIndirectCRL()
        Return the indirectCRL attribute
      • setFullName

        public void setFullName​(sun.security.x509.GeneralNames fullName)
        Sets the full distribution point name.
      • setRelativeName

        public void setRelativeName​(sun.security.x509.RDN relativeName)
        Sets the relative distribution point name.
      • setOnlyContainsUserCerts

        public void setOnlyContainsUserCerts​(boolean onlyContainsUserCerts)
        Sets the onlyContainsUserCerts attribute.
      • setOnlyContainsCACerts

        public void setOnlyContainsCACerts​(boolean onlyContainsCACerts)
        Sets the onlyContainsCACerts attribute.
      • setOnlySomeReasons

        public void setOnlySomeReasons​(boolean[] reasonFlags)
        Sets the reason flags for this distribution point.
      • setIndirectCRL

        public void setIndirectCRL​(boolean indirectCRL)
        Sets the indirectCRL attribute.
      • encode

        public void encode​(sun.security.util.DerOutputStream out)
        Write the extension to the DerOutputStream.
        Overrides:
        encode in class sun.security.x509.Extension
        Parameters:
        out - the DerOutputStream to write the extension to.
        Throws:
        IOException - on encoding errors.
      • toString

        public String toString()
        Return the extension as user readable string.
        Overrides:
        toString in class sun.security.x509.Extension