Class PKIPublicationInfoControl

java.lang.Object
org.bouncycastle.cert.crmf.PKIPublicationInfoControl
All Implemented Interfaces:
Control

public class PKIPublicationInfoControl extends Object implements Control
Carrier for a publication information control, saying whether and where the CA should publish the certificate it issues - RFC 4211 sec. 6.3.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PKIPublicationInfoControl(org.bouncycastle.asn1.crmf.PKIPublicationInfo publicationInfo)
    Basic constructor - build from the publication information to use.
    PKIPublicationInfoControl(org.bouncycastle.asn1.crmf.SinglePubInfo[] pubInfos)
    Basic constructor - build from the locations the certificate is to be published at, which asks for publication (pleasePublish).
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a control asking the CA not to publish the certificate.
    org.bouncycastle.asn1.crmf.PKIPublicationInfo
    Return the publication information associated with this control.
    org.bouncycastle.asn1.ASN1ObjectIdentifier
    Return the type of this control.
    org.bouncycastle.asn1.ASN1Encodable
    Return the publication information associated with this control.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PKIPublicationInfoControl

      public PKIPublicationInfoControl(org.bouncycastle.asn1.crmf.PKIPublicationInfo publicationInfo)
      Basic constructor - build from the publication information to use.
      Parameters:
      publicationInfo - the publication information for the certificate.
    • PKIPublicationInfoControl

      public PKIPublicationInfoControl(org.bouncycastle.asn1.crmf.SinglePubInfo[] pubInfos)
      Basic constructor - build from the locations the certificate is to be published at, which asks for publication (pleasePublish). A null or empty array asks for publication without saying where ("dontCare"); use dontPublish() to ask for none.
      Parameters:
      pubInfos - the locations to publish the certificate at.
  • Method Details

    • dontPublish

      public static PKIPublicationInfoControl dontPublish()
      Return a control asking the CA not to publish the certificate.
      Returns:
      a control carrying the dontPublish action.
    • getType

      public org.bouncycastle.asn1.ASN1ObjectIdentifier getType()
      Return the type of this control.
      Specified by:
      getType in interface Control
      Returns:
      CRMFObjectIdentifiers.id_regCtrl_pkiPublicationInfo
    • getValue

      public org.bouncycastle.asn1.ASN1Encodable getValue()
      Return the publication information associated with this control.
      Specified by:
      getValue in interface Control
      Returns:
      a PKIPublicationInfo structure.
    • getPublicationInfo

      public org.bouncycastle.asn1.crmf.PKIPublicationInfo getPublicationInfo()
      Return the publication information associated with this control.
      Returns:
      a PKIPublicationInfo structure.