com.sun.xml.ws.security.opt.impl.attachment
Class EncryptedAttachment

java.lang.Object
  extended by 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
EncryptedAttachment(com.sun.xml.ws.api.message.Attachment attachment, String dataAlgo, Key key)
           
 
Method Summary
 byte[] asByteArray()
           
 DataHandler asDataHandler()
           
 InputStream asInputStream()
           
 Source asSource()
           
 String getContentId()
           
 String getContentType()
           
 void writeTo(OutputStream os)
           
 void writeTo(SOAPMessage saaj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
getContentId in interface com.sun.xml.ws.api.message.Attachment

getContentType

public 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 DataHandler asDataHandler()
Specified by:
asDataHandler in interface com.sun.xml.ws.api.message.Attachment

asSource

public Source asSource()
Specified by:
asSource in interface com.sun.xml.ws.api.message.Attachment

asInputStream

public InputStream asInputStream()
Specified by:
asInputStream in interface com.sun.xml.ws.api.message.Attachment

writeTo

public void writeTo(OutputStream os)
             throws IOException
Specified by:
writeTo in interface com.sun.xml.ws.api.message.Attachment
Throws:
IOException

writeTo

public void writeTo(SOAPMessage saaj)
             throws SOAPException
Specified by:
writeTo in interface com.sun.xml.ws.api.message.Attachment
Throws:
SOAPException


Copyright © 2005-2014 Oracle Corporation. All Rights Reserved.