Bouncy Castle Cryptography Library 1.87

org.bouncycastle.cert.crmf
Class PKIPublicationInfoControl

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

public class PKIPublicationInfoControl
extends java.lang.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
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
static PKIPublicationInfoControl dontPublish()
          Return a control asking the CA not to publish the certificate.
 org.bouncycastle.asn1.crmf.PKIPublicationInfo getPublicationInfo()
          Return the publication information associated with this control.
 org.bouncycastle.asn1.ASN1ObjectIdentifier getType()
          Return the type of this control.
 org.bouncycastle.asn1.ASN1Encodable getValue()
          Return the publication information associated with this control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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.

Bouncy Castle Cryptography Library 1.87