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

Method Element

schema.go:1059–1068  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1057
1058// Element returns an etree.Element representing the object in XML form.
1059func (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//

Callers

nothing calls this directly

Calls 1

ElementMethod · 0.45

Tested by

no test coverage detected