Package com.itextpdf.text.pdf.security

Examples of com.itextpdf.text.pdf.security.PrivateKeySignature


            provider = new sun.security.rsa.SunRsaSign();
            Security.addProvider(provider);
        }

        // Sign the document.
        PrivateKeySignature signature = new PrivateKeySignature(
            key, "SHA-512", provider.getName());
        MakeSignature.signDetached(
            stamper.getSignatureAppearance(),
            new BouncyCastleDigest(),
            signature,
View Full Code Here


      }
    }

    // Creating the signature
    ExternalDigest digest = new BouncyCastleDigest();
    ExternalSignature signature = new PrivateKeySignature(pk, digestAlgorithm, null);
    MakeSignature.signDetached(appearance, digest, signature, chain, crlList,
       ocspClient, tsaClient, 0, subfilter);
  }
View Full Code Here

        providerName = this.parameters.getProvider();
      } else {
        providerName = BouncyCastleProviderHelper.PROVIDER_NAME;
      }

      ExternalSignature externalSignature = new PrivateKeySignature(privateKey, digestType.getAlgorithm(), providerName);

      ExternalDigest externalDigest = new BouncyCastleDigest();

      TSAClient tsc = null;
      if (this.parameters.getTimeStampClient() != null) {
View Full Code Here

        providerName = this.parameters.getProvider();
      } else {
        providerName = BouncyCastleProviderHelper.PROVIDER_NAME;
      }

      ExternalSignature externalSignature = new PrivateKeySignature(privateKey, digestType.getAlgorithm(), providerName);

      ExternalDigest externalDigest = new BouncyCastleDigest();

      TSAClient tsc = null;
      if (this.parameters.getTimeStampClient() != null) {
View Full Code Here

        providerName = this.parameters.getProvider();
      } else {
        providerName = BouncyCastleProviderHelper.PROVIDER_NAME;
      }

      ExternalSignature externalSignature = new PrivateKeySignature(privateKey, digestType.getAlgorithm(), providerName);

      ExternalDigest externalDigest = new BouncyCastleDigest();

      TSAClient tsc = null;
      if (this.parameters.getTimeStampClient() != null) {
View Full Code Here

TOP

Related Classes of com.itextpdf.text.pdf.security.PrivateKeySignature

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.