|
Java example source code file (sign-spec.xml)
The sign-spec.xml Java example source code<?xml version="1.0" encoding="UTF-8"?> <Document> <ToBeSigned> <!-- comment --> <Data /> <NotToBeSigned> <ReallyToBeSigned> <!-- comment --> <Data /> </ReallyToBeSigned> </NotToBeSigned> </ToBeSigned> <ToBeSigned> <Data /> <NotToBeSigned> <Data /> </NotToBeSigned> </ToBeSigned> <dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"> <dsig:SignedInfo> <dsig:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> <dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1" /> <dsig:Reference URI=""> <dsig:Transforms> <dsig:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"> <XPath xmlns="http://www.w3.org/2002/06/xmldsig-filter2" Filter="intersect"> //ToBeSigned <XPath xmlns="http://www.w3.org/2002/06/xmldsig-filter2" Filter="subtract"> //NotToBeSigned <XPath xmlns="http://www.w3.org/2002/06/xmldsig-filter2" Filter="union"> //ReallyToBeSigned </dsig:Transform> </dsig:Transforms> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> <dsig:DigestValue>p6/HaYIdxbEdYX8/8zNfjED4H5Y= </dsig:Reference> <dsig:Reference URI="#signature-value"> <dsig:Transforms> <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /> <dsig:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"> <XPath xmlns="http://www.w3.org/2002/06/xmldsig-filter2" Filter="union"> / </dsig:Transform> </dsig:Transforms> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> <dsig:DigestValue>2jmj7l5rSw0yVb/vlWAYkK/YBwk= </dsig:Reference> </dsig:SignedInfo> <dsig:SignatureValue Id="signature-value"> Ft7PdmEYSC8GwxffIa4xiobr1iEaUf3LGNfPLiQnJBJI/1Cp5WiEiQ== </dsig:SignatureValue> <dsig:KeyInfo> <dsig:KeyValue> <dsig:DSAKeyValue> <dsig:P> 3eOeAvqnEyFpW+uTSgrdj7YLjaTkpyHecKFIoLu8QZNkGTQI1ciITBH0lqfIkdCH Si8fiUC3DTq3J9FsJef4YVtDF7JpUvHTOQqtq7Zgx6KC8Wxkz6rQCxOr7F0ApOYi 89zLRoe4MkDGe6ux0+WtyOTQoVIGNTDDUFXrUQNbLrE= </dsig:P> <dsig:Q>hDLcFK0GO/Hz1arxOOvsgM/VLyU= <dsig:G> nnx7hbdWozGbtnFgnbFnopfRl7XRacpkPJRGf5P2IUgVspEUSUoN6i1fDBfBg43z Kt7dlEaQL7b5+JTZt3MhZNPosxsgxVuT7Ts/g5k7EnpdYv0a5hw5Bw29fjbGHfgM 8d2rhd2Ui0xHbk0D451nhLxVWulviOSPhzKKvXrbySA= </dsig:G> <dsig:Y> cfYpihpAQeepbNFS4MAbQRhdXpDi5wLrwxE5hIvoYqo1L8BQVu8fY1TFAPtoae1i Bg/GIJyP3iLfyuBJaDvJJLP30wBH9i/s5J3656PevpOVdTfi777Fi9Gj6y/ib2Vv +OZfJkkp4L50+p5TUhPmQLJtREsgtl+tnIOyJT++G9U= </dsig:Y> </dsig:DSAKeyValue> </dsig:KeyValue> <dsig:X509Data> <dsig:X509SubjectName> CN=Merlin Hughes,OU=X/Secure,O=Baltimore Technologies Ltd.,ST=Dublin,C=IE </dsig:X509SubjectName> <dsig:X509IssuerSerial> <dsig:X509IssuerName> CN=Transient CA,OU=X/Secure,O=Baltimore Technologies Ltd.,ST=Dublin,C=IE </dsig:X509IssuerName> <dsig:X509SerialNumber>1017788370348 </dsig:X509IssuerSerial> <dsig:X509Certificate> MIIDUDCCAxCgAwIBAgIGAOz46g2sMAkGByqGSM44BAMwbjELMAkGA1UEBhMCSUUx DzANBgNVBAgTBkR1YmxpbjEkMCIGA1UEChMbQmFsdGltb3JlIFRlY2hub2xvZ2ll cyBMdGQuMREwDwYDVQQLEwhYL1NlY3Vy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dsig:X509Certificate> </dsig:X509Data> </dsig:KeyInfo> </dsig:Signature> </Document> Other Java examples (source code examples)Here is a short list of links related to this Java sign-spec.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.