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

Method attributeQuerySignature

service_provider_attribute_query.go:361–371  ·  view source on GitHub ↗

attributeQuerySignature reports whether el carries a valid signature by the attribute authority and, if so, returns what the signature covers (see validatedElement). A signature that is present but not valid is an error.

(el *etree.Element)

Source from the content-addressed store, hash-verified

359// (see validatedElement). A signature that is present but not valid is an
360// error.
361func (sp *ServiceProvider) attributeQuerySignature(el *etree.Element) (*etree.Element, bool, error) {
362 signed, err := sp.verifySignedElement(el, sp.attributeAuthoritySigningCerts)
363 switch err {
364 case nil:
365 return signed, true, nil
366 case errSignatureElementNotPresent:
367 return nil, false, nil
368 default:
369 return nil, false, err
370 }
371}
372
373// validateAttributeQueryResponse checks the Response to query, apart from
374// its signature and assertions.

Callers 1

Calls 1

verifySignedElementMethod · 0.95

Tested by

no test coverage detected