Element returns an etree.Element representing the object in XML form.
()
| 279 | |
| 280 | // Element returns an etree.Element representing the object in XML form. |
| 281 | func (a *Issuer) Element() *etree.Element { |
| 282 | el := etree.NewElement("saml:Issuer") |
| 283 | if a.NameQualifier != "" { |
| 284 | el.CreateAttr("NameQualifier", a.NameQualifier) |
| 285 | } |
| 286 | if a.SPNameQualifier != "" { |
| 287 | el.CreateAttr("SPNameQualifier", a.SPNameQualifier) |
| 288 | } |
| 289 | if a.Format != "" { |
| 290 | el.CreateAttr("Format", a.Format) |
| 291 | } |
| 292 | if a.SPProvidedID != "" { |
| 293 | el.CreateAttr("SPProvidedID", a.SPProvidedID) |
| 294 | } |
| 295 | el.SetText(a.Value) |
| 296 | return el |
| 297 | } |
| 298 | |
| 299 | // NameIDPolicy represents the SAML object of the same name. |
| 300 | // |
no outgoing calls
no test coverage detected