public class WSTrustResponseWriter extends Object
A Stax writer for WS-Trust response messages.
| Constructor and Description |
|---|
WSTrustResponseWriter(OutputStream stream)
Creates a
WSTrustResponseWriter instance that writes WS-Trust response messages to the specified
OutputStream. |
WSTrustResponseWriter(Result result)
Creates a
WSTrustResponseWriter instance that writes WS-Trust response messages to the specified Result. |
WSTrustResponseWriter(XMLStreamWriter writer)
Creates a
WSTrustResponseWriter instance that uses the specified XMLStreamWriter to write the
WS-Trust
response messages. |
| Modifier and Type | Method and Description |
|---|---|
void |
write(RequestSecurityTokenResponseCollection collection)
Writes the WS-Trust response message represented by the specified
RequestSecurityTokenResponseCollection
object. |
public WSTrustResponseWriter(OutputStream stream) throws ProcessingException
Creates a WSTrustResponseWriter instance that writes WS-Trust response messages to the specified
OutputStream.
stream - the where the response is to be written.ProcessingException - if an error occurs when creating the XMLStreamWriter for the specified
stream.public WSTrustResponseWriter(Result result) throws ProcessingException
Creates a WSTrustResponseWriter instance that writes WS-Trust response messages to the specified Result.
result - the Result object where the response is to be written.ProcessingException - if an error occurs when creating the XMLStreamWriter for the specified
result.public WSTrustResponseWriter(XMLStreamWriter writer)
Creates a WSTrustResponseWriter instance that uses the specified XMLStreamWriter to write the
WS-Trust
response messages.
writer - the XMLStreamWriter that will be used to write the response messages.public void write(RequestSecurityTokenResponseCollection collection) throws ProcessingException
Writes the WS-Trust response message represented by the specified RequestSecurityTokenResponseCollection
object.
collection - the object that contains the WS-Trust response message to be written.ProcessingException - if an error occurs while writing the response message.Copyright © 2018 JBoss by Red Hat. All rights reserved.