Skip to Content.
Sympa Menu

mace-opensaml-users - Validating Metadata Descriptor file

Subject: OpenSAML user discussion

List archive

Validating Metadata Descriptor file


Chronological Thread 
  • From: Deena Gurajala <>
  • To:
  • Subject: Validating Metadata Descriptor file
  • Date: Thu, 13 Aug 2009 11:38:38 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=i4B+1b/tPh1jyThynFPLbY0kF0tVcCUto7NtizEWmPu/pDoma7BXp6ZkSro2Y2cQJp JzQiYcffxFcsnkb/bOaJIRpl05u8wO7Xj+887QM9G5OleAi+Yd+zdUf18YnnE3FDz4vp XI5AS/fWlfOoEF1Gww4+1eaucXDSzNm5qYQjE=

Hi,

I am trying to validate Metadata descriptor file. But I am getting an error. I think that is invalid error.

This is how I am validating.

javax.xml.transform.dom.DOMSource domSrc = new DOMSource(element);
           
            Schema schema = SAMLSchemaBuilder.getSAML11Schema();
            Validator validator = schema.newValidator();
            validator.validate(domSrc);

The following is the error I am getting.

org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'use' is not allowed to appear in element 'md:KeyDescriptor'.

But according to the schema, the attribute use is allowed on KeyDescriptor element.

Am I doing some thing wrong or is it a bug?

Appreciate any help.

Thank you,
Deena.



Archive powered by MHonArc 2.6.16.

Top of Page