Package org.bouncycastle.asn1.cmp
Class CertOrEncCert
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cmp.CertOrEncCert
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Choice
,org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class CertOrEncCert
extends org.bouncycastle.asn1.ASN1Object
implements org.bouncycastle.asn1.ASN1Choice
CertOrEncCert ::= CHOICE {
certificate [0] CMPCertificate,
encryptedCert [1] EncryptedKey
}
-
Constructor Summary
ConstructorDescriptionCertOrEncCert
(CMPCertificate certificate) CertOrEncCert
(EncryptedKey encryptedKey) CertOrEncCert
(EncryptedValue encryptedValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic CertOrEncCert
boolean
org.bouncycastle.asn1.ASN1Primitive
CertOrEncCert ::= CHOICE { certificate [0] CMPCertificate, encryptedCert [1] EncryptedKey }Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
CertOrEncCert
-
CertOrEncCert
-
CertOrEncCert
-
-
Method Details
-
getInstance
-
hasEncryptedCertificate
public boolean hasEncryptedCertificate() -
getCertificate
-
getEncryptedCert
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()CertOrEncCert ::= CHOICE { certificate [0] CMPCertificate, encryptedCert [1] EncryptedKey }
- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
- Returns:
- a basic ASN.1 object representation.
-