public class RequestSecurityTokenCollection extends Object implements BaseRequestSecurityToken
This class represents a WS-Trust RequestSecurityTokenCollection. It wraps the JAXB representation of the
security
token collection request.
| Constructor and Description |
|---|
RequestSecurityTokenCollection()
Creates an instance of
RequestSecurityTokenCollection. |
RequestSecurityTokenCollection(RequestSecurityTokenCollectionType delegate)
Creates an instance of
RequestSecurityTokenCollection using the specified delegate. |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestSecurityToken(RequestSecurityToken request)
Adds the specified
RequestSecurityToken object to the collection of token requests. |
RequestSecurityTokenCollectionType |
getDelegate()
Obtains a reference to the
RequestSecurityTokenCollectionType delegate. |
List<RequestSecurityToken> |
getRequestSecurityTokens()
Obtains the collection of
RequestSecurityToken objects. |
void |
removeRequestSecurityToken(RequestSecurityToken request)
Removes the specified
RequestSecurityToken object from the collection of token requests. |
public RequestSecurityTokenCollection()
Creates an instance of RequestSecurityTokenCollection.
public RequestSecurityTokenCollection(RequestSecurityTokenCollectionType delegate)
Creates an instance of RequestSecurityTokenCollection using the specified delegate.
delegate - the JAXB RequestSecurityTokenCollectionType that represents a WS-Trust request
collection.public 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.
List<RequestSecurityToken> containing the token requests.public void addRequestSecurityToken(RequestSecurityToken request)
Adds the specified RequestSecurityToken object to the collection of token requests.
request - the RequestSecurityToken to be added.public void removeRequestSecurityToken(RequestSecurityToken request)
Removes the specified RequestSecurityToken object from the collection of token requests.
request - the RequestSecurityToken to be removed.public RequestSecurityTokenCollectionType getDelegate()
Obtains a reference to the RequestSecurityTokenCollectionType delegate.
Copyright © 2021 JBoss by Red Hat. All rights reserved.