PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.core.wstrust.writers
Class WSTrustResponseWriter

java.lang.Object
  extended by org.picketlink.identity.federation.core.wstrust.writers.WSTrustResponseWriter

public class WSTrustResponseWriter
extends Object

A Stax writer for WS-Trust response messages.

Author:
Stefan Guilhen

Constructor Summary
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.
 
Method Summary
 void write(RequestSecurityTokenResponseCollection collection)
           Writes the WS-Trust response message represented by the specified RequestSecurityTokenResponseCollection object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSTrustResponseWriter

public WSTrustResponseWriter(OutputStream stream)
                      throws ProcessingException

Creates a WSTrustResponseWriter instance that writes WS-Trust response messages to the specified OutputStream.

Parameters:
stream - the where the response is to be written.
Throws:
ProcessingException - if an error occurs when creating the XMLStreamWriter for the specified stream.

WSTrustResponseWriter

public WSTrustResponseWriter(Result result)
                      throws ProcessingException

Creates a WSTrustResponseWriter instance that writes WS-Trust response messages to the specified Result.

Parameters:
result - the Result object where the response is to be written.
Throws:
ProcessingException - if an error occurs when creating the XMLStreamWriter for the specified result.

WSTrustResponseWriter

public WSTrustResponseWriter(XMLStreamWriter writer)

Creates a WSTrustResponseWriter instance that uses the specified XMLStreamWriter to write the WS-Trust response messages.

Parameters:
writer - the XMLStreamWriter that will be used to write the response messages.
Method Detail

write

public void write(RequestSecurityTokenResponseCollection collection)
           throws ProcessingException

Writes the WS-Trust response message represented by the specified RequestSecurityTokenResponseCollection object.

Parameters:
collection - the object that contains the WS-Trust response message to be written.
Throws:
ProcessingException - if an error occurs while writing the response message.

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.