Builds this identity provider's metadata for a service provider — both
SAML versions, one entity (#523) — signed with the signature first inside
the EntityDescriptor.
Parameters
base: any
the realm's base URL
spEntityId: any
the service provider's entityID
OptionalwithWsFederation: any
#524: true for the WS-Federation view, which
also carries that profile's RoleDescriptor
Returns string
the metadata document, unsigned only when signing failed
Builds this identity provider's metadata for a service provider — both SAML versions, one entity (#523) — signed with the signature first inside the EntityDescriptor.