com.sun.xml.ws.security.opt.impl.attachment
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 java.lang.Object
- implements com.sun.xml.ws.api.message.Attachment
- Author:
- Ashutosh.Shahi@sun.com
|
Constructor Summary |
EncryptedAttachment(com.sun.xml.ws.api.message.Attachment attachment,
java.lang.String dataAlgo,
java.security.Key key)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncryptedAttachment
public EncryptedAttachment(com.sun.xml.ws.api.message.Attachment attachment,
java.lang.String dataAlgo,
java.security.Key key)
throws XWSSecurityException
- Throws:
XWSSecurityException
getContentId
public java.lang.String getContentId()
- Specified by:
getContentId in interface com.sun.xml.ws.api.message.Attachment
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType in interface com.sun.xml.ws.api.message.Attachment
asByteArray
public byte[] asByteArray()
- Specified by:
asByteArray in interface com.sun.xml.ws.api.message.Attachment
asDataHandler
public javax.activation.DataHandler asDataHandler()
- Specified by:
asDataHandler in interface com.sun.xml.ws.api.message.Attachment
asSource
public javax.xml.transform.Source asSource()
- Specified by:
asSource in interface com.sun.xml.ws.api.message.Attachment
asInputStream
public java.io.InputStream asInputStream()
- Specified by:
asInputStream in interface com.sun.xml.ws.api.message.Attachment
writeTo
public void writeTo(java.io.OutputStream os)
throws java.io.IOException
- Specified by:
writeTo in interface com.sun.xml.ws.api.message.Attachment
- Throws:
java.io.IOException
writeTo
public void writeTo(javax.xml.soap.SOAPMessage saaj)
throws javax.xml.soap.SOAPException
- Specified by:
writeTo in interface com.sun.xml.ws.api.message.Attachment
- Throws:
javax.xml.soap.SOAPException
Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.