Enveloped Signature

         1  
                             <?xml                  
      
version="1.0" encoding="UTF-8"
                     ?>         
      
  
        2  
      
<env:Envelope
  
        3   
      
xmlns:env=
      
"http://schemas.xmlsoap.org/soap/envelope/"
  
        4   
      
xmlns:enc=
      
"http://schemas.xmlsoap.org/soap/encoding/"
  
        5   
      
xmlns:ns0=
      
"http://xmlsoap.org/Ping"
  
        6   
      
xmlns:xsd=
      
"http://www.w3.org/2001/XMLSchema"
  
        7   
      
xmlns:xsi=
      
"http://www.w3.org/2001/XMLSchema-instance"
      
>
  
        8     
      
<env:Header>
  
        9        
      
<wsse:Security
  
       10         
      
xmlns:wsse=
      
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
  
       11         
      
env:mustUnderstand=
      
"1"
      
>
  
       12           
      
<wsu:Timestamp
  
       13            
      
xmlns:wsu=
      
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
      
>
  
       14              
      
<wsu:Created>2006-01-02T01:09:17Z
      
</wsu:Created>
  
       15 
  
       16              
      
<wsu:Expires>2006-01-02T01:14:17Z
      
</wsu:Expires>
  
       17           
      
</wsu:Timestamp>
  
       18 
  
       19           
      
<Assertion
  
       20            
      
xmlns=
      
"urn:oasis:names:tc:SAML:1.0:assertion"
  
       21            
      
xmlns:ns2=
      
"http://www.w3.org/2000/09/xmldsig#"
  
       22            
      
xmlns:xs=
      
"http://www.w3.org/2001/XMLSchema"
  
       23            
      
AssertionID=
      
"1136164155689"
  
       24            
      
IssueInstant=
      
"2006-01-02T06:39:15.690+05:30"
  
       25            
      
Issuer=
      
"CN=Assertion Issuer,OU=AI,O=Assertion Issuer,L=Waltham,ST=MA,C=US"
  
       26            
      
MajorVersion=
      
"1"
  
       27            
      
MinorVersion=
      
"1"
      
>
  
       28              
      
<Conditions
  
       29               
      
NotBefore=
      
"2006-01-02T05:39:15.689+05:30"
  
       30               
      
NotOnOrAfter=
      
"2006-01-02T07:39:15.689+05:30"  
      
/>
  
       31 
  
       32              
      
<AttributeStatement>
  
       33                 
      
<Subject>
  
       34                    
      
<NameIdentifier
  
       35                     
      
Format=
      
"urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName"
      
>CN=SAML User,OU=SU,O=SAML User,L=Los Angeles,ST=CA,C=US
      
</NameIdentifier>
  
       36 
  
       37                    
      
<SubjectConfirmation>
  
       38                       
      
<ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:holder-of-key
      
</ConfirmationMethod>
  
       39 
  
       40                       
      
<ns2:KeyInfo>
  
       41                          
      
<ns2:KeyValue>
  
       42                             
      
<ns2:RSAKeyValue>
  
       43                                
      
<ns2:Modulus>7hgvqe8TtNIWdEsP5cyJjnhaKgnI3moVCo5XtgXEuW45YnxSQ4SoSrW8Xlx9W8=
      
</ns2:Modulus>
  
       44 
  
       45                                
      
<ns2:Exponent>AQAB
      
</ns2:Exponent>
  
       46                             
      
</ns2:RSAKeyValue>
  
       47                          
      
</ns2:KeyValue>
  
       48                       
      
</ns2:KeyInfo>
  
       49                    
      
</SubjectConfirmation>
  
       50                 
      
</Subject>
  
       51 
  
       52                 
      
<Attribute
  
       53                  
      
AttributeName=
      
"attribute1"
  
       54                  
      
AttributeNamespace=
      
"urn:com:sun:xml:wss:attribute"
      
>
  
       55                    
      
<AttributeValue
  
       56                     
      
xsi:type=
      
"xs:string"
      
>ATTRIBUTE1
      
</AttributeValue>
  
       57                 
      
</Attribute>
  
       58              
      
</AttributeStatement>
  
       59 
  
       60              
      
<ds:Signature
  
       61               
      
xmlns:ds=
      
"http://www.w3.org/2000/09/xmldsig#"
      
>
  
       62                 
      
<ds:SignedInfo>
  
       63                    
      
<ds:CanonicalizationMethod
  
       64                     
      
Algorithm=
      
"http://www.w3.org/2001/10/xml-exc-c14n#"  
      
/>
  
       65 
  
       66                    
      
<ds:SignatureMethod
  
       67                     
      
Algorithm=
      
"http://www.w3.org/2000/09/xmldsig#rsa-sha1"  
      
/>
  
       68 
  
       69                    
      
<ds:Reference
  
       70                     
      
