Using iText and AWS KMS to digitally sign a PDF document: Part 2
This example was written for the article "Using iText and AWS KMS to digitally sign a PDF document" and shows an implementation of the BouncyCastle interface ContentSigner.
This example is Java-only, since our .NET version of CertificateUtils from Part 1 doesn’t use BouncyCastle for certificate generation but instead uses the .NET X509SignatureGenerator.
AwsKMSContentSigner
##GITHUB:https://github.com/itext/itext-publications-signing-examples-java/blob/master/aws-kms/src/main/java/com/itextpdf/signingexamples/aws/kms/AwsKmsContentSigner.java##
Note: The article assumes that you have stored your credentials in the default section of your ~/.aws/credentials file and your region in the default section of your ~/.aws/config file. Otherwise, you'll have to adapt the KmsClient instantiation or initialization in the code examples written for this article.
For the other examples relating to this article, please see the following links: