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

Method Element

schema.go:874–884  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

872
873// Element returns an etree.Element representing the object in XML form.
874func (a *SubjectConfirmation) Element() *etree.Element {
875 el := etree.NewElement("saml:SubjectConfirmation")
876 el.CreateAttr("Method", a.Method)
877 if a.NameID != nil {
878 el.AddChild(a.NameID.Element())
879 }
880 if a.SubjectConfirmationData != nil {
881 el.AddChild(a.SubjectConfirmationData.Element())
882 }
883 return el
884}
885
886// SubjectConfirmationData represents the SAML element SubjectConfirmationData.
887//

Callers

nothing calls this directly

Calls 1

ElementMethod · 0.45

Tested by

no test coverage detected