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

Method Element

schema.go:853–860  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

851
852// Element returns an etree.Element representing the object in XML form.
853func (s *SessionIndex) Element() *etree.Element {
854 el := etree.NewElement("samlp:SessionIndex")
855 el.CreateAttr("xmlns:samlp", "urn:oasis:names:tc:SAML:2.0:protocol")
856 if s.Value != "" {
857 el.SetText(s.Value)
858 }
859 return el
860}
861
862// SubjectConfirmation represents the SAML element SubjectConfirmation.
863//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected