Top Description Fields Constructors Methods
org.bouncycastle.asn1.crmf

public Class PKIPublicationInfo

extends ASN1Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .DERSequence

PKIPublicationInfo ::= SEQUENCE {
                 action     INTEGER {
                                dontPublish (0),
                                pleasePublish (1) },
                 pubInfos  SEQUENCE SIZE (1..MAX) OF SinglePubInfo OPTIONAL }
-- pubInfos MUST NOT be present if action is "dontPublish"
-- (if action is "pleasePublish" and pubInfos is omitted,
-- "dontCare" is assumed)

Field Summary

Modifier and TypeField and Description
private ASN1Integer
public static final ASN1Integer
public static final ASN1Integer
private ASN1Sequence

Constructor Summary

AccessConstructor and Description
private
public
public
public
PKIPublicationInfo(SinglePubInfo
the pubInfo to be published (can be null if don't care is required).
pubInfo
)

Constructor with a single pubInfo, assumes pleasePublish as the action.

public
PKIPublicationInfo(SinglePubInfo[]
the pubInfos to be published (can be null if don't care is required).
pubInfos
)

Constructor with multiple pubInfo, assumes pleasePublish as the action.

Method Summary

Modifier and TypeMethod and Description
public ASN1Integer
public static PKIPublicationInfo
public SinglePubInfo[]
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return the primitive representation of PKIPublicationInfo.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

actionback to summary
private ASN1Integer action
dontPublishback to summary
public static final ASN1Integer dontPublish
pleasePublishback to summary
public static final ASN1Integer pleasePublish
pubInfosback to summary
private ASN1Sequence pubInfos

Constructor Detail

PKIPublicationInfoback to summary
private PKIPublicationInfo(ASN1Sequence seq)
PKIPublicationInfoback to summary
public PKIPublicationInfo(BigInteger action)
PKIPublicationInfoback to summary
public PKIPublicationInfo(ASN1Integer action)
PKIPublicationInfoback to summary
public PKIPublicationInfo(SinglePubInfo pubInfo)

Constructor with a single pubInfo, assumes pleasePublish as the action.

Parameters
pubInfo:SinglePubInfo

the pubInfo to be published (can be null if don't care is required).

PKIPublicationInfoback to summary
public PKIPublicationInfo(SinglePubInfo[] pubInfos)

Constructor with multiple pubInfo, assumes pleasePublish as the action.

Parameters
pubInfos:SinglePubInfo[]

the pubInfos to be published (can be null if don't care is required).

Method Detail

getActionback to summary
public ASN1Integer getAction()
getInstanceback to summary
public static PKIPublicationInfo getInstance(Object o)
getPubInfosback to summary
public SinglePubInfo[] getPubInfos()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return the primitive representation of PKIPublicationInfo.

Returns:ASN1Primitive

a basic ASN.1 object representation.