for (vector<XMLObject*>::const_iterator i = exts.begin(); i != exts.end(); ++i) {
const opensaml::saml2md::DigestMethod* dm = dynamic_cast<opensaml::saml2md::DigestMethod*>(*i);
if (dm) {
- if (dm->getAlgorithm() && conf.isXMLAlgorithmSupported(dm->getAlgorithm()))
+ if (dm->getAlgorithm() && conf.isXMLAlgorithmSupported(dm->getAlgorithm(), XMLToolingConfig::ALGTYPE_DIGEST))
return dm;
roleLevel = true;
}
const vector<XMLObject*>& exts = const_cast<const Extensions*>(entity->getExtensions())->getUnknownXMLObjects();
for (vector<XMLObject*>::const_iterator i = exts.begin(); i != exts.end(); ++i) {
const opensaml::saml2md::DigestMethod* dm = dynamic_cast<opensaml::saml2md::DigestMethod*>(*i);
- if (dm && dm->getAlgorithm() && conf.isXMLAlgorithmSupported(dm->getAlgorithm()))
+ if (dm && dm->getAlgorithm() && conf.isXMLAlgorithmSupported(dm->getAlgorithm(), XMLToolingConfig::ALGTYPE_DIGEST))
return dm;
}
}
const SigningMethod* sm = dynamic_cast<SigningMethod*>(*i);
if (sm) {
roleLevel = true;
- if (sm->getAlgorithm() && conf.isXMLAlgorithmSupported(sm->getAlgorithm())) {
+ if (sm->getAlgorithm() && conf.isXMLAlgorithmSupported(sm->getAlgorithm(), XMLToolingConfig::ALGTYPE_SIGN)) {
cc.setXMLAlgorithm(sm->getAlgorithm());
pair<bool,int> minsize = sm->getMinKeySize(), maxsize = sm->getMaxKeySize();
if (minsize.first || maxsize.first) {
for (vector<XMLObject*>::const_iterator i = exts.begin(); i != exts.end(); ++i) {
const SigningMethod* sm = dynamic_cast<SigningMethod*>(*i);
if (sm) {
- if (sm->getAlgorithm() && conf.isXMLAlgorithmSupported(sm->getAlgorithm())) {
+ if (sm->getAlgorithm() && conf.isXMLAlgorithmSupported(sm->getAlgorithm(), XMLToolingConfig::ALGTYPE_SIGN)) {
cc.setXMLAlgorithm(sm->getAlgorithm());
pair<bool,int> minsize = sm->getMinKeySize(), maxsize = sm->getMaxKeySize();
if (minsize.first || maxsize.first) {