Package org.bouncycastle.asn1.crmf
Class PKIPublicationInfo
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.crmf.PKIPublicationInfo
-
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class PKIPublicationInfo extends org.bouncycastle.asn1.ASN1Object
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
Fields Modifier and Type Field Description static org.bouncycastle.asn1.ASN1Integer
dontPublish
static org.bouncycastle.asn1.ASN1Integer
pleasePublish
-
Constructor Summary
Constructors Constructor Description PKIPublicationInfo(BigInteger action)
PKIPublicationInfo(org.bouncycastle.asn1.ASN1Integer action)
PKIPublicationInfo(SinglePubInfo pubInfo)
Constructor with a single pubInfo, assumes pleasePublish as the action.PKIPublicationInfo(SinglePubInfo[] pubInfos)
Constructor with multiple pubInfo, assumes pleasePublish as the action.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.ASN1Integer
getAction()
static PKIPublicationInfo
getInstance(Object o)
SinglePubInfo[]
getPubInfos()
org.bouncycastle.asn1.ASN1Primitive
toASN1Primitive()
Return the primitive representation of PKIPublicationInfo.
-
-
-
Constructor Detail
-
PKIPublicationInfo
public PKIPublicationInfo(BigInteger action)
-
PKIPublicationInfo
public PKIPublicationInfo(org.bouncycastle.asn1.ASN1Integer action)
-
PKIPublicationInfo
public PKIPublicationInfo(SinglePubInfo pubInfo)
Constructor with a single pubInfo, assumes pleasePublish as the action.- Parameters:
pubInfo
- the pubInfo to be published (can be null if don't care is required).
-
PKIPublicationInfo
public PKIPublicationInfo(SinglePubInfo[] pubInfos)
Constructor with multiple pubInfo, assumes pleasePublish as the action.- Parameters:
pubInfos
- the pubInfos to be published (can be null if don't care is required).
-
-
Method Detail
-
getInstance
public static PKIPublicationInfo getInstance(Object o)
-
getAction
public org.bouncycastle.asn1.ASN1Integer getAction()
-
getPubInfos
public SinglePubInfo[] getPubInfos()
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
Return the primitive representation of PKIPublicationInfo.- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
- Returns:
- a basic ASN.1 object representation.
-
-