Class EncryptedAttachment
- java.lang.Object
-
- com.sun.xml.ws.security.opt.impl.attachment.EncryptedAttachment
-
- All Implemented Interfaces:
com.sun.xml.ws.api.message.Attachment
public class EncryptedAttachment extends Object implements com.sun.xml.ws.api.message.Attachment
- Author:
- Ashutosh.Shahi@sun.com
-
-
Constructor Summary
Constructors Constructor Description EncryptedAttachment(com.sun.xml.ws.api.message.Attachment attachment, String dataAlgo, Key key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]asByteArray()jakarta.activation.DataHandlerasDataHandler()InputStreamasInputStream()SourceasSource()StringgetContentId()StringgetContentType()voidwriteTo(jakarta.xml.soap.SOAPMessage saaj)voidwriteTo(OutputStream os)
-
-
-
Constructor Detail
-
EncryptedAttachment
public EncryptedAttachment(com.sun.xml.ws.api.message.Attachment attachment, String dataAlgo, Key key) throws XWSSecurityException- Throws:
XWSSecurityException
-
-
Method Detail
-
getContentId
public String getContentId()
- Specified by:
getContentIdin interfacecom.sun.xml.ws.api.message.Attachment
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfacecom.sun.xml.ws.api.message.Attachment
-
asByteArray
public byte[] asByteArray()
- Specified by:
asByteArrayin interfacecom.sun.xml.ws.api.message.Attachment
-
asDataHandler
public jakarta.activation.DataHandler asDataHandler()
- Specified by:
asDataHandlerin interfacecom.sun.xml.ws.api.message.Attachment
-
asSource
public Source asSource()
- Specified by:
asSourcein interfacecom.sun.xml.ws.api.message.Attachment
-
asInputStream
public InputStream asInputStream()
- Specified by:
asInputStreamin interfacecom.sun.xml.ws.api.message.Attachment
-
writeTo
public void writeTo(OutputStream os) throws IOException
- Specified by:
writeToin interfacecom.sun.xml.ws.api.message.Attachment- Throws:
IOException
-
writeTo
public void writeTo(jakarta.xml.soap.SOAPMessage saaj) throws jakarta.xml.soap.SOAPException- Specified by:
writeToin interfacecom.sun.xml.ws.api.message.Attachment- Throws:
jakarta.xml.soap.SOAPException
-
-