Element returns an etree.Element representing the object in XML form.
()
| 851 | |
| 852 | // Element returns an etree.Element representing the object in XML form. |
| 853 | func (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 | // |
nothing calls this directly
no outgoing calls
no test coverage detected