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)
| 359 | // (see validatedElement). A signature that is present but not valid is an |
| 360 | // error. |
| 361 | func (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. |
no test coverage detected