mace-opensaml-users - Re: [OpenSAML] OpenSAML query : usage of ValidatorSuite
Subject: OpenSAML user discussion
List archive
- From: Deena Gurajala <>
- To:
- Subject: Re: [OpenSAML] OpenSAML query : usage of ValidatorSuite
- Date: Mon, 7 Sep 2009 11:32:05 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=KuDgbNTnb+NtbxJWuoGV4ZfY+HHApUtexJmzSxTYkVf3N23mkkVvMsGD6bB0ZrDboS jLGNREKmeLSUr4i8BJpazDEvRPSS+Coaxgq6jeS8wAxM37KOYcQg8+Q8BoP826KtM63T n/tjGbG5s/t0Eyfax6IJoRbi3y7CHb0vB+p6c=
I don't know what you are asking. I am able to successfully validate Authentication Requests, SAML Response, Authorization Decision Query and response against their schema with this code. It will automatically validate missing fields and invalid values in the XML. If you give me more details, I can think of it.
On Sun, Sep 6, 2009 at 10:33 PM, Geetika Srivastava <> wrote:
Thanks for the help.
The code provided only validates the SAML token schema.
How can the validation of the values in SAML token be done in accordance with SAML 1.1 specification.
Regards,
Geetika Srivastava
Tata Consultancy Services
Mailto:
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
Deena Gurajala <>09/04/2009 10:05 PM
Please respond to
To cc SubjectRe: [OpenSAML] OpenSAML query : usage of ValidatorSuite
ForwardSourceID:NT0001115A
These are the imports.
import org.opensaml.common.xml.SAMLSchemaBuilder;
import javax.xml.validation.Schema;
import javax.xml.validation.Validator;
import org.opensaml.xml.parse.BasicParserPool;
import org.w3c.dom.Element;
import org.w3c.dom.Document;
import java.io.InputStream;
//Here is the code
Element samlElemnt = null;
BasicParserPool ppMgr = new BasicParserPool();
ppMgr.setNamespaceAware(true);
InputStream inputStream = new ByteArrayInputStream(samlString.getBytes());
Document document = ppMgr.parse(inputStream);
samlElemnt = document.getDocumentElement();
Schema schema = SAMLSchemaBuilder.
getSAML11Schema();
Validator validator = schema.newValidator();
javax.xml.transform.dom.DOMSource domSrc = new DOMSource(samlElemnt);
validator.validate(domSrc);
Hope it helps.
On Fri, Sep 4, 2009 at 9:27 AM, Deena Gurajala <> wrote:
Schema schema = SAMLSchemaBuilder.getSAML11Schema();
Validator validator = schema.newValidator();
javax.xml.transform.dom.DOMSource domSrc = new DOMSource(samlElemnt);
validator.validate(domSrc);
On Fri, Sep 4, 2009 at 6:05 AM, Geetika Srivastava <> wrote:
Hi,
Please could you provide me inputs as to how can we use the SAML Object validator validation as mentioned in :
https://spaces.internet2.edu/display/OpenSAML/OSTwoUserManJavaValidation
Regards,
Geetika Srivastava
Tata Consultancy Services
Mailto:
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
=====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
- RE: [OpenSAML] RE: Deploying OopenSAML2.2 in WL 10.1, (continued)
- RE: [OpenSAML] RE: Deploying OopenSAML2.2 in WL 10.1, Bryn Ryans, 09/04/2009
- RE: [OpenSAML] RE: Deploying OopenSAML2.2 in WL 10.1, ravi . balasubramanian, 09/04/2009
- RE: [OpenSAML] RE: Deploying OopenSAML2.2 in WL 10.1, ravi . balasubramanian, 09/04/2009
- RE: [OpenSAML] RE: Deploying OopenSAML2.2 in WL 10.1, ravi . balasubramanian, 09/04/2009
- Re: [OpenSAML] RE: Deploying OopenSAML2.2 in WL 10.1, Chad La Joie, 09/05/2009
- RE: [OpenSAML] RE: Deploying OopenSAML2.2 in WL 10.1, ravi . balasubramanian, 09/08/2009
- Re: [OpenSAML] RE: Deploying OopenSAML2.2 in WL 10.1, Chad La Joie, 09/08/2009
- RE: [OpenSAML] RE: Deploying OopenSAML2.2 in WL 10.1, ravi . balasubramanian, 09/09/2009
- Re: [OpenSAML] RE: Deploying OopenSAML2.2 in WL 10.1, Chad La Joie, 09/08/2009
- Re: [OpenSAML] OpenSAML query : usage of ValidatorSuite, Geetika Srivastava, 09/07/2009
- RE: [OpenSAML] OpenSAML query : usage of ValidatorSuite, Scott Cantor, 09/07/2009
- Re: [OpenSAML] OpenSAML query : usage of ValidatorSuite, Deena Gurajala, 09/07/2009
- Re: [OpenSAML] OpenSAML query : usage of ValidatorSuite, Geetika Srivastava, 09/16/2009
- RE: [OpenSAML] RE: Deploying OopenSAML2.2 in WL 10.1, Bryn Ryans, 09/04/2009
Archive powered by MHonArc 2.6.16.