Class CBORX509Signer


public class CBORX509Signer extends CBORSigner<CBORX509Signer>
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)
      Creates an X.509 signer object with an external interface.
      Parameters:
      signer - Custom signer
    • CBORX509Signer

      public CBORX509Signer(PrivateKey privateKey, X509Certificate[] certificatePath)
      Creates an X.509 signer object 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)
      Creates an X.509 signer object with a private key.
      Parameters:
      privateKey - Signature key
      certificatePath - A matching non-null certificate path
      algorithm - Signature algorithm