Element returns an etree.Element representing the object in XML form.
()
| 1138 | |
| 1139 | // Element returns an etree.Element representing the object in XML form. |
| 1140 | func (a *SubjectLocality) Element() *etree.Element { |
| 1141 | el := etree.NewElement("saml:SubjectLocality") |
| 1142 | if a.Address != "" { |
| 1143 | el.CreateAttr("Address", a.Address) |
| 1144 | } |
| 1145 | if a.DNSName != "" { |
| 1146 | el.CreateAttr("DNSName", a.DNSName) |
| 1147 | } |
| 1148 | return el |
| 1149 | } |
| 1150 | |
| 1151 | // AuthnContext represents the SAML element AuthnContext. |
| 1152 | // |
nothing calls this directly
no outgoing calls
no test coverage detected