org.jboss.identity.federation.api.wstrust.protocol
Class RequestSecurityTokenResponseCollection

java.lang.Object
  extended by org.jboss.identity.federation.api.wstrust.protocol.RequestSecurityTokenResponseCollection
All Implemented Interfaces:
BaseRequestSecurityTokenResponse

public class RequestSecurityTokenResponseCollection
extends java.lang.Object
implements BaseRequestSecurityTokenResponse

This class represents a WS-Trust RequestSecurityTokenResponseCollection. It wraps the JAXB representation of the security token collection response.

Author:
Stefan Guilhen

Constructor Summary
RequestSecurityTokenResponseCollection()
           Creates an instance of RequestSecurityTokenResponseCollection.
RequestSecurityTokenResponseCollection(RequestSecurityTokenResponseCollectionType delegate)
           Creates an instance of RequestSecurityTokenResponseCollection using the specified delegate.
 
Method Summary
 void addRequestSecurityTokenResponse(RequestSecurityTokenResponse response)
           Adds the specified RequestSecurityTokenResponse object to the collection of token requests.
 RequestSecurityTokenResponseCollectionType getDelegate()
           Obtains a reference to the RequestSecurityTokenResponseCollectionType delegate.
 java.util.List<RequestSecurityTokenResponse> getRequestSecurityTokenResponses()
           Obtains the collection of RequestSecurityTokenResponse objects.
 void removeRequestSecurityTokenResponse(RequestSecurityTokenResponse response)
           Removes the specified RequestSecurityTokenResponse object from the collection of token requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestSecurityTokenResponseCollection

public RequestSecurityTokenResponseCollection()

Creates an instance of RequestSecurityTokenResponseCollection.


RequestSecurityTokenResponseCollection

public RequestSecurityTokenResponseCollection(RequestSecurityTokenResponseCollectionType delegate)

Creates an instance of RequestSecurityTokenResponseCollection using the specified delegate.

Parameters:
delegate - the JAXB RequestSecurityTokenResponseCollectionType that represents a WS-Trust request collection.
Method Detail

getRequestSecurityTokenResponses

public java.util.List<RequestSecurityTokenResponse> getRequestSecurityTokenResponses()

Obtains the collection of RequestSecurityTokenResponse objects. The returned collection is immutable, so addition or removal of requests must be carried by the appropriate add/remove methods.

Returns:
a List<RequestSecurityToken> containing the token requests.

addRequestSecurityTokenResponse

public void addRequestSecurityTokenResponse(RequestSecurityTokenResponse response)

Adds the specified RequestSecurityTokenResponse object to the collection of token requests.

Parameters:
request - the RequestSecurityTokenResponse to be added.

removeRequestSecurityTokenResponse

public void removeRequestSecurityTokenResponse(RequestSecurityTokenResponse response)

Removes the specified RequestSecurityTokenResponse object from the collection of token requests.

Parameters:
request - the RequestSecurityTokenResponse to be removed.

getDelegate

public RequestSecurityTokenResponseCollectionType getDelegate()

Obtains a reference to the RequestSecurityTokenResponseCollectionType delegate.

Returns:
a reference to the delegate instance.


Copyright © 2009 JBoss Inc.. All Rights Reserved.