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

Method Element

schema.go:1766–1775  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1764
1765// Element returns an etree.Element representing the object in XML form.
1766func (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//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected