public class AttachmentHelper
extends java.lang.Object
Constructor and Description |
---|
AttachmentHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addCertificateAttachment(Message m,
com.vordel.security.sig.TemplateMessageDetails msg,
Body certificateAttachment,
java.lang.String certAttachmentId)
Add the signer's certificate to the request as
an attachment.
|
static Body |
generateCertificateAttachment(java.security.cert.X509Certificate certificate)
Generate an attachment containing the signer's
certificate.
|
static java.util.ArrayList<java.lang.String> |
getAttachmentTypes(Body soapPart,
CompoundBody compound)
This method takes a CompoundBody and returns a list of attachment
content types.
|
public static java.util.ArrayList<java.lang.String> getAttachmentTypes(Body soapPart, CompoundBody compound) throws java.io.IOException
soapPart
- The Body
of the SOAP XML part. This is not considered to be an attachment.compound
- The compound body.java.io.IOException
public static void addCertificateAttachment(Message m, com.vordel.security.sig.TemplateMessageDetails msg, Body certificateAttachment, java.lang.String certAttachmentId) throws java.io.IOException, com.vordel.common.VordelException
m
- The messagemsg
- The message detailsjava.io.IOException
com.vordel.common.VordelException
public static Body generateCertificateAttachment(java.security.cert.X509Certificate certificate) throws java.security.cert.CertificateEncodingException, java.io.IOException
java.security.cert.CertificateEncodingException
java.io.IOException
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel