Element returns an etree.Element representing the object in XML form.
()
| 872 | |
| 873 | // Element returns an etree.Element representing the object in XML form. |
| 874 | func (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 | // |