FileDocCategorySizeDatePackage
RequestSecurityTokenResponseCollectionImpl.javaAPI DocExample5287Tue May 29 16:57:00 BST 2007com.sun.xml.ws.security.trust.impl.elements

RequestSecurityTokenResponseCollectionImpl

public class RequestSecurityTokenResponseCollectionImpl extends com.sun.xml.ws.security.trust.impl.bindings.RequestSecurityTokenResponseCollectionType implements com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection
author
Manveen Kaur.

Fields Summary
protected List
requestSecurityTokenResponses
Constructors Summary
public RequestSecurityTokenResponseCollectionImpl()

        // empty ctor
    
public RequestSecurityTokenResponseCollectionImpl(URI tokenType, URI context, com.sun.xml.ws.security.trust.elements.RequestedSecurityToken token, com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes, com.sun.xml.ws.security.trust.elements.RequestedAttachedReference attached, com.sun.xml.ws.security.trust.elements.RequestedUnattachedReference unattached, com.sun.xml.ws.security.trust.elements.RequestedProofToken proofToken, com.sun.xml.ws.security.trust.elements.Entropy entropy, com.sun.xml.ws.security.trust.elements.Lifetime lt)

        final RequestSecurityTokenResponse rstr = new RequestSecurityTokenResponseImpl(tokenType, context, token, scopes,
                attached, unattached, proofToken, entropy, lt, null);
        addRequestSecurityTokenResponse(rstr);
        
    
public RequestSecurityTokenResponseCollectionImpl(com.sun.xml.ws.security.trust.impl.bindings.RequestSecurityTokenResponseCollectionType rstrcType)

        final List<RequestSecurityTokenResponseType> list = rstrcType.getRequestSecurityTokenResponse();
        for (int i = 0; i < list.size(); i++) {
            addRequestSecurityTokenResponse(new RequestSecurityTokenResponseImpl((RequestSecurityTokenResponseType)list.get(i)));
        }
    
Methods Summary
public final voidaddRequestSecurityTokenResponse(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr)

         getRequestSecurityTokenResponses().add(rstr);
         
        //JAXBElement<RequestSecurityTokenResponseType> rstrEl =
               // (new ObjectFactory()).createRequestSecurityTokenResponse((RequestSecurityTokenResponseType)rstr);
         getRequestSecurityTokenResponse().add((RequestSecurityTokenResponseType)rstr);
    
public java.util.ListgetRequestSecurityTokenResponses()

        if (requestSecurityTokenResponses == null) {
            requestSecurityTokenResponses = new ArrayList<RequestSecurityTokenResponse>();
        }
        return this.requestSecurityTokenResponses;