Package org.bouncycastle.asn1.cmp
Class CMPCertificate
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cmp.CMPCertificate
- All Implemented Interfaces:
ASN1Choice
,ASN1Encodable
,Encodable
-
Constructor Summary
ConstructorsConstructorDescriptionCMPCertificate
(int type, ASN1Object otherCert) Note: the addition of other certificates is a BC extension.CMPCertificate
(AttributeCertificate x509v2AttrCert) Deprecated.use (type.CMPCertificate
(Certificate x509v3PKCert) -
Method Summary
Modifier and TypeMethodDescriptionstatic CMPCertificate
int
Deprecated.use getOtherCert and getOtherTag to make sure message is really what it should be.boolean
CMPCertificate ::= CHOICE { x509v3PKCert Certificate otherCert [tag] EXPLICIT ANY DEFINED BY tag }Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
CMPCertificate
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
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
-
-
Method Details
-
getInstance
-
isX509v3PKCert
public boolean isX509v3PKCert() -
getX509v3PKCert
-
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
-
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:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a basic ASN.1 object representation.
-