Validate that a string is in X509SubjectName format.
Cantor, Scott
cantor.2 at osu.edu
Fri Jul 26 19:53:10 EDT 2013
On 7/26/13 1:04 PM, "Weaver, Matthew (CGI Federal)"
<Matthew.Weaver at cgifederal.com> wrote:
>
>
>Now I am trying to add some validation of various message parts when I
>receive messages from various web service clients. One of the validations
>that I am looking to do is to check if the NameID/@value contains valid
>X509SubjectNames when the NameID/@Format is
>³urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName². In the
>future I would like to validate any given NameID/@value against the
>NameID/@Format, but I am focused on X509SubjectName for now.
>
>Does opensaml provide this type of validation functionality?
No, and as another person asked recently, the general mechanism for
putting in validation code for things like that isn't staying in V3, so
the answer is pretty much that you're on your own to do anything like that.
If you're specifically asking about how you might do things with DNs in
Java, it has code built-in that I believe does basic DN processing sorts
of things. We use it in the cert processing code, I think. Or we're using
some library to do it, but I know there are pieces of code parsing DNs.
-- Scott
More information about the dev
mailing list