Class CBORX509Signer

java.lang.Object
org.webpki.cbor.CBORSigner
org.webpki.cbor.CBORX509Signer

public class CBORX509Signer extends CBORSigner
Class for creating X.509 signatures.

Also see CBORSigner.

Note that X.509 signatures do not permit the use of a keyId.

  • Constructor Details

    • CBORX509Signer

      public CBORX509Signer(X509SignerInterface signer)
      Initializes a signer with an external interface.
      Parameters:
      signer - Custom signer
    • CBORX509Signer

      public CBORX509Signer(PrivateKey privateKey, X509Certificate[] certificatePath)
      Initializes an X.509 signer with a private key.

      The signature algorithm to use is based on the recommendations in RFC 7518.

      Parameters:
      privateKey - Signature key
      certificatePath - A matching non-null certificate path
    • CBORX509Signer

      public CBORX509Signer(PrivateKey privateKey, X509Certificate[] certificatePath, AsymSignatureAlgorithms algorithm)
      Initializes an X.509 signer with a private key.
      Parameters:
      privateKey - Signature key
      certificatePath - A matching non-null certificate path
      algorithm - Signature algorithm