Package org.jboss.resteasy.security.smime

Examples of org.jboss.resteasy.security.smime.SignedOutput


   public SignedOutput getSigned()
   {
      Customer cust = new Customer();
      cust.setName("Bill");

      SignedOutput output = new SignedOutput(cust, MediaType.APPLICATION_XML_TYPE);
      output.setPrivateKey(privateKey);
      output.setCertificate(certificate);
      return output;
   }
View Full Code Here


   public EnvelopedOutput getEncryptedSigned()
   {
      Customer cust = new Customer();
      cust.setName("Bill");

      SignedOutput signed = new SignedOutput(cust, MediaType.APPLICATION_XML_TYPE);
      signed.setCertificate(certificate);
      signed.setPrivateKey(privateKey);

      EnvelopedOutput output = new EnvelopedOutput(signed, "multipart/signed");
      output.setCertificate(certificate);
      return output;
   }
View Full Code Here

   @GET
   @Path("signed/pkcs7-signature")
   @Produces("application/pkcs7-signature")
   public SignedOutput get()
   {
      SignedOutput output = new SignedOutput("hello world", "text/plain");
      output.setCertificate(cert);
      output.setPrivateKey(privateKey);
      return output;
   }
View Full Code Here

      ThreadSafeClientConnManager cm = new ThreadSafeClientConnManager();
      cm.setMaxTotal(100);
      cm.setDefaultMaxPerRoute(100);
      HttpClient httpClient = new DefaultHttpClient(cm);

      SignedOutput output = new SignedOutput("hello world", "text/plain");
      output.setCertificate(cert);
      output.setPrivateKey(privateKey);
      return output;
   }
View Full Code Here

TOP

Related Classes of org.jboss.resteasy.security.smime.SignedOutput

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.