Element returns an etree.Element representing the object in XML form.
()
| 1683 | |
| 1684 | // Element returns an etree.Element representing the object in XML form. |
| 1685 | func (a *ProxyRestriction) Element() *etree.Element { |
| 1686 | el := etree.NewElement("saml:ProxyRestriction") |
| 1687 | if a.Count != nil { |
| 1688 | el.CreateAttr("Count", strconv.Itoa(*a.Count)) |
| 1689 | } |
| 1690 | for _, v := range a.Audiences { |
| 1691 | el.AddChild(v.Element()) |
| 1692 | } |
| 1693 | return el |
| 1694 | } |
| 1695 | |
| 1696 | // AuthnStatement represents the SAML element AuthnStatement. |
| 1697 | // |