Package org.bouncycastle.asn1.cmp
Class CMPCertificate
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.cmp.CMPCertificate
-
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Choice,org.bouncycastle.asn1.ASN1Encodable,org.bouncycastle.util.Encodable
public class CMPCertificate extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice
-
-
Constructor Summary
Constructors Constructor Description CMPCertificate(int type, org.bouncycastle.asn1.ASN1Object otherCert)Note: the addition of other certificates is a BC extension.CMPCertificate(org.bouncycastle.asn1.x509.AttributeCertificate x509v2AttrCert)Deprecated.use (type.CMPCertificate(org.bouncycastle.asn1.x509.Certificate x509v3PKCert)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CMPCertificategetInstance(java.lang.Object o)static CMPCertificategetInstance(org.bouncycastle.asn1.ASN1TaggedObject ato, boolean isExplicit)org.bouncycastle.asn1.ASN1ObjectgetOtherCert()intgetOtherCertTag()org.bouncycastle.asn1.x509.AttributeCertificategetX509v2AttrCert()Deprecated.use getOtherCert and getOtherTag to make sure message is really what it should be.org.bouncycastle.asn1.x509.CertificategetX509v3PKCert()booleanisX509v3PKCert()org.bouncycastle.asn1.ASN1PrimitivetoASN1Primitive()CMPCertificate ::= CHOICE { x509v3PKCert Certificate otherCert [tag] EXPLICIT ANY DEFINED BY tag }
-
-
-
Constructor Detail
-
CMPCertificate
public CMPCertificate(org.bouncycastle.asn1.x509.AttributeCertificate x509v2AttrCert)
Deprecated.use (type. otherCert) constructorNote: the addition of attribute certificates is a BC extension. If you use this constructor they will be added with a tag value of 1.
-
CMPCertificate
public CMPCertificate(int type, org.bouncycastle.asn1.ASN1Object otherCert)Note: the addition of other certificates is a BC extension. If you use this constructor they will be added with an explicit tag value of type.- Parameters:
type- the type of the certificate (used as a tag value).otherCert- the object representing the certificate
-
CMPCertificate
public CMPCertificate(org.bouncycastle.asn1.x509.Certificate x509v3PKCert)
-
-
Method Detail
-
getInstance
public static CMPCertificate getInstance(org.bouncycastle.asn1.ASN1TaggedObject ato, boolean isExplicit)
-
getInstance
public static CMPCertificate getInstance(java.lang.Object o)
-
isX509v3PKCert
public boolean isX509v3PKCert()
-
getX509v3PKCert
public org.bouncycastle.asn1.x509.Certificate getX509v3PKCert()
-
getX509v2AttrCert
public org.bouncycastle.asn1.x509.AttributeCertificate getX509v2AttrCert()
Deprecated.use getOtherCert and getOtherTag to make sure message is really what it should be.Return an AttributeCertificate interpretation of otherCert.- Returns:
- an AttributeCertificate
-
getOtherCertTag
public int getOtherCertTag()
-
getOtherCert
public org.bouncycastle.asn1.ASN1Object getOtherCert()
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
CMPCertificate ::= CHOICE { x509v3PKCert Certificate otherCert [tag] EXPLICIT ANY DEFINED BY tag }Note: the addition of the explicit tagging is a BC extension. We apologise for the warped syntax, but hopefully you get the idea.- Specified by:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object- Returns:
- a basic ASN.1 object representation.
-
-