Element returns an etree.Element representing the object in XML form.
()
| 1057 | |
| 1058 | // Element returns an etree.Element representing the object in XML form. |
| 1059 | func (a *ProxyRestriction) Element() *etree.Element { |
| 1060 | el := etree.NewElement("saml:ProxyRestriction") |
| 1061 | if a.Count != nil { |
| 1062 | el.CreateAttr("Count", strconv.Itoa(*a.Count)) |
| 1063 | } |
| 1064 | for _, v := range a.Audiences { |
| 1065 | el.AddChild(v.Element()) |
| 1066 | } |
| 1067 | return el |
| 1068 | } |
| 1069 | |
| 1070 | // AuthnStatement represents the SAML element AuthnStatement. |
| 1071 | // |