- : AttributeDecoder(e),
- m_hash(false),
- m_keyInfoHashAlg(e ? e->getAttributeNS(nullptr, keyInfoHashAlg) : nullptr),
- m_keyInfoResolver(nullptr) {
- const XMLCh* flag = e ? e->getAttributeNS(nullptr, _hash) : nullptr;
- m_hash = (flag && (*flag == chLatin_t || *flag == chDigit_1));
- e = e ? XMLHelper::getFirstChildElement(e,_KeyInfoResolver) : nullptr;
+ : AttributeDecoder(e),
+ m_hash(XMLHelper::getAttrBool(e, false, _hash)),
+ m_keyInfoHashAlg(XMLHelper::getAttrString(e, "SHA1", keyInfoHashAlg)) {
+ e = XMLHelper::getFirstChildElement(e, _KeyInfoResolver);