The SAML XML.org web site is not longer accepting new posts. Information on this page is preserved for legacy purposes only. For current information on SAML, please see the OASIS Security Services Technical Committee Wiki.

CALCULATING DIGEST OF AN AUTHENTICATION STATEMENT

Hi there  
 I'm trying to calculate the Digest value of a SAML Authentication
STatement whith the SHA-1 algorithm. Let us suppose that we are dealing
with a string representing the following node:

<saml:AuthenticationStatement>
    <saml:Subject>
        <saml:NameIdentifier>JLUKE</saml:NameIdentifier>
    </saml:Subject>
</saml:AuthenticationStatement>

When I try to calculate SHA-1 with the function  b64_sha1(str2Digest)  what
exactly should the string str2Digest contain? I mean it should be equal to
"<saml:AuthenticationStatement><saml:Subject><saml:NameIdentifier>JLUKE<
/saml:NameIdentifier></saml:Subject></saml:AuthenticationStatement>"
or only "JLUKE" or ....what else?

Thank you in advance for help.
XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I