MCPcopy Create free account
hub / github.com/crewjam/saml / Element

Method Element

schema.go:1685–1694  ·  view source on GitHub ↗

Element returns an etree.Element representing the object in XML form.

()

Source from the content-addressed store, hash-verified

1683
1684// Element returns an etree.Element representing the object in XML form.
1685func (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//

Callers 1

Calls 1

ElementMethod · 0.45

Tested by 1