-/*
- * Copyright 2001-2010 Internet2
+/**
+ * Licensed to the University Corporation for Advanced Internet
+ * Development, Inc. (UCAID) under one or more contributor license
+ * agreements. See the NOTICE file distributed with this work for
+ * additional information regarding copyright ownership.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * UCAID licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the
+ * License at
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific
+ * language governing permissions and limitations under the License.
#include <xmltooling/logging.h>
#include <xmltooling/XMLToolingConfig.h>
#include <xmltooling/io/HTTPRequest.h>
#include <xmltooling/logging.h>
#include <xmltooling/XMLToolingConfig.h>
#include <xmltooling/io/HTTPRequest.h>
using namespace opensaml;
using namespace xmltooling::logging;
using namespace xmltooling;
using namespace opensaml;
using namespace xmltooling::logging;
using namespace xmltooling;
}
catch (ArtifactException&) {
log.error("error parsing artifact (%s)", SAMLart);
}
catch (ArtifactException&) {
log.error("error parsing artifact (%s)", SAMLart);
log.error("wrong artifact type");
throw BindingException("Artifact binding requires SAML 2.0 artifact.");
}
log.debug("attempting to determine source of artifact...");
MetadataProvider::Criteria& mc = policy.getMetadataProviderCriteria();
log.error("wrong artifact type");
throw BindingException("Artifact binding requires SAML 2.0 artifact.");
}
log.debug("attempting to determine source of artifact...");
MetadataProvider::Criteria& mc = policy.getMetadataProviderCriteria();
mc.role = policy.getRole();
mc.protocol = samlconstants::SAML20P_NS;
pair<const EntityDescriptor*,const RoleDescriptor*> provider=policy.getMetadataProvider()->getEntityDescriptor(mc);
mc.role = policy.getRole();
mc.protocol = samlconstants::SAML20P_NS;
pair<const EntityDescriptor*,const RoleDescriptor*> provider=policy.getMetadataProvider()->getEntityDescriptor(mc);
- m_artifactResolver->resolve(*(artifact2.get()), dynamic_cast<const SSODescriptorType&>(*provider.second), policy)
+ m_artifactResolver->resolve(*artifact2, dynamic_cast<const SSODescriptorType&>(*provider.second), policy)