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

Method Element

schema.go:802–811  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

800
801// Element returns an etree.Element representing the object in XML form.
802func (a *Subject) Element() *etree.Element {
803 el := etree.NewElement("saml:Subject")
804 if a.NameID != nil {
805 el.AddChild(a.NameID.Element())
806 }
807 for _, v := range a.SubjectConfirmations {
808 el.AddChild(v.Element())
809 }
810 return el
811}
812
813// NameID represents the SAML element NameID.
814//

Callers

nothing calls this directly

Calls 1

ElementMethod · 0.45

Tested by

no test coverage detected