⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 java 的关于web serive教程
💻
字号:
This is a simple example of generating an Enveloped XMLSignature using the JSR 105 API. The resulting signature will looklike (key and signature values will be different):<Envelope xmlns="urn:envelope"> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">   <SignedInfo>     <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>       <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>       <Reference URI="">         <Transforms>           <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>	 </Transforms>	 <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>	 <DigestValue>K8M/lPbKnuMDsO0Uzuj75lQtzQI=<DigestValue>       </Reference>     </SignedInfo>     <SignatureValue> 	DpEylhQoiUKBoKWmYfajXO7LZxiDYgVtUtCNyTgwZgoChzorA2nhkQ==     </SignatureValue>     <KeyInfo>       <KeyValue>	 <DSAKeyValue>	  <P>	    rFto8uPQM6y34FLPmDh40BLJ1rVrC8VeRquuhPZ6jYNFkQuwxnu/wCvIAMhukPBL	    FET8bJf/b2ef+oqxZajEb+88zlZoyG8g/wMfDBHTxz+CnowLahnCCTYBp5kt7G8q	    UobJuvjylwj1st7V9Lsu03iXMXtbiriUjFa5gURasN8=	  </P>	  <Q>	    kEjAFpCe4lcUOdwphpzf+tBaUds=	  </Q>	  <G>	    oe14R2OtyKx+s+60O5BRNMOYpIg2TU/f15N3bsDErKOWtKXeNK9FS7dWStreDxo2	    SSgOonqAd4FuJ/4uva7GgNL4ULIqY7E+mW5iwJ7n/WTELh98mEocsLXkNh24HcH4	    BZfSCTruuzmCyjdV1KSqX/Eux04HfCWYmdxN3SQ/qqw=	  </G>	  <Y>	    pA5NnZvcd574WRXuOA7ZfC/7Lqt4cB0MRLWtHubtJoVOao9ib5ry4rTk0r6ddnOv	    AIGKktutzK3ymvKleS3DOrwZQgJ+/BDWDW8kO9R66o6rdjiSobBi/0c2V1+dkqOg	    jFmKz395mvCOZGhC7fqAVhHat2EjGPMfgSZyABa7+1k=          </Y>        </DSAKeyValue>      </KeyValue>    </KeyInfo>  </Signature></Envelope>Also, the signature above is formatted with indents and line breaks for readability.Command Line Usage:  To compile and run this sample, execute the following command:  $ export JWSDP_HOME=<pathname of JWSDP>  $ $JWSDP_HOME/apache-ant/bin/ant   This will generate an enveloped signature of the document in envelope.xml   and store it in the file envelopedSignature.xml in the current working   directory.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -