Class C509PEM

java.lang.Object
org.bouncycastle.cbor.c509.C509PEM
All Implemented Interfaces:
Destroyable

public class C509PEM extends Object implements Destroyable
A C509PEM structure (Section 3.6 of draft-ietf-cose-cbor-encoded-cert-20):
C509PEM = [ C509PrivateKey, COSE_C509 / null ]
pairing a private key with the certificates for the corresponding public key. Destroying a C509PEM destroys the private key it holds.
  • Constructor Details

    • C509PEM

      public C509PEM(C509PrivateKey privateKey, C509Certificate[] certificates)
      Base constructor.
      Parameters:
      privateKey - the private key.
      certificates - the certificates for the corresponding public key, or null.
  • Method Details