Element returns an etree.Element representing the object in XML form.
()
| 1764 | |
| 1765 | // Element returns an etree.Element representing the object in XML form. |
| 1766 | func (a *SubjectLocality) Element() *etree.Element { |
| 1767 | el := etree.NewElement("saml:SubjectLocality") |
| 1768 | if a.Address != "" { |
| 1769 | el.CreateAttr("Address", a.Address) |
| 1770 | } |
| 1771 | if a.DNSName != "" { |
| 1772 | el.CreateAttr("DNSName", a.DNSName) |
| 1773 | } |
| 1774 | return el |
| 1775 | } |
| 1776 | |
| 1777 | // AuthnContext represents the SAML element AuthnContext. |
| 1778 | // |
nothing calls this directly
no outgoing calls
no test coverage detected