From 1d1ca408cff7d1efa1cff500e56b33c897e2c65b Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Tue, 25 Mar 2008 20:15:39 +0000 Subject: [PATCH] Multi-line svn commit, see body. Register builder for md:EncryptionMethod element to fix CPPOST-7. Add element to example metadata in unit tests. --- saml/saml2/metadata/impl/MetadataSchemaValidators.cpp | 3 +++ samltest/data/binding/example-metadata.xml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/saml/saml2/metadata/impl/MetadataSchemaValidators.cpp b/saml/saml2/metadata/impl/MetadataSchemaValidators.cpp index 2d8294a..79cf31e 100644 --- a/saml/saml2/metadata/impl/MetadataSchemaValidators.cpp +++ b/saml/saml2/metadata/impl/MetadataSchemaValidators.cpp @@ -326,6 +326,9 @@ void opensaml::saml2md::registerMetadataClasses() { REGISTER_TYPE(RequestedAttribute); REGISTER_TYPE(SPSSODescriptor); + q=QName(SAML20MD_NS,xmlencryption::EncryptionMethod::LOCAL_NAME); + XMLObjectBuilder::registerBuilder(q,new xmlencryption::EncryptionMethodBuilder()); + q=QName(samlconstants::SAML1MD_NS,SourceID::LOCAL_NAME); XMLObjectBuilder::registerBuilder(q,new SourceIDBuilder()); SchemaValidators.registerValidator(q,new SourceIDSchemaValidator()); diff --git a/samltest/data/binding/example-metadata.xml b/samltest/data/binding/example-metadata.xml index d09818b..c6d275e 100644 --- a/samltest/data/binding/example-metadata.xml +++ b/samltest/data/binding/example-metadata.xml @@ -27,7 +27,8 @@ gmYsTmak+kxO93JprrOd9xp8aZPMEprL7VCdrhbZEfyYER0= - + +