URI=
      
"#1136164155689"
      
>
  
       71                       
      
<ds:Transforms>
  
       72                          
      
<ds:Transform
  
       73                           
      
Algorithm=
      
"http://www.w3.org/2000/09/xmldsig#enveloped-signature"  
      
/>
  
       74 
  
       75                          
      
<ds:Transform
  
       76                           
      
Algorithm=
      
"http://www.w3.org/2001/10/xml-exc-c14n#"  
      
/>
  
       77                       
      
</ds:Transforms>
  
       78 
  
       79                       
      
<ds:DigestMethod
  
       80                        
      
Algorithm=
      
"http://www.w3.org/2000/09/xmldsig#sha1"  
      
/>
  
       81 
  
       82                       
      
<ds:DigestValue>hJYHb6BXVpzNsfm11M6rmjf/Aso=
      
</ds:DigestValue>
  
       83                    
      
</ds:Reference>
  
       84                 
      
</ds:SignedInfo>
  
       85 
  
       86                 
      
<ds:SignatureValue>BFOyNPSC2oBqFaxH1wKi0lUyBeppb4fvZQ3GZW sfXJEsbWGpfwTR11yPo=
      
</ds:SignatureValue>
  
       87 
  
       88                 
      
<ds:KeyInfo>
  
       89                    
      
<ds:KeyValue>
  
       90                       
      
<ds:RSAKeyValue>
  
       91                          
      
<ds:Modulus>7hgvqe8omjlEOrqW1jx2a538vdVsSulYJJZ Mj5TvGIwYgLdq+tQ9W8=
      
</ds:Modulus>
  
       92 
  
       93                          
      
<ds:Exponent>AQAB
      
</ds:Exponent>
  
       94                       
      
</ds:RSAKeyValue>
  
       95                    
      
</ds:KeyValue>
  
       96                 
      
</ds:KeyInfo>
  
       97              
      
</ds:Signature>
  
       98           
      
</Assertion>
  
       99 
        100           
      
<ds:Signature
        101            
      
xmlns:ds=
      
"http://www.w3.org/2000/09/xmldsig#"
      
>
        102              
      
<ds:SignedInfo>
        103                 
      
<ds:CanonicalizationMethod
        104                  
      
Algorithm=
      
"http://www.w3.org/2001/10/xml-exc-c14n#"
      
>
        105                    
      
<InclusiveNamespaces
        106                     
      
xmlns=
      
"http://www.w3.org/2001/10/xml-exc-c14n#"
        107                     
      
PrefixList=
      
"wsse enc env ns0 xsd xsi"  
      
/>
        108                 
      
</ds:CanonicalizationMethod>
        109 
        110                 
      
<ds:SignatureMethod
        111                  
      
Algorithm=
      
"http://www.w3.org/2000/09/xmldsig#rsa-sha1"  
      
/>
        112 
        113                 
      
<ds:Reference
        114                  
      
URI=
      
"#XWSSGID-1136164157291-30853404"
      
>
        115                    
      
<ds:DigestMethod
        116                     
      
Algorithm=
      
"http://www.w3.org/2000/09/xmldsig#sha1"  
      
/>
        117 
        118                    
      
<ds:DigestValue>4XNv2cOifxOOZ7XbVLvS/Ih83xI=
      
</ds:DigestValue>
        119                 
      
</ds:Reference>
        120              
      
</ds:SignedInfo>
        121 
        122              
      
<ds:SignatureValue>Pv6iBFu/V/c46ulKEvT2+3pNRdsd9nNSVAFj+IF1mQqAD3gsbSLAP+LYcrQ=
      
</ds:SignatureValue>
        123 
        124              
      
<ds:KeyInfo>
        125                 
      
<wsse:SecurityTokenReference
        126                  
      
xmlns:wsu=
      
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
        127                  
      
wsu:Id=
      
"XWSSGID-11361641572671798819049"
      
>
        128                    
      
<wsse:KeyIdentifier
        129                     
      
ValueType=
      
"http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID"
      
>1136164155689
      
</wsse:KeyIdentifier>
        130                 
      
</wsse:SecurityTokenReference>
        131              
      
</ds:KeyInfo>
        132           
      
</ds:Signature>
        133        
      
</wsse:Security>
        134     
      
</env:Header>
        135 
        136     
      
<env:Body
        137      
      
xmlns:wsu=
      
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
        138      
      
wsu:Id=
      
"XWSSGID-1136164157291-30853404"
      
>
        139        
      
<ns0:Ping>
        140           
      
<ns0:ticket>SUNW
      
</ns0:ticket>
        141 
        142           
      
<ns0:text>Hello !
      
</ns0:text>
        143        
      
</ns0:Ping>
        144     
      
</env:Body>
        145  
      
</env:Envelope>
        146 
        147