Package org.bouncycastle.cms.jcajce

Examples of org.bouncycastle.cms.jcajce.JcaSignerId


  // The signed content is always an octet string
  CMSProcessable signedContent = pkiMessage.getSignedContent();

  SignerInformationStore signerStore = pkiMessage.getSignerInfos();
  SignerInformation signerInfo = signerStore.get(new JcaSignerId(signer));
  if (signerInfo == null) {
      throw new MessageDecodingException("Could not for signerInfo for "
        + signer.getIssuerDN());
  }
View Full Code Here


     * @return <code>true</code> if the signedData was signed by the entity,
     *         <code>false</code> otherwise.
     */
    public static boolean isSignedBy(CMSSignedData sd, X509Certificate signer) {
  SignerInformationStore store = sd.getSignerInfos();
  SignerInformation signerInfo = store.get(new JcaSignerId(signer));
  if (signerInfo == null) {
      return false;
  }
  CMSSignatureAlgorithmNameGenerator sigNameGenerator = new DefaultCMSSignatureAlgorithmNameGenerator();
  SignatureAlgorithmIdentifierFinder sigAlgorithmFinder = new DefaultSignatureAlgorithmIdentifierFinder();
View Full Code Here

TOP

Related Classes of org.bouncycastle.cms.jcajce.JcaSignerId

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.