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

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

public class RequestSecurityTokenCollection
extends java.lang.Object
implements BaseRequestSecurityToken

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

Author:
Stefan Guilhen

Constructor Summary
RequestSecurityTokenCollection()
           Creates an instance of RequestSecurityTokenCollection.
RequestSecurityTokenCollection(RequestSecurityTokenCollectionType delegate)
           Creates an instance of RequestSecurityTokenCollection using the specified delegate.
 
Method Summary
 void addRequestSecurityToken(RequestSecurityToken request)
           Adds the specified RequestSecurityToken object to the collection of token requests.
 RequestSecurityTokenCollectionType getDelegate()
           Obtains a reference to the RequestSecurityTokenCollectionType delegate.
 java.util.List<RequestSecurityToken> getRequestSecurityTokens()
           Obtains the collection of RequestSecurityToken objects.
 void removeRequestSecurityToken(RequestSecurityToken request)
           Removes the specified RequestSecurityToken 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

RequestSecurityTokenCollection

public RequestSecurityTokenCollection()

Creates an instance of RequestSecurityTokenCollection.


RequestSecurityTokenCollection

public RequestSecurityTokenCollection(RequestSecurityTokenCollectionType delegate)

Creates an instance of RequestSecurityTokenCollection using the specified delegate.

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

getRequestSecurityTokens

public java.util.List<RequestSecurityToken> getRequestSecurityTokens()

Obtains the collection of RequestSecurityToken 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.

addRequestSecurityToken

public void addRequestSecurityToken(RequestSecurityToken request)

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

Parameters:
request - the RequestSecurityToken to be added.

removeRequestSecurityToken

public void removeRequestSecurityToken(RequestSecurityToken request)

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

Parameters:
request - the RequestSecurityToken to be removed.

getDelegate

public RequestSecurityTokenCollectionType getDelegate()

Obtains a reference to the RequestSecurityTokenCollectionType delegate.

Returns:
a reference to the delegate instance.


Copyright © 2009 JBoss Inc.. All Rights Reserved.