/** A thread-safe unmarshaller for {@link RequestSecurityTokenResponse} objects. */
public class RequestSecurityTokenResponseUnmarshaller extends AbstractXMLObjectUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) {
RequestSecurityTokenResponse response = (RequestSecurityTokenResponse) parentSAMLObject;
if (childSAMLObject instanceof RequestedSecurityToken) {
response.getRequestedSecurityToken().add((RequestedSecurityToken) childSAMLObject);
} else if (childSAMLObject instanceof AppliesTo) {
response.setAppliesTo((AppliesTo) childSAMLObject);
}
}