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

Method Element

schema.go:1140–1149  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1138
1139// Element returns an etree.Element representing the object in XML form.
1140func (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//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected