MCPcopy Create free account
hub / github.com/crewjam/saml / Element

Method Element

schema.go:281–297  ·  view source on GitHub ↗

Element returns an etree.Element representing the object in XML form.

()

Source from the content-addressed store, hash-verified

279
280// Element returns an etree.Element representing the object in XML form.
281func (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//

Callers 15

MakeAssertionElMethod · 0.45
ElementMethod · 0.45
ElementMethod · 0.45
ElementMethod · 0.45
ElementMethod · 0.45
ElementMethod · 0.45
ElementMethod · 0.45
ElementMethod · 0.45
ElementMethod · 0.45
ElementMethod · 0.45
ElementMethod · 0.45
ElementMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected