mace-opensaml-users - Re: SAML 2.0 metadata
Subject: OpenSAML user discussion
List archive
- From: Manuela Stanica <>
- To: Chad La Joie <>
- Cc:
- Subject: Re: SAML 2.0 metadata
- Date: Tue, 16 May 2006 10:16:38 +0200
Hi Chad,
Given the error you've encountered I'd guess that the attribute value you're trying to read does not have a schema instance type attribute and that AttributeValue isn't registered or is specifically registered to use the ElementProxy element.The metadata document example that I'm using for testing is taken out of the OASIS specification for SAML 2 metadata, here is the concerned section:
<saml:Attribute
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.1"
FriendlyName="eduPersonAffiliation">
<saml:AttributeValue>member</saml:AttributeValue>
<saml:AttributeValue>student</saml:AttributeValue>
<saml:AttributeValue>faculty</saml:AttributeValue>
<saml:AttributeValue>employee</saml:AttributeValue>
<saml:AttributeValue>staff</saml:AttributeValue>
</saml:Attribute>
Could you please give me a hint on how to read these values?
Thanks,
Manuela
Manuela Stanica wrote:
Hi,
I noticed that the openSAML2 and XMLTooling code compiles again, great!
I still have a question though concerning AttributeValues. I haven't found out yet how I can read the value of an <AttributeValue>. It looks like there have been some changes made around this, are they documented somewhere? I've looked into the code and found an example of how I could read this value and tried to do the same in my code, but it doesn't seem to work.
I have something like:
List<XMLObject> attrValList = idpDescr.getAttributes().get(i).getAttributeValues();
for(int n=0; n<attrValList.size(); n++){
XSString value = (XSString) attrValList.get(n);
String val = value.getValue();
.............................
}
Here I get a java.lang.ClassCastException: org.opensaml.xml.ElementProxy when trying to do the casting to XSString.
So how can I get to my AttributeValues..?
Cheers,
Manuela
--
Manuela Stanica
DFN-Verein - The German Education & Research Network
Stresemannstrasse 78, D-10963 Berlin
Tel. +49 30 88429929
www.dfn.de Fax +49 30 88429970
- Re: SAML 2.0 metadata, Manuela Stanica, 05/11/2006
- <Possible follow-up(s)>
- Re: SAML 2.0 metadata, Manuela Stanica, 05/12/2006
- Re: SAML 2.0 metadata, Chad La Joie, 05/12/2006
- Re: SAML 2.0 metadata, Manuela Stanica, 05/16/2006
- Re: SAML 2.0 metadata, Chad La Joie, 05/16/2006
- Re: SAML 2.0 metadata, Manuela Stanica, 05/23/2006
- Re: SAML 2.0 metadata, Chad La Joie, 05/23/2006
- Re: SAML 2.0 metadata, Chad La Joie, 05/23/2006
- Re: SAML 2.0 metadata, Manuela Stanica, 05/24/2006
- Re: SAML 2.0 metadata, Chad La Joie, 05/23/2006
- Re: SAML 2.0 metadata, Manuela Stanica, 05/23/2006
- Re: SAML 2.0 metadata, Chad La Joie, 05/16/2006
- Re: SAML 2.0 metadata, Manuela Stanica, 05/16/2006
- Re: SAML 2.0 metadata, Chad La Joie, 05/12/2006
Archive powered by MHonArc 2.6.16.