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

Method Element

schema.go:1381–1388  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1379
1380// Element returns an etree.Element representing the object in XML form.
1381func (s *SessionIndex) Element() *etree.Element {
1382 el := etree.NewElement("samlp:SessionIndex")
1383 el.CreateAttr("xmlns:samlp", "urn:oasis:names:tc:SAML:2.0:protocol")
1384 if s.Value != "" {
1385 el.SetText(s.Value)
1386 }
1387 return el
1388}
1389
1390// SubjectConfirmation represents the SAML element SubjectConfirmation.
1391//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected