Element returns an etree.Element representing the object in XML form.
()
| 1160 | |
| 1161 | // Element returns an etree.Element representing the object in XML form. |
| 1162 | func (a *AuthnContext) Element() *etree.Element { |
| 1163 | el := etree.NewElement("saml:AuthnContext") |
| 1164 | if a.AuthnContextClassRef != nil { |
| 1165 | el.AddChild(a.AuthnContextClassRef.Element()) |
| 1166 | } |
| 1167 | return el |
| 1168 | } |
| 1169 | |
| 1170 | // AuthnContextClassRef represents the SAML element AuthnContextClassRef. |
| 1171 | // |