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

Struct Extensions

metadata.go:461–475  ·  view source on GitHub ↗

Extensions represents the SAML metadata element md:Extensions, which holds extension elements from namespaces other than the SAML metadata namespace. Elements this package knows are decoded into their own fields. Any other element is kept in Other, so that it is not lost when metadata is parsed and

Source from the content-addressed store, hash-verified

459//
460// See http://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf §2.3.1
461type Extensions struct {
462 XMLName xml.Name `xml:"urn:oasis:names:tc:SAML:2.0:metadata Extensions"`
463
464 // SigningMethods and DigestMethods are the alg:SigningMethod and
465 // alg:DigestMethod elements of the Metadata Profile for Algorithm Support.
466 SigningMethods []SigningMethod `xml:"urn:oasis:names:tc:SAML:metadata:algsupport SigningMethod"`
467 DigestMethods []DigestMethod `xml:"urn:oasis:names:tc:SAML:metadata:algsupport DigestMethod"`
468
469 // ShibbolethScopes are the shibmd:Scope elements an identity provider
470 // publishes in its IDPSSODescriptor or AttributeAuthorityDescriptor.
471 ShibbolethScopes []ShibbolethScope `xml:"urn:mace:shibboleth:metadata:1.0 Scope"`
472
473 // Other holds the extension elements that have no field of their own.
474 Other []ExtensionElement `xml:",any"`
475}
476
477// SigningMethod represents the alg:SigningMethod element: an XML Signature
478// algorithm the entity supports, with optional bounds on the key size, in

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected