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

Function resolveRoleDescriptorTypes

metadata.go:1134–1138  ·  view source on GitHub ↗

resolveRoleDescriptorTypes resolves the prefixes of the XSIType of the RoleDescriptors of ed that are still unresolved, with the namespace declarations in attrs (those of an enclosing element).

(ed *EntityDescriptor, attrs []xml.Attr)

Source from the content-addressed store, hash-verified

1132// RoleDescriptors of ed that are still unresolved, with the namespace
1133// declarations in attrs (those of an enclosing element).
1134func resolveRoleDescriptorTypes(ed *EntityDescriptor, attrs []xml.Attr) {
1135 for i := range ed.RoleDescriptors {
1136 ed.RoleDescriptors[i].XSIType = resolveQName(ed.RoleDescriptors[i].XSIType, attrs)
1137 }
1138}
1139
1140// MarshalXML implements xml.Marshaler, writing Signature as XML,
1141// cacheDuration as an xsd:duration and validUntil as a RelaxedTime. A zero

Callers 2

UnmarshalXMLMethod · 0.85
UnmarshalXMLMethod · 0.85

Calls 1

resolveQNameFunction · 0.85

Tested by

no test coverage detected