Refer to this AEM SAML article based on an AEM community member who successfully got this working., Integrating SAML with Adobe Experience Manager On the front of the artilce is the community member as well who contributed this solution.
If you want to read data from a policy - then like any other AEM nodes - make sure you referencing the correct path if you want to read the node's properties.For your code - where did you get it - are you referencing an Adobe doc?
If you are using AEM 6.4/6.3 - you should look at using latest granite types -- ie- granite/ui/components/coral/foundation/form/textfieldgranite/ui/components/coral/foundation/form/textareagranite/ui/components/coral/foundation/form/checkboxgranite/ui/components/coral/foundation/form/selectgranite/u...
We have AEM Community HELPX articles on multifields - see:Adobe Experience Manager Help | Creating a HTL Repeating Data Set 6.4 Component that uses Sling Models Building Experience Manager Components using Granite/Coral Resource Types