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 Details

  • Method Details

    • getInstance

      public static CertOrEncCert getInstance(Object o)
    • hasEncryptedCertificate

      public boolean hasEncryptedCertificate()
    • getCertificate

      public CMPCertificate getCertificate()
    • getEncryptedCert

      public EncryptedKey getEncryptedCert()
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
       CertOrEncCert ::= CHOICE {
                            certificate     [0] CMPCertificate,
                            encryptedCert   [1] EncryptedKey
                 }
       
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object
      Returns:
      a basic ASN.1 object representation.