public static RequestSecurityTokenResponse parseXML(InputStream is) throws WSFederationException {
  Document doc=XMLUtils.toDOMDocument(is,debug);
  Element root=doc.getDocumentElement();
  return new RequestSecurityTokenResponse(root);
}

public static RequestSecurityTokenResponse parseXML ( InputStream is ) throws WSFederationException { Document doc = XMLUtils . toDOMDocument ( is , debug ) ; Element root = doc . getDocumentElement ( ) ; return new RequestSecurityTokenResponse ( root ) ; }
returns requestsecuritytokenresponse object based on the data in the input stream . this method is used primarily at the client side . the schema of the xml document is defined in ws - trust .
