You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by co...@apache.org on 2009/04/20 15:56:38 UTC
svn commit: r766696 [29/36] - in /webservices/wss4j/site: ./ apidocs/
apidocs/org/apache/ws/axis/security/
apidocs/org/apache/ws/axis/security/class-use/
apidocs/org/apache/ws/axis/security/handler/
apidocs/org/apache/ws/axis/security/handler/class-use...
Modified: webservices/wss4j/site/xref/org/apache/ws/security/message/token/package-frame.html
URL: http://svn.apache.org/viewvc/webservices/wss4j/site/xref/org/apache/ws/security/message/token/package-frame.html?rev=766696&r1=766695&r2=766696&view=diff
==============================================================================
--- webservices/wss4j/site/xref/org/apache/ws/security/message/token/package-frame.html (original)
+++ webservices/wss4j/site/xref/org/apache/ws/security/message/token/package-frame.html Mon Apr 20 13:56:25 2009
@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>WSS4J 1.5.6 Reference Package org.apache.ws.security.message.token</title>
+ <title>WSS4J 1.5.7 Reference Package org.apache.ws.security.message.token</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
</head>
<body>
Modified: webservices/wss4j/site/xref/org/apache/ws/security/message/token/package-summary.html
URL: http://svn.apache.org/viewvc/webservices/wss4j/site/xref/org/apache/ws/security/message/token/package-summary.html?rev=766696&r1=766695&r2=766696&view=diff
==============================================================================
--- webservices/wss4j/site/xref/org/apache/ws/security/message/token/package-summary.html (original)
+++ webservices/wss4j/site/xref/org/apache/ws/security/message/token/package-summary.html Mon Apr 20 13:56:25 2009
@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>WSS4J 1.5.6 Reference Package org.apache.ws.security.message.token</title>
+ <title>WSS4J 1.5.7 Reference Package org.apache.ws.security.message.token</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
</head>
<body>
Modified: webservices/wss4j/site/xref/org/apache/ws/security/package-frame.html
URL: http://svn.apache.org/viewvc/webservices/wss4j/site/xref/org/apache/ws/security/package-frame.html?rev=766696&r1=766695&r2=766696&view=diff
==============================================================================
--- webservices/wss4j/site/xref/org/apache/ws/security/package-frame.html (original)
+++ webservices/wss4j/site/xref/org/apache/ws/security/package-frame.html Mon Apr 20 13:56:25 2009
@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>WSS4J 1.5.6 Reference Package org.apache.ws.security</title>
+ <title>WSS4J 1.5.7 Reference Package org.apache.ws.security</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
</head>
<body>
@@ -69,6 +69,9 @@
<li>
<a href="WSUsernameTokenPrincipal.html" target="classFrame">WSUsernameTokenPrincipal</a>
</li>
+ <li>
+ <a href="WsuIdAllocator.html" target="classFrame">WsuIdAllocator</a>
+ </li>
</ul>
</body>
Modified: webservices/wss4j/site/xref/org/apache/ws/security/package-summary.html
URL: http://svn.apache.org/viewvc/webservices/wss4j/site/xref/org/apache/ws/security/package-summary.html?rev=766696&r1=766695&r2=766696&view=diff
==============================================================================
--- webservices/wss4j/site/xref/org/apache/ws/security/package-summary.html (original)
+++ webservices/wss4j/site/xref/org/apache/ws/security/package-summary.html Mon Apr 20 13:56:25 2009
@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <title>WSS4J 1.5.6 Reference Package org.apache.ws.security</title>
+ <title>WSS4J 1.5.7 Reference Package org.apache.ws.security</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
</head>
<body>
@@ -125,6 +125,11 @@
<a href="WSUsernameTokenPrincipal.html" target="classFrame">WSUsernameTokenPrincipal</a>
</td>
</tr>
+ <tr>
+ <td>
+ <a href="WsuIdAllocator.html" target="classFrame">WsuIdAllocator</a>
+ </td>
+ </tr>
</tbody>
</table>
Modified: webservices/wss4j/site/xref/org/apache/ws/security/processor/EncryptedDataProcessor.html
URL: http://svn.apache.org/viewvc/webservices/wss4j/site/xref/org/apache/ws/security/processor/EncryptedDataProcessor.html?rev=766696&r1=766695&r2=766696&view=diff
==============================================================================
--- webservices/wss4j/site/xref/org/apache/ws/security/processor/EncryptedDataProcessor.html (original)
+++ webservices/wss4j/site/xref/org/apache/ws/security/processor/EncryptedDataProcessor.html Mon Apr 20 13:56:25 2009
@@ -51,7 +51,7 @@
<a name="41" href="#41">41</a> <em class="jxr_javadoccomment"> * <code>xenc:ReferenceList</code>.</em>
<a name="42" href="#42">42</a> <em class="jxr_javadoccomment"> */</em>
<a name="43" href="#43">43</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/ws/security/processor/EncryptedDataProcessor.html">EncryptedDataProcessor</a> implements <a href="../../../../../org/apache/ws/security/processor/Processor.html">Processor</a> {
-<a name="44" href="#44">44</a>
+<a name="44" href="#44">44</a>
<a name="45" href="#45">45</a> <strong class="jxr_keyword">private</strong> byte[] symmKey;
<a name="46" href="#46">46</a>
<a name="47" href="#47">47</a> <strong class="jxr_keyword">public</strong> String getId() {
@@ -72,64 +72,63 @@
<a name="62" href="#62">62</a> NodeList children = kiElem.getChildNodes();
<a name="63" href="#63">63</a> <strong class="jxr_keyword">int</strong> len = children.getLength();
<a name="64" href="#64">64</a>
-<a name="65" href="#65">65</a> <strong class="jxr_keyword">for</strong>(<strong class="jxr_keyword">int</strong> i = 0; i < len; i++) {
+<a name="65" href="#65">65</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < len; i++) {
<a name="66" href="#66">66</a> Node child = children.item(i);
<a name="67" href="#67">67</a> <strong class="jxr_keyword">if</strong> (child.getNodeType() != Node.ELEMENT_NODE) {
<a name="68" href="#68">68</a> <strong class="jxr_keyword">continue</strong>;
<a name="69" href="#69">69</a> }
<a name="70" href="#70">70</a> QName el = <strong class="jxr_keyword">new</strong> QName(child.getNamespaceURI(), child.getLocalName());
-<a name="71" href="#71">71</a> <strong class="jxr_keyword">if</strong>(el.equals(WSSecurityEngine.ENCRYPTED_KEY)) {
+<a name="71" href="#71">71</a> <strong class="jxr_keyword">if</strong> (el.equals(WSSecurityEngine.ENCRYPTED_KEY)) {
<a name="72" href="#72">72</a> <a href="../../../../../org/apache/ws/security/processor/EncryptedKeyProcessor.html">EncryptedKeyProcessor</a> encrKeyProc = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/security/processor/EncryptedKeyProcessor.html">EncryptedKeyProcessor</a>();
<a name="73" href="#73">73</a> encrKeyProc.handleToken(
<a name="74" href="#74">74</a> (Element)child, crypto, decCrypto, cb, wsDocInfo, returnResults, config
<a name="75" href="#75">75</a> );
-<a name="76" href="#76">76</a> <strong class="jxr_keyword">this</strong>.symmKey = encrKeyProc.getDecryptedBytes();
+<a name="76" href="#76">76</a> symmKey = encrKeyProc.getDecryptedBytes();
<a name="77" href="#77">77</a> <strong class="jxr_keyword">break</strong>;
<a name="78" href="#78">78</a> }
<a name="79" href="#79">79</a> }
-<a name="80" href="#80">80</a>
-<a name="81" href="#81">81</a> String encAlgo = X509Util.getEncAlgo(elem);
-<a name="82" href="#82">82</a> SecretKey key = WSSecurityUtil.prepareSecretKey(encAlgo, <strong class="jxr_keyword">this</strong>.symmKey);
-<a name="83" href="#83">83</a>
-<a name="84" href="#84">84</a> <em class="jxr_comment">// initialize Cipher ....</em>
-<a name="85" href="#85">85</a> XMLCipher xmlCipher = <strong class="jxr_keyword">null</strong>;
-<a name="86" href="#86">86</a> <strong class="jxr_keyword">try</strong> {
-<a name="87" href="#87">87</a> xmlCipher = XMLCipher.getInstance(encAlgo);
-<a name="88" href="#88">88</a> xmlCipher.init(XMLCipher.DECRYPT_MODE, key);
-<a name="89" href="#89">89</a> } <strong class="jxr_keyword">catch</strong> (XMLEncryptionException e1) {
-<a name="90" href="#90">90</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/security/WSSecurityException.html">WSSecurityException</a>(
-<a name="91" href="#91">91</a> WSSecurityException.UNSUPPORTED_ALGORITHM, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, e1
-<a name="92" href="#92">92</a> );
-<a name="93" href="#93">93</a> }
-<a name="94" href="#94">94</a>
-<a name="95" href="#95">95</a> Node previousSibling = elem.getPreviousSibling();
-<a name="96" href="#96">96</a> Node parent = elem.getParentNode();
-<a name="97" href="#97">97</a> <strong class="jxr_keyword">try</strong> {
-<a name="98" href="#98">98</a> xmlCipher.doFinal(elem.getOwnerDocument(), elem, false);
-<a name="99" href="#99">99</a> } <strong class="jxr_keyword">catch</strong> (Exception e) {
-<a name="100" href="#100">100</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/security/WSSecurityException.html">WSSecurityException</a>(
-<a name="101" href="#101">101</a> WSSecurityException.FAILED_CHECK, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, e
-<a name="102" href="#102">102</a> );
-<a name="103" href="#103">103</a> }
-<a name="104" href="#104">104</a>
-<a name="105" href="#105">105</a> <em class="jxr_comment">// Get hold of the plain text element</em>
-<a name="106" href="#106">106</a> Element decryptedElem;
-<a name="107" href="#107">107</a> <strong class="jxr_keyword">if</strong> (previousSibling == <strong class="jxr_keyword">null</strong>) {
-<a name="108" href="#108">108</a> decryptedElem = (Element)parent.getFirstChild();
-<a name="109" href="#109">109</a> } <strong class="jxr_keyword">else</strong> {
-<a name="110" href="#110">110</a> decryptedElem = (Element)previousSibling.getNextSibling();
-<a name="111" href="#111">111</a> }
-<a name="112" href="#112">112</a> QName el = <strong class="jxr_keyword">new</strong> QName(decryptedElem.getNamespaceURI(), decryptedElem.getLocalName());
-<a name="113" href="#113">113</a> <strong class="jxr_keyword">if</strong> (config != <strong class="jxr_keyword">null</strong>) {
-<a name="114" href="#114">114</a> <a href="../../../../../org/apache/ws/security/processor/Processor.html">Processor</a> proc = config.getProcessor(el);
-<a name="115" href="#115">115</a> proc.handleToken(
-<a name="116" href="#116">116</a> decryptedElem, crypto, decCrypto, cb, wsDocInfo, returnResults, config
-<a name="117" href="#117">117</a> );
-<a name="118" href="#118">118</a> wsDocInfo.setProcessor(proc);
-<a name="119" href="#119">119</a> }
-<a name="120" href="#120">120</a> }
-<a name="121" href="#121">121</a>
-<a name="122" href="#122">122</a> }
+<a name="80" href="#80">80</a> String encAlgo = X509Util.getEncAlgo(elem);
+<a name="81" href="#81">81</a> SecretKey key = WSSecurityUtil.prepareSecretKey(encAlgo, symmKey);
+<a name="82" href="#82">82</a>
+<a name="83" href="#83">83</a> <em class="jxr_comment">// initialize Cipher ....</em>
+<a name="84" href="#84">84</a> XMLCipher xmlCipher = <strong class="jxr_keyword">null</strong>;
+<a name="85" href="#85">85</a> <strong class="jxr_keyword">try</strong> {
+<a name="86" href="#86">86</a> xmlCipher = XMLCipher.getInstance(encAlgo);
+<a name="87" href="#87">87</a> xmlCipher.init(XMLCipher.DECRYPT_MODE, key);
+<a name="88" href="#88">88</a> } <strong class="jxr_keyword">catch</strong> (XMLEncryptionException e1) {
+<a name="89" href="#89">89</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/security/WSSecurityException.html">WSSecurityException</a>(
+<a name="90" href="#90">90</a> WSSecurityException.UNSUPPORTED_ALGORITHM, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, e1
+<a name="91" href="#91">91</a> );
+<a name="92" href="#92">92</a> }
+<a name="93" href="#93">93</a>
+<a name="94" href="#94">94</a> Node previousSibling = elem.getPreviousSibling();
+<a name="95" href="#95">95</a> Node parent = elem.getParentNode();
+<a name="96" href="#96">96</a> <strong class="jxr_keyword">try</strong> {
+<a name="97" href="#97">97</a> xmlCipher.doFinal(elem.getOwnerDocument(), elem, false);
+<a name="98" href="#98">98</a> } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a name="99" href="#99">99</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/ws/security/WSSecurityException.html">WSSecurityException</a>(
+<a name="100" href="#100">100</a> WSSecurityException.FAILED_CHECK, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, e
+<a name="101" href="#101">101</a> );
+<a name="102" href="#102">102</a> }
+<a name="103" href="#103">103</a>
+<a name="104" href="#104">104</a> <strong class="jxr_keyword">if</strong> (config != <strong class="jxr_keyword">null</strong>) {
+<a name="105" href="#105">105</a> <em class="jxr_comment">// Get hold of the plain text element</em>
+<a name="106" href="#106">106</a> Element decryptedElem;
+<a name="107" href="#107">107</a> <strong class="jxr_keyword">if</strong> (previousSibling == <strong class="jxr_keyword">null</strong>) {
+<a name="108" href="#108">108</a> decryptedElem = (Element)parent.getFirstChild();
+<a name="109" href="#109">109</a> } <strong class="jxr_keyword">else</strong> {
+<a name="110" href="#110">110</a> decryptedElem = (Element)previousSibling.getNextSibling();
+<a name="111" href="#111">111</a> }
+<a name="112" href="#112">112</a> QName el = <strong class="jxr_keyword">new</strong> QName(decryptedElem.getNamespaceURI(), decryptedElem.getLocalName());
+<a name="113" href="#113">113</a> <a href="../../../../../org/apache/ws/security/processor/Processor.html">Processor</a> proc = config.getProcessor(el);
+<a name="114" href="#114">114</a> proc.handleToken(
+<a name="115" href="#115">115</a> decryptedElem, crypto, decCrypto, cb, wsDocInfo, returnResults, config
+<a name="116" href="#116">116</a> );
+<a name="117" href="#117">117</a> wsDocInfo.setProcessor(proc);
+<a name="118" href="#118">118</a> }
+<a name="119" href="#119">119</a> }
+<a name="120" href="#120">120</a>
+<a name="121" href="#121">121</a> }
</pre>
<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org