Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/CryptoFactory.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/CryptoFactory.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/CryptoFactory.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/CryptoFactory.html Thu Nov 14 16:06:47 2024 @@ -300,6 +300,6 @@ <a class="jxr_linenumber" name="L292" href="#L292">292</a> </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html>
Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/CryptoType.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/CryptoType.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/CryptoType.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/CryptoType.html Thu Nov 14 16:06:47 2024 @@ -180,6 +180,6 @@ <a class="jxr_linenumber" name="L172" href="#L172">172</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/DERDecoder.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/DERDecoder.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/DERDecoder.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/DERDecoder.html Thu Nov 14 16:06:47 2024 @@ -53,182 +53,184 @@ <a class="jxr_linenumber" name="L45" href="#L45">45</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> byte TYPE_OCTET_STRING = 0x04; <a class="jxr_linenumber" name="L46" href="#L46">46</a> <em class="jxr_javadoccomment">/** DER type identifier for a sequence value */</em> <a class="jxr_linenumber" name="L47" href="#L47">47</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> byte TYPE_SEQUENCE = 0x30; -<a class="jxr_linenumber" name="L48" href="#L48">48</a> -<a class="jxr_linenumber" name="L49" href="#L49">49</a> <strong class="jxr_keyword">private</strong> byte[] arr; -<a class="jxr_linenumber" name="L50" href="#L50">50</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> pos; -<a class="jxr_linenumber" name="L51" href="#L51">51</a> -<a class="jxr_linenumber" name="L52" href="#L52">52</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L53" href="#L53">53</a> <em class="jxr_javadoccomment"> * Construct a DERDecoder for the given byte array.</em> -<a class="jxr_linenumber" name="L54" href="#L54">54</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L55" href="#L55">55</a> <em class="jxr_javadoccomment"> * @param derEncoded the DER-encoded array to decode.</em> -<a class="jxr_linenumber" name="L56" href="#L56">56</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException if the given array is null.</em> -<a class="jxr_linenumber" name="L57" href="#L57">57</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L58" href="#L58">58</a> <strong class="jxr_keyword">public</strong> <a name="DERDecoder" href="../../../../../org/apache/wss4j/common/crypto/DERDecoder.html#DERDecoder">DERDecoder</a>(byte[] derEncoded) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { -<a class="jxr_linenumber" name="L59" href="#L59">59</a> <strong class="jxr_keyword">if</strong> (derEncoded == <strong class="jxr_keyword">null</strong>) { -<a class="jxr_linenumber" name="L60" href="#L60">60</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( -<a class="jxr_linenumber" name="L61" href="#L61">61</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, -<a class="jxr_linenumber" name="L62" href="#L62">62</a> <span class="jxr_string">"noSKIHandling"</span>, -<a class="jxr_linenumber" name="L63" href="#L63">63</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER string"</span>} -<a class="jxr_linenumber" name="L64" href="#L64">64</a> ); -<a class="jxr_linenumber" name="L65" href="#L65">65</a> } -<a class="jxr_linenumber" name="L66" href="#L66">66</a> arr = derEncoded; -<a class="jxr_linenumber" name="L67" href="#L67">67</a> reset(); -<a class="jxr_linenumber" name="L68" href="#L68">68</a> } -<a class="jxr_linenumber" name="L69" href="#L69">69</a> -<a class="jxr_linenumber" name="L70" href="#L70">70</a> -<a class="jxr_linenumber" name="L71" href="#L71">71</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L72" href="#L72">72</a> <em class="jxr_javadoccomment"> * Reset the current position to the start of the array.</em> -<a class="jxr_linenumber" name="L73" href="#L73">73</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L74" href="#L74">74</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> reset() { -<a class="jxr_linenumber" name="L75" href="#L75">75</a> pos = 0; -<a class="jxr_linenumber" name="L76" href="#L76">76</a> } -<a class="jxr_linenumber" name="L77" href="#L77">77</a> -<a class="jxr_linenumber" name="L78" href="#L78">78</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L79" href="#L79">79</a> <em class="jxr_javadoccomment"> * Advance the current position by the given number of bytes.</em> -<a class="jxr_linenumber" name="L80" href="#L80">80</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L81" href="#L81">81</a> <em class="jxr_javadoccomment"> * @param length the number of bytes to skip.</em> -<a class="jxr_linenumber" name="L82" href="#L82">82</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException if length is negative.</em> -<a class="jxr_linenumber" name="L83" href="#L83">83</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L84" href="#L84">84</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> skip(<strong class="jxr_keyword">int</strong> length) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { -<a class="jxr_linenumber" name="L85" href="#L85">85</a> <strong class="jxr_keyword">if</strong> (length < 0) { -<a class="jxr_linenumber" name="L86" href="#L86">86</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( -<a class="jxr_linenumber" name="L87" href="#L87">87</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, -<a class="jxr_linenumber" name="L88" href="#L88">88</a> <span class="jxr_string">"noSKIHandling"</span>, -<a class="jxr_linenumber" name="L89" href="#L89">89</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Unsupported DER format"</span>} -<a class="jxr_linenumber" name="L90" href="#L90">90</a> ); -<a class="jxr_linenumber" name="L91" href="#L91">91</a> } -<a class="jxr_linenumber" name="L92" href="#L92">92</a> pos += length; -<a class="jxr_linenumber" name="L93" href="#L93">93</a> } -<a class="jxr_linenumber" name="L94" href="#L94">94</a> -<a class="jxr_linenumber" name="L95" href="#L95">95</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L96" href="#L96">96</a> <em class="jxr_javadoccomment"> * Confirm that the byte at the current position matches the given value.</em> -<a class="jxr_linenumber" name="L97" href="#L97">97</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L98" href="#L98">98</a> <em class="jxr_javadoccomment"> * @param val the expected next byte.</em> -<a class="jxr_linenumber" name="L99" href="#L99">99</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException</em> -<a class="jxr_linenumber" name="L100" href="#L100">100</a> <em class="jxr_javadoccomment"> * if the current position is at the end of the array, or if the</em> -<a class="jxr_linenumber" name="L101" href="#L101">101</a> <em class="jxr_javadoccomment"> * byte at the current position doesn't match the expected value.</em> -<a class="jxr_linenumber" name="L102" href="#L102">102</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L103" href="#L103">103</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> expect(<strong class="jxr_keyword">int</strong> val) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { -<a class="jxr_linenumber" name="L104" href="#L104">104</a> expect((byte)(val & 0xFF)); -<a class="jxr_linenumber" name="L105" href="#L105">105</a> } -<a class="jxr_linenumber" name="L106" href="#L106">106</a> -<a class="jxr_linenumber" name="L107" href="#L107">107</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L108" href="#L108">108</a> <em class="jxr_javadoccomment"> * Confirm that the byte at the current position matches the given value.</em> -<a class="jxr_linenumber" name="L109" href="#L109">109</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L110" href="#L110">110</a> <em class="jxr_javadoccomment"> * @param val the expected next byte.</em> -<a class="jxr_linenumber" name="L111" href="#L111">111</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException</em> -<a class="jxr_linenumber" name="L112" href="#L112">112</a> <em class="jxr_javadoccomment"> * if the current position is at the end of the array, or if the</em> -<a class="jxr_linenumber" name="L113" href="#L113">113</a> <em class="jxr_javadoccomment"> * byte at the current position doesn't match the expected value.</em> -<a class="jxr_linenumber" name="L114" href="#L114">114</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L115" href="#L115">115</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> expect(byte val) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { -<a class="jxr_linenumber" name="L116" href="#L116">116</a> <strong class="jxr_keyword">if</strong> (!test(val)) { -<a class="jxr_linenumber" name="L117" href="#L117">117</a> LOG.debug(<span class="jxr_string">"DER mismatch: expected "</span> + val + <span class="jxr_string">", got "</span> + arr[pos]); -<a class="jxr_linenumber" name="L118" href="#L118">118</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( -<a class="jxr_linenumber" name="L119" href="#L119">119</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, -<a class="jxr_linenumber" name="L120" href="#L120">120</a> <span class="jxr_string">"noSKIHandling"</span>, -<a class="jxr_linenumber" name="L121" href="#L121">121</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER format"</span>} -<a class="jxr_linenumber" name="L122" href="#L122">122</a> ); -<a class="jxr_linenumber" name="L123" href="#L123">123</a> } -<a class="jxr_linenumber" name="L124" href="#L124">124</a> pos++; -<a class="jxr_linenumber" name="L125" href="#L125">125</a> } -<a class="jxr_linenumber" name="L126" href="#L126">126</a> -<a class="jxr_linenumber" name="L127" href="#L127">127</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L128" href="#L128">128</a> <em class="jxr_javadoccomment"> * Test if the byte at the current position matches the given value.</em> -<a class="jxr_linenumber" name="L129" href="#L129">129</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L130" href="#L130">130</a> <em class="jxr_javadoccomment"> * @param val the value to test for a match with the current byte.</em> -<a class="jxr_linenumber" name="L131" href="#L131">131</a> <em class="jxr_javadoccomment"> * @return true if the byte at the current position matches the given value.</em> -<a class="jxr_linenumber" name="L132" href="#L132">132</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException if the current position is at the end of</em> -<a class="jxr_linenumber" name="L133" href="#L133">133</a> <em class="jxr_javadoccomment"> * the array.</em> -<a class="jxr_linenumber" name="L134" href="#L134">134</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L135" href="#L135">135</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> test(byte val) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { <em class="jxr_comment">//NOPMD</em> -<a class="jxr_linenumber" name="L136" href="#L136">136</a> <strong class="jxr_keyword">if</strong> (pos >= arr.length) { -<a class="jxr_linenumber" name="L137" href="#L137">137</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( -<a class="jxr_linenumber" name="L138" href="#L138">138</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, -<a class="jxr_linenumber" name="L139" href="#L139">139</a> <span class="jxr_string">"noSKIHandling"</span>, -<a class="jxr_linenumber" name="L140" href="#L140">140</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER format"</span>} -<a class="jxr_linenumber" name="L141" href="#L141">141</a> ); -<a class="jxr_linenumber" name="L142" href="#L142">142</a> } -<a class="jxr_linenumber" name="L143" href="#L143">143</a> <strong class="jxr_keyword">return</strong> arr[pos] == val; -<a class="jxr_linenumber" name="L144" href="#L144">144</a> } -<a class="jxr_linenumber" name="L145" href="#L145">145</a> -<a class="jxr_linenumber" name="L146" href="#L146">146</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L147" href="#L147">147</a> <em class="jxr_javadoccomment"> * Get the DER length at the current position.</em> -<a class="jxr_linenumber" name="L148" href="#L148">148</a> <em class="jxr_javadoccomment"> * <p></em> -<a class="jxr_linenumber" name="L149" href="#L149">149</a> <em class="jxr_javadoccomment"> * DER length is encoded as</em> -<a class="jxr_linenumber" name="L150" href="#L150">150</a> <em class="jxr_javadoccomment"> * <ul></em> -<a class="jxr_linenumber" name="L151" href="#L151">151</a> <em class="jxr_javadoccomment"> * <li>If the first byte is 0x00 to 0x7F, it describes the actual length.</em> -<a class="jxr_linenumber" name="L152" href="#L152">152</a> <em class="jxr_javadoccomment"> * <li>If the first byte is 0x80 + n with 0<n<0x7F, the actual length is</em> -<a class="jxr_linenumber" name="L153" href="#L153">153</a> <em class="jxr_javadoccomment"> * described in the following 'n' bytes.</em> -<a class="jxr_linenumber" name="L154" href="#L154">154</a> <em class="jxr_javadoccomment"> * <li>The length value 0x80, used only in constructed types, is</em> -<a class="jxr_linenumber" name="L155" href="#L155">155</a> <em class="jxr_javadoccomment"> * defined as "indefinite length".</em> -<a class="jxr_linenumber" name="L156" href="#L156">156</a> <em class="jxr_javadoccomment"> * </ul></em> -<a class="jxr_linenumber" name="L157" href="#L157">157</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L158" href="#L158">158</a> <em class="jxr_javadoccomment"> * @return the length, -1 for indefinite length.</em> -<a class="jxr_linenumber" name="L159" href="#L159">159</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException</em> -<a class="jxr_linenumber" name="L160" href="#L160">160</a> <em class="jxr_javadoccomment"> * if the current position is at the end of the array or there is</em> -<a class="jxr_linenumber" name="L161" href="#L161">161</a> <em class="jxr_javadoccomment"> * an incomplete length specification.</em> -<a class="jxr_linenumber" name="L162" href="#L162">162</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L163" href="#L163">163</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getLength() <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { -<a class="jxr_linenumber" name="L164" href="#L164">164</a> <strong class="jxr_keyword">if</strong> (pos >= arr.length) { -<a class="jxr_linenumber" name="L165" href="#L165">165</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( -<a class="jxr_linenumber" name="L166" href="#L166">166</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, -<a class="jxr_linenumber" name="L167" href="#L167">167</a> <span class="jxr_string">"noSKIHandling"</span>, -<a class="jxr_linenumber" name="L168" href="#L168">168</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER format"</span>} -<a class="jxr_linenumber" name="L169" href="#L169">169</a> ); -<a class="jxr_linenumber" name="L170" href="#L170">170</a> } -<a class="jxr_linenumber" name="L171" href="#L171">171</a> <strong class="jxr_keyword">int</strong> len; -<a class="jxr_linenumber" name="L172" href="#L172">172</a> <strong class="jxr_keyword">if</strong> ((arr[pos] & 0xFF) <= 0x7F) { -<a class="jxr_linenumber" name="L173" href="#L173">173</a> len = arr[pos++]; -<a class="jxr_linenumber" name="L174" href="#L174">174</a> } <strong class="jxr_keyword">else</strong> { -<a class="jxr_linenumber" name="L175" href="#L175">175</a> <strong class="jxr_keyword">int</strong> nbytes = arr[pos++] & 0x7F; -<a class="jxr_linenumber" name="L176" href="#L176">176</a> <strong class="jxr_keyword">if</strong> (pos + nbytes > arr.length) { -<a class="jxr_linenumber" name="L177" href="#L177">177</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( -<a class="jxr_linenumber" name="L178" href="#L178">178</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, -<a class="jxr_linenumber" name="L179" href="#L179">179</a> <span class="jxr_string">"noSKIHandling"</span>, -<a class="jxr_linenumber" name="L180" href="#L180">180</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER format"</span>} -<a class="jxr_linenumber" name="L181" href="#L181">181</a> ); -<a class="jxr_linenumber" name="L182" href="#L182">182</a> } -<a class="jxr_linenumber" name="L183" href="#L183">183</a> byte[] lenBytes = <strong class="jxr_keyword">new</strong> byte[nbytes]; -<a class="jxr_linenumber" name="L184" href="#L184">184</a> System.arraycopy(arr, pos, lenBytes, 0, lenBytes.length); -<a class="jxr_linenumber" name="L185" href="#L185">185</a> len = <strong class="jxr_keyword">new</strong> BigInteger(1, lenBytes).intValue(); -<a class="jxr_linenumber" name="L186" href="#L186">186</a> pos += nbytes; -<a class="jxr_linenumber" name="L187" href="#L187">187</a> } -<a class="jxr_linenumber" name="L188" href="#L188">188</a> <strong class="jxr_keyword">return</strong> len; -<a class="jxr_linenumber" name="L189" href="#L189">189</a> } -<a class="jxr_linenumber" name="L190" href="#L190">190</a> -<a class="jxr_linenumber" name="L191" href="#L191">191</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L192" href="#L192">192</a> <em class="jxr_javadoccomment"> * Return an array of bytes from the current position.</em> -<a class="jxr_linenumber" name="L193" href="#L193">193</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L194" href="#L194">194</a> <em class="jxr_javadoccomment"> * @param length the number of bytes to return.</em> -<a class="jxr_linenumber" name="L195" href="#L195">195</a> <em class="jxr_javadoccomment"> * @return an array of the requested number of bytes from the current</em> -<a class="jxr_linenumber" name="L196" href="#L196">196</a> <em class="jxr_javadoccomment"> * position.</em> -<a class="jxr_linenumber" name="L197" href="#L197">197</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException</em> -<a class="jxr_linenumber" name="L198" href="#L198">198</a> <em class="jxr_javadoccomment"> * if the current position is at the end of the array, or the</em> -<a class="jxr_linenumber" name="L199" href="#L199">199</a> <em class="jxr_javadoccomment"> * length is negative.</em> -<a class="jxr_linenumber" name="L200" href="#L200">200</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L201" href="#L201">201</a> <strong class="jxr_keyword">public</strong> byte[] getBytes(<strong class="jxr_keyword">int</strong> length) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { -<a class="jxr_linenumber" name="L202" href="#L202">202</a> <strong class="jxr_keyword">if</strong> (pos + length > arr.length) { -<a class="jxr_linenumber" name="L203" href="#L203">203</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( -<a class="jxr_linenumber" name="L204" href="#L204">204</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, -<a class="jxr_linenumber" name="L205" href="#L205">205</a> <span class="jxr_string">"noSKIHandling"</span>, -<a class="jxr_linenumber" name="L206" href="#L206">206</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER format"</span>} -<a class="jxr_linenumber" name="L207" href="#L207">207</a> ); -<a class="jxr_linenumber" name="L208" href="#L208">208</a> } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (length < 0) { -<a class="jxr_linenumber" name="L209" href="#L209">209</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( -<a class="jxr_linenumber" name="L210" href="#L210">210</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, -<a class="jxr_linenumber" name="L211" href="#L211">211</a> <span class="jxr_string">"noSKIHandling"</span>, -<a class="jxr_linenumber" name="L212" href="#L212">212</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Unsupported DER format"</span>} -<a class="jxr_linenumber" name="L213" href="#L213">213</a> ); -<a class="jxr_linenumber" name="L214" href="#L214">214</a> } -<a class="jxr_linenumber" name="L215" href="#L215">215</a> byte[] value = <strong class="jxr_keyword">new</strong> byte[length]; -<a class="jxr_linenumber" name="L216" href="#L216">216</a> System.arraycopy(arr, pos, value, 0, length); -<a class="jxr_linenumber" name="L217" href="#L217">217</a> pos += length; -<a class="jxr_linenumber" name="L218" href="#L218">218</a> <strong class="jxr_keyword">return</strong> value; -<a class="jxr_linenumber" name="L219" href="#L219">219</a> } -<a class="jxr_linenumber" name="L220" href="#L220">220</a> -<a class="jxr_linenumber" name="L221" href="#L221">221</a> } +<a class="jxr_linenumber" name="L48" href="#L48">48</a> <em class="jxr_javadoccomment">/** DER type identifier for ASN.1 "OBJECT IDENTIFIER" value. */</em> +<a class="jxr_linenumber" name="L49" href="#L49">49</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> byte TYPE_OBJECT_IDENTIFIER = 0x06; +<a class="jxr_linenumber" name="L50" href="#L50">50</a> +<a class="jxr_linenumber" name="L51" href="#L51">51</a> <strong class="jxr_keyword">private</strong> byte[] arr; +<a class="jxr_linenumber" name="L52" href="#L52">52</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> pos; +<a class="jxr_linenumber" name="L53" href="#L53">53</a> +<a class="jxr_linenumber" name="L54" href="#L54">54</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L55" href="#L55">55</a> <em class="jxr_javadoccomment"> * Construct a DERDecoder for the given byte array.</em> +<a class="jxr_linenumber" name="L56" href="#L56">56</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L57" href="#L57">57</a> <em class="jxr_javadoccomment"> * @param derEncoded the DER-encoded array to decode.</em> +<a class="jxr_linenumber" name="L58" href="#L58">58</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException if the given array is null.</em> +<a class="jxr_linenumber" name="L59" href="#L59">59</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L60" href="#L60">60</a> <strong class="jxr_keyword">public</strong> <a name="DERDecoder" href="../../../../../org/apache/wss4j/common/crypto/DERDecoder.html#DERDecoder">DERDecoder</a>(byte[] derEncoded) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { +<a class="jxr_linenumber" name="L61" href="#L61">61</a> <strong class="jxr_keyword">if</strong> (derEncoded == <strong class="jxr_keyword">null</strong>) { +<a class="jxr_linenumber" name="L62" href="#L62">62</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( +<a class="jxr_linenumber" name="L63" href="#L63">63</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, +<a class="jxr_linenumber" name="L64" href="#L64">64</a> <span class="jxr_string">"noSKIHandling"</span>, +<a class="jxr_linenumber" name="L65" href="#L65">65</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER string"</span>} +<a class="jxr_linenumber" name="L66" href="#L66">66</a> ); +<a class="jxr_linenumber" name="L67" href="#L67">67</a> } +<a class="jxr_linenumber" name="L68" href="#L68">68</a> arr = derEncoded; +<a class="jxr_linenumber" name="L69" href="#L69">69</a> reset(); +<a class="jxr_linenumber" name="L70" href="#L70">70</a> } +<a class="jxr_linenumber" name="L71" href="#L71">71</a> +<a class="jxr_linenumber" name="L72" href="#L72">72</a> +<a class="jxr_linenumber" name="L73" href="#L73">73</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L74" href="#L74">74</a> <em class="jxr_javadoccomment"> * Reset the current position to the start of the array.</em> +<a class="jxr_linenumber" name="L75" href="#L75">75</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L76" href="#L76">76</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> reset() { +<a class="jxr_linenumber" name="L77" href="#L77">77</a> pos = 0; +<a class="jxr_linenumber" name="L78" href="#L78">78</a> } +<a class="jxr_linenumber" name="L79" href="#L79">79</a> +<a class="jxr_linenumber" name="L80" href="#L80">80</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L81" href="#L81">81</a> <em class="jxr_javadoccomment"> * Advance the current position by the given number of bytes.</em> +<a class="jxr_linenumber" name="L82" href="#L82">82</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L83" href="#L83">83</a> <em class="jxr_javadoccomment"> * @param length the number of bytes to skip.</em> +<a class="jxr_linenumber" name="L84" href="#L84">84</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException if length is negative.</em> +<a class="jxr_linenumber" name="L85" href="#L85">85</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L86" href="#L86">86</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> skip(<strong class="jxr_keyword">int</strong> length) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { +<a class="jxr_linenumber" name="L87" href="#L87">87</a> <strong class="jxr_keyword">if</strong> (length < 0) { +<a class="jxr_linenumber" name="L88" href="#L88">88</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( +<a class="jxr_linenumber" name="L89" href="#L89">89</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, +<a class="jxr_linenumber" name="L90" href="#L90">90</a> <span class="jxr_string">"noSKIHandling"</span>, +<a class="jxr_linenumber" name="L91" href="#L91">91</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Unsupported DER format"</span>} +<a class="jxr_linenumber" name="L92" href="#L92">92</a> ); +<a class="jxr_linenumber" name="L93" href="#L93">93</a> } +<a class="jxr_linenumber" name="L94" href="#L94">94</a> pos += length; +<a class="jxr_linenumber" name="L95" href="#L95">95</a> } +<a class="jxr_linenumber" name="L96" href="#L96">96</a> +<a class="jxr_linenumber" name="L97" href="#L97">97</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L98" href="#L98">98</a> <em class="jxr_javadoccomment"> * Confirm that the byte at the current position matches the given value.</em> +<a class="jxr_linenumber" name="L99" href="#L99">99</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L100" href="#L100">100</a> <em class="jxr_javadoccomment"> * @param val the expected next byte.</em> +<a class="jxr_linenumber" name="L101" href="#L101">101</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException</em> +<a class="jxr_linenumber" name="L102" href="#L102">102</a> <em class="jxr_javadoccomment"> * if the current position is at the end of the array, or if the</em> +<a class="jxr_linenumber" name="L103" href="#L103">103</a> <em class="jxr_javadoccomment"> * byte at the current position doesn't match the expected value.</em> +<a class="jxr_linenumber" name="L104" href="#L104">104</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L105" href="#L105">105</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> expect(<strong class="jxr_keyword">int</strong> val) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { +<a class="jxr_linenumber" name="L106" href="#L106">106</a> expect((byte)(val & 0xFF)); +<a class="jxr_linenumber" name="L107" href="#L107">107</a> } +<a class="jxr_linenumber" name="L108" href="#L108">108</a> +<a class="jxr_linenumber" name="L109" href="#L109">109</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L110" href="#L110">110</a> <em class="jxr_javadoccomment"> * Confirm that the byte at the current position matches the given value.</em> +<a class="jxr_linenumber" name="L111" href="#L111">111</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L112" href="#L112">112</a> <em class="jxr_javadoccomment"> * @param val the expected next byte.</em> +<a class="jxr_linenumber" name="L113" href="#L113">113</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException</em> +<a class="jxr_linenumber" name="L114" href="#L114">114</a> <em class="jxr_javadoccomment"> * if the current position is at the end of the array, or if the</em> +<a class="jxr_linenumber" name="L115" href="#L115">115</a> <em class="jxr_javadoccomment"> * byte at the current position doesn't match the expected value.</em> +<a class="jxr_linenumber" name="L116" href="#L116">116</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L117" href="#L117">117</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> expect(byte val) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { +<a class="jxr_linenumber" name="L118" href="#L118">118</a> <strong class="jxr_keyword">if</strong> (!test(val)) { +<a class="jxr_linenumber" name="L119" href="#L119">119</a> LOG.debug(<span class="jxr_string">"DER mismatch: expected "</span> + val + <span class="jxr_string">", got "</span> + arr[pos]); +<a class="jxr_linenumber" name="L120" href="#L120">120</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( +<a class="jxr_linenumber" name="L121" href="#L121">121</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, +<a class="jxr_linenumber" name="L122" href="#L122">122</a> <span class="jxr_string">"noSKIHandling"</span>, +<a class="jxr_linenumber" name="L123" href="#L123">123</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER format"</span>} +<a class="jxr_linenumber" name="L124" href="#L124">124</a> ); +<a class="jxr_linenumber" name="L125" href="#L125">125</a> } +<a class="jxr_linenumber" name="L126" href="#L126">126</a> pos++; +<a class="jxr_linenumber" name="L127" href="#L127">127</a> } +<a class="jxr_linenumber" name="L128" href="#L128">128</a> +<a class="jxr_linenumber" name="L129" href="#L129">129</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L130" href="#L130">130</a> <em class="jxr_javadoccomment"> * Test if the byte at the current position matches the given value.</em> +<a class="jxr_linenumber" name="L131" href="#L131">131</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L132" href="#L132">132</a> <em class="jxr_javadoccomment"> * @param val the value to test for a match with the current byte.</em> +<a class="jxr_linenumber" name="L133" href="#L133">133</a> <em class="jxr_javadoccomment"> * @return true if the byte at the current position matches the given value.</em> +<a class="jxr_linenumber" name="L134" href="#L134">134</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException if the current position is at the end of</em> +<a class="jxr_linenumber" name="L135" href="#L135">135</a> <em class="jxr_javadoccomment"> * the array.</em> +<a class="jxr_linenumber" name="L136" href="#L136">136</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L137" href="#L137">137</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> test(byte val) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { <em class="jxr_comment">//NOPMD</em> +<a class="jxr_linenumber" name="L138" href="#L138">138</a> <strong class="jxr_keyword">if</strong> (pos >= arr.length) { +<a class="jxr_linenumber" name="L139" href="#L139">139</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( +<a class="jxr_linenumber" name="L140" href="#L140">140</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, +<a class="jxr_linenumber" name="L141" href="#L141">141</a> <span class="jxr_string">"noSKIHandling"</span>, +<a class="jxr_linenumber" name="L142" href="#L142">142</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER format"</span>} +<a class="jxr_linenumber" name="L143" href="#L143">143</a> ); +<a class="jxr_linenumber" name="L144" href="#L144">144</a> } +<a class="jxr_linenumber" name="L145" href="#L145">145</a> <strong class="jxr_keyword">return</strong> arr[pos] == val; +<a class="jxr_linenumber" name="L146" href="#L146">146</a> } +<a class="jxr_linenumber" name="L147" href="#L147">147</a> +<a class="jxr_linenumber" name="L148" href="#L148">148</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L149" href="#L149">149</a> <em class="jxr_javadoccomment"> * Get the DER length at the current position.</em> +<a class="jxr_linenumber" name="L150" href="#L150">150</a> <em class="jxr_javadoccomment"> * <p></em> +<a class="jxr_linenumber" name="L151" href="#L151">151</a> <em class="jxr_javadoccomment"> * DER length is encoded as</em> +<a class="jxr_linenumber" name="L152" href="#L152">152</a> <em class="jxr_javadoccomment"> * <ul></em> +<a class="jxr_linenumber" name="L153" href="#L153">153</a> <em class="jxr_javadoccomment"> * <li>If the first byte is 0x00 to 0x7F, it describes the actual length.</em> +<a class="jxr_linenumber" name="L154" href="#L154">154</a> <em class="jxr_javadoccomment"> * <li>If the first byte is 0x80 + n with 0<n<0x7F, the actual length is</em> +<a class="jxr_linenumber" name="L155" href="#L155">155</a> <em class="jxr_javadoccomment"> * described in the following 'n' bytes.</em> +<a class="jxr_linenumber" name="L156" href="#L156">156</a> <em class="jxr_javadoccomment"> * <li>The length value 0x80, used only in constructed types, is</em> +<a class="jxr_linenumber" name="L157" href="#L157">157</a> <em class="jxr_javadoccomment"> * defined as "indefinite length".</em> +<a class="jxr_linenumber" name="L158" href="#L158">158</a> <em class="jxr_javadoccomment"> * </ul></em> +<a class="jxr_linenumber" name="L159" href="#L159">159</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L160" href="#L160">160</a> <em class="jxr_javadoccomment"> * @return the length, -1 for indefinite length.</em> +<a class="jxr_linenumber" name="L161" href="#L161">161</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException</em> +<a class="jxr_linenumber" name="L162" href="#L162">162</a> <em class="jxr_javadoccomment"> * if the current position is at the end of the array or there is</em> +<a class="jxr_linenumber" name="L163" href="#L163">163</a> <em class="jxr_javadoccomment"> * an incomplete length specification.</em> +<a class="jxr_linenumber" name="L164" href="#L164">164</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L165" href="#L165">165</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getLength() <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { +<a class="jxr_linenumber" name="L166" href="#L166">166</a> <strong class="jxr_keyword">if</strong> (pos >= arr.length) { +<a class="jxr_linenumber" name="L167" href="#L167">167</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( +<a class="jxr_linenumber" name="L168" href="#L168">168</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, +<a class="jxr_linenumber" name="L169" href="#L169">169</a> <span class="jxr_string">"noSKIHandling"</span>, +<a class="jxr_linenumber" name="L170" href="#L170">170</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER format"</span>} +<a class="jxr_linenumber" name="L171" href="#L171">171</a> ); +<a class="jxr_linenumber" name="L172" href="#L172">172</a> } +<a class="jxr_linenumber" name="L173" href="#L173">173</a> <strong class="jxr_keyword">int</strong> len; +<a class="jxr_linenumber" name="L174" href="#L174">174</a> <strong class="jxr_keyword">if</strong> ((arr[pos] & 0xFF) <= 0x7F) { +<a class="jxr_linenumber" name="L175" href="#L175">175</a> len = arr[pos++]; +<a class="jxr_linenumber" name="L176" href="#L176">176</a> } <strong class="jxr_keyword">else</strong> { +<a class="jxr_linenumber" name="L177" href="#L177">177</a> <strong class="jxr_keyword">int</strong> nbytes = arr[pos++] & 0x7F; +<a class="jxr_linenumber" name="L178" href="#L178">178</a> <strong class="jxr_keyword">if</strong> (pos + nbytes > arr.length) { +<a class="jxr_linenumber" name="L179" href="#L179">179</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( +<a class="jxr_linenumber" name="L180" href="#L180">180</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, +<a class="jxr_linenumber" name="L181" href="#L181">181</a> <span class="jxr_string">"noSKIHandling"</span>, +<a class="jxr_linenumber" name="L182" href="#L182">182</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER format"</span>} +<a class="jxr_linenumber" name="L183" href="#L183">183</a> ); +<a class="jxr_linenumber" name="L184" href="#L184">184</a> } +<a class="jxr_linenumber" name="L185" href="#L185">185</a> byte[] lenBytes = <strong class="jxr_keyword">new</strong> byte[nbytes]; +<a class="jxr_linenumber" name="L186" href="#L186">186</a> System.arraycopy(arr, pos, lenBytes, 0, lenBytes.length); +<a class="jxr_linenumber" name="L187" href="#L187">187</a> len = <strong class="jxr_keyword">new</strong> BigInteger(1, lenBytes).intValue(); +<a class="jxr_linenumber" name="L188" href="#L188">188</a> pos += nbytes; +<a class="jxr_linenumber" name="L189" href="#L189">189</a> } +<a class="jxr_linenumber" name="L190" href="#L190">190</a> <strong class="jxr_keyword">return</strong> len; +<a class="jxr_linenumber" name="L191" href="#L191">191</a> } +<a class="jxr_linenumber" name="L192" href="#L192">192</a> +<a class="jxr_linenumber" name="L193" href="#L193">193</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L194" href="#L194">194</a> <em class="jxr_javadoccomment"> * Return an array of bytes from the current position.</em> +<a class="jxr_linenumber" name="L195" href="#L195">195</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L196" href="#L196">196</a> <em class="jxr_javadoccomment"> * @param length the number of bytes to return.</em> +<a class="jxr_linenumber" name="L197" href="#L197">197</a> <em class="jxr_javadoccomment"> * @return an array of the requested number of bytes from the current</em> +<a class="jxr_linenumber" name="L198" href="#L198">198</a> <em class="jxr_javadoccomment"> * position.</em> +<a class="jxr_linenumber" name="L199" href="#L199">199</a> <em class="jxr_javadoccomment"> * @throws WSSecurityException</em> +<a class="jxr_linenumber" name="L200" href="#L200">200</a> <em class="jxr_javadoccomment"> * if the current position is at the end of the array, or the</em> +<a class="jxr_linenumber" name="L201" href="#L201">201</a> <em class="jxr_javadoccomment"> * length is negative.</em> +<a class="jxr_linenumber" name="L202" href="#L202">202</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L203" href="#L203">203</a> <strong class="jxr_keyword">public</strong> byte[] getBytes(<strong class="jxr_keyword">int</strong> length) <strong class="jxr_keyword">throws</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a> { +<a class="jxr_linenumber" name="L204" href="#L204">204</a> <strong class="jxr_keyword">if</strong> (pos + length > arr.length) { +<a class="jxr_linenumber" name="L205" href="#L205">205</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( +<a class="jxr_linenumber" name="L206" href="#L206">206</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, +<a class="jxr_linenumber" name="L207" href="#L207">207</a> <span class="jxr_string">"noSKIHandling"</span>, +<a class="jxr_linenumber" name="L208" href="#L208">208</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Invalid DER format"</span>} +<a class="jxr_linenumber" name="L209" href="#L209">209</a> ); +<a class="jxr_linenumber" name="L210" href="#L210">210</a> } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (length < 0) { +<a class="jxr_linenumber" name="L211" href="#L211">211</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a name="WSSecurityException" href="../../../../../org/apache/wss4j/common/ext/WSSecurityException.html#WSSecurityException">WSSecurityException</a>( +<a class="jxr_linenumber" name="L212" href="#L212">212</a> WSSecurityException.ErrorCode.UNSUPPORTED_SECURITY_TOKEN, +<a class="jxr_linenumber" name="L213" href="#L213">213</a> <span class="jxr_string">"noSKIHandling"</span>, +<a class="jxr_linenumber" name="L214" href="#L214">214</a> <strong class="jxr_keyword">new</strong> Object[] {<span class="jxr_string">"Unsupported DER format"</span>} +<a class="jxr_linenumber" name="L215" href="#L215">215</a> ); +<a class="jxr_linenumber" name="L216" href="#L216">216</a> } +<a class="jxr_linenumber" name="L217" href="#L217">217</a> byte[] value = <strong class="jxr_keyword">new</strong> byte[length]; +<a class="jxr_linenumber" name="L218" href="#L218">218</a> System.arraycopy(arr, pos, value, 0, length); +<a class="jxr_linenumber" name="L219" href="#L219">219</a> pos += length; +<a class="jxr_linenumber" name="L220" href="#L220">220</a> <strong class="jxr_keyword">return</strong> value; +<a class="jxr_linenumber" name="L221" href="#L221">221</a> } +<a class="jxr_linenumber" name="L222" href="#L222">222</a> +<a class="jxr_linenumber" name="L223" href="#L223">223</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/JasyptPasswordEncryptor.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/JasyptPasswordEncryptor.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/JasyptPasswordEncryptor.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/JasyptPasswordEncryptor.html Thu Nov 14 16:06:47 2024 @@ -116,6 +116,6 @@ <a class="jxr_linenumber" name="L108" href="#L108">108</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/Merlin.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/Merlin.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/Merlin.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/Merlin.html Thu Nov 14 16:06:47 2024 @@ -1462,7 +1462,7 @@ <a class="jxr_linenumber" name="L1454" href="#L1454">1454</a> <a class="jxr_linenumber" name="L1455" href="#L1455">1455</a> Certificate[] certs = store.getCertificateChain(alias); <a class="jxr_linenumber" name="L1456" href="#L1456">1456</a> <strong class="jxr_keyword">if</strong> (certs == <strong class="jxr_keyword">null</strong> || certs.length == 0) { -<a class="jxr_linenumber" name="L1457" href="#L1457">1457</a> <em class="jxr_comment">// no cert chain, so lets check if getCertificate gives us a result.</em> +<a class="jxr_linenumber" name="L1457" href="#L1457">1457</a> <em class="jxr_comment">// no cert chain, so lets check if getCertificate gives us a result.</em> <a class="jxr_linenumber" name="L1458" href="#L1458">1458</a> Certificate retrievedCert = store.getCertificate(alias); <a class="jxr_linenumber" name="L1459" href="#L1459">1459</a> <strong class="jxr_keyword">if</strong> (retrievedCert != <strong class="jxr_keyword">null</strong>) { <a class="jxr_linenumber" name="L1460" href="#L1460">1460</a> certs = <strong class="jxr_keyword">new</strong> Certificate[]{retrievedCert}; @@ -1487,7 +1487,7 @@ <a class="jxr_linenumber" name="L1479" href="#L1479">1479</a> <a class="jxr_linenumber" name="L1480" href="#L1480">1480</a> Certificate[] certs = store.getCertificateChain(alias); <a class="jxr_linenumber" name="L1481" href="#L1481">1481</a> <strong class="jxr_keyword">if</strong> (certs == <strong class="jxr_keyword">null</strong> || certs.length == 0) { -<a class="jxr_linenumber" name="L1482" href="#L1482">1482</a> <em class="jxr_comment">// no cert chain, so lets check if getCertificate gives us a result.</em> +<a class="jxr_linenumber" name="L1482" href="#L1482">1482</a> <em class="jxr_comment">// no cert chain, so lets check if getCertificate gives us a result.</em> <a class="jxr_linenumber" name="L1483" href="#L1483">1483</a> Certificate retrievedCert = store.getCertificate(alias); <a class="jxr_linenumber" name="L1484" href="#L1484">1484</a> <strong class="jxr_keyword">if</strong> (retrievedCert != <strong class="jxr_keyword">null</strong>) { <a class="jxr_linenumber" name="L1485" href="#L1485">1485</a> certs = <strong class="jxr_keyword">new</strong> Certificate[]{retrievedCert}; @@ -1566,6 +1566,6 @@ <a class="jxr_linenumber" name="L1558" href="#L1558">1558</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/MerlinAKI.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/MerlinAKI.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/MerlinAKI.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/MerlinAKI.html Thu Nov 14 16:06:47 2024 @@ -274,6 +274,6 @@ <a class="jxr_linenumber" name="L266" href="#L266">266</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/MerlinDevice.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/MerlinDevice.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/MerlinDevice.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/MerlinDevice.html Thu Nov 14 16:06:47 2024 @@ -205,6 +205,6 @@ <a class="jxr_linenumber" name="L197" href="#L197">197</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/PasswordEncryptor.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/PasswordEncryptor.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/PasswordEncryptor.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/PasswordEncryptor.html Thu Nov 14 16:06:47 2024 @@ -52,6 +52,6 @@ <a class="jxr_linenumber" name="L44" href="#L44">44</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/SantuarioUtil.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/SantuarioUtil.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/SantuarioUtil.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/SantuarioUtil.html Thu Nov 14 16:06:47 2024 @@ -46,6 +46,6 @@ <a class="jxr_linenumber" name="L38" href="#L38">38</a> </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/ThreadLocalSecurityProvider.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/ThreadLocalSecurityProvider.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/ThreadLocalSecurityProvider.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/ThreadLocalSecurityProvider.html Thu Nov 14 16:06:47 2024 @@ -211,6 +211,6 @@ <a class="jxr_linenumber" name="L203" href="#L203">203</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/WSProviderConfig.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/WSProviderConfig.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/WSProviderConfig.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/WSProviderConfig.html Thu Nov 14 16:06:47 2024 @@ -151,7 +151,7 @@ <a class="jxr_linenumber" name="L143" href="#L143">143</a> <em class="jxr_javadoccomment"> * Set the value of the internal addJceProviders flag. This flag</em> <a class="jxr_linenumber" name="L144" href="#L144">144</a> <em class="jxr_javadoccomment"> * turns on (or off) automatic registration of known JCE providers</em> <a class="jxr_linenumber" name="L145" href="#L145">145</a> <em class="jxr_javadoccomment"> * that provide necessary cryptographic algorithms for use with WSS4J.</em> -<a class="jxr_linenumber" name="L146" href="#L146">146</a> <em class="jxr_javadoccomment"> * By default, this flag is true. You may wish (or need) to initialize</em> +<a class="jxr_linenumber" name="L146" href="#L146">146</a> <em class="jxr_javadoccomment"> * By default, this flag is true. You may wish (or need) to initialize</em> <a class="jxr_linenumber" name="L147" href="#L147">147</a> <em class="jxr_javadoccomment"> * the JCE manually, e.g., in some JVMs.</em> <a class="jxr_linenumber" name="L148" href="#L148">148</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L149" href="#L149">149</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> setAddJceProviders(<strong class="jxr_keyword">boolean</strong> value) { @@ -344,6 +344,6 @@ <a class="jxr_linenumber" name="L336" href="#L336">336</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/WSS4JResourceBundle.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/WSS4JResourceBundle.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/WSS4JResourceBundle.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/WSS4JResourceBundle.html Thu Nov 14 16:06:47 2024 @@ -90,6 +90,6 @@ <a class="jxr_linenumber" name="L82" href="#L82">82</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/X509SubjectPublicKeyInfo.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/X509SubjectPublicKeyInfo.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/X509SubjectPublicKeyInfo.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/X509SubjectPublicKeyInfo.html Thu Nov 14 16:06:47 2024 @@ -116,6 +116,6 @@ <a class="jxr_linenumber" name="L108" href="#L108">108</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/package-frame.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/package-frame.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/package-frame.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/package-frame.html Thu Nov 14 16:06:47 2024 @@ -12,67 +12,67 @@ <div class="indexContainer"> <h2 title="Classes">Classes</h2> <ul title="Classes"> - <li> + <li> <a href="AlgorithmSuite.html#AlgorithmSuite" target="classFrame">AlgorithmSuite</a> </li> - <li> + <li> <a href="AlgorithmSuiteValidator.html#AlgorithmSuiteValidator" target="classFrame">AlgorithmSuiteValidator</a> </li> - <li> + <li> <a href="BouncyCastleUtils.html#BouncyCastleUtils" target="classFrame">BouncyCastleUtils</a> </li> - <li> + <li> <a href="CertificateStore.html#CertificateStore" target="classFrame">CertificateStore</a> </li> - <li> + <li> <a href="Crypto.html#Crypto" target="classFrame">Crypto</a> </li> - <li> + <li> <a href="CryptoBase.html#CryptoBase" target="classFrame">CryptoBase</a> </li> - <li> + <li> <a href="CryptoFactory.html#CryptoFactory" target="classFrame">CryptoFactory</a> </li> - <li> + <li> <a href="CryptoType.html#CryptoType" target="classFrame">CryptoType</a> </li> - <li> + <li> <a href="CryptoType.html#CryptoType.TYPE" target="classFrame">CryptoType.TYPE</a> </li> - <li> + <li> <a href="DERDecoder.html#DERDecoder" target="classFrame">DERDecoder</a> </li> - <li> + <li> <a href="JasyptPasswordEncryptor.html#JasyptPasswordEncryptor" target="classFrame">JasyptPasswordEncryptor</a> </li> - <li> + <li> <a href="Merlin.html#Merlin" target="classFrame">Merlin</a> </li> - <li> + <li> <a href="MerlinAKI.html#MerlinAKI" target="classFrame">MerlinAKI</a> </li> - <li> + <li> <a href="MerlinDevice.html#MerlinDevice" target="classFrame">MerlinDevice</a> </li> - <li> + <li> <a href="PasswordEncryptor.html#PasswordEncryptor" target="classFrame">PasswordEncryptor</a> </li> - <li> + <li> <a href="SantuarioUtil.html#SantuarioUtil" target="classFrame">SantuarioUtil</a> </li> - <li> + <li> <a href="ThreadLocalSecurityProvider.html#ThreadLocalSecurityProvider" target="classFrame">ThreadLocalSecurityProvider</a> </li> - <li> + <li> <a href="WSProviderConfig.html#WSProviderConfig" target="classFrame">WSProviderConfig</a> </li> - <li> + <li> <a href="WSS4JResourceBundle.html#WSS4JResourceBundle" target="classFrame">WSS4JResourceBundle</a> </li> - <li> + <li> <a href="X509SubjectPublicKeyInfo.html#X509SubjectPublicKeyInfo" target="classFrame">X509SubjectPublicKeyInfo</a> </li> - </ul> + </ul> </div> </body> </html> \ No newline at end of file Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/package-summary.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/package-summary.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/package-summary.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/crypto/package-summary.html Thu Nov 14 16:06:47 2024 @@ -56,107 +56,107 @@ </tr> </thead> <tbody> - <tr class="altColor"> + <tr class="altColor"> <td class="colFirst colLast"> <a href="AlgorithmSuite.html#AlgorithmSuite" target="classFrame" title="class in org.apache.wss4j.common.crypto">AlgorithmSuite</a> </td> </tr> - <tr class="rowColor"> + <tr class="rowColor"> <td class="colFirst colLast"> <a href="AlgorithmSuiteValidator.html#AlgorithmSuiteValidator" target="classFrame" title="class in org.apache.wss4j.common.crypto">AlgorithmSuiteValidator</a> </td> </tr> - <tr class="altColor"> + <tr class="altColor"> <td class="colFirst colLast"> <a href="BouncyCastleUtils.html#BouncyCastleUtils" target="classFrame" title="class in org.apache.wss4j.common.crypto">BouncyCastleUtils</a> </td> </tr> - <tr class="rowColor"> + <tr class="rowColor"> <td class="colFirst colLast"> <a href="CertificateStore.html#CertificateStore" target="classFrame" title="class in org.apache.wss4j.common.crypto">CertificateStore</a> </td> </tr> - <tr class="altColor"> + <tr class="altColor"> <td class="colFirst colLast"> <a href="Crypto.html#Crypto" target="classFrame" title="class in org.apache.wss4j.common.crypto">Crypto</a> </td> </tr> - <tr class="rowColor"> + <tr class="rowColor"> <td class="colFirst colLast"> <a href="CryptoBase.html#CryptoBase" target="classFrame" title="class in org.apache.wss4j.common.crypto">CryptoBase</a> </td> </tr> - <tr class="altColor"> + <tr class="altColor"> <td class="colFirst colLast"> <a href="CryptoFactory.html#CryptoFactory" target="classFrame" title="class in org.apache.wss4j.common.crypto">CryptoFactory</a> </td> </tr> - <tr class="rowColor"> + <tr class="rowColor"> <td class="colFirst colLast"> <a href="CryptoType.html#CryptoType" target="classFrame" title="class in org.apache.wss4j.common.crypto">CryptoType</a> </td> </tr> - <tr class="altColor"> + <tr class="altColor"> <td class="colFirst colLast"> <a href="CryptoType.html#CryptoType.TYPE" target="classFrame" title="class in org.apache.wss4j.common.crypto">CryptoType.TYPE</a> </td> </tr> - <tr class="rowColor"> + <tr class="rowColor"> <td class="colFirst colLast"> <a href="DERDecoder.html#DERDecoder" target="classFrame" title="class in org.apache.wss4j.common.crypto">DERDecoder</a> </td> </tr> - <tr class="altColor"> + <tr class="altColor"> <td class="colFirst colLast"> <a href="JasyptPasswordEncryptor.html#JasyptPasswordEncryptor" target="classFrame" title="class in org.apache.wss4j.common.crypto">JasyptPasswordEncryptor</a> </td> </tr> - <tr class="rowColor"> + <tr class="rowColor"> <td class="colFirst colLast"> <a href="Merlin.html#Merlin" target="classFrame" title="class in org.apache.wss4j.common.crypto">Merlin</a> </td> </tr> - <tr class="altColor"> + <tr class="altColor"> <td class="colFirst colLast"> <a href="MerlinAKI.html#MerlinAKI" target="classFrame" title="class in org.apache.wss4j.common.crypto">MerlinAKI</a> </td> </tr> - <tr class="rowColor"> + <tr class="rowColor"> <td class="colFirst colLast"> <a href="MerlinDevice.html#MerlinDevice" target="classFrame" title="class in org.apache.wss4j.common.crypto">MerlinDevice</a> </td> </tr> - <tr class="altColor"> + <tr class="altColor"> <td class="colFirst colLast"> <a href="PasswordEncryptor.html#PasswordEncryptor" target="classFrame" title="class in org.apache.wss4j.common.crypto">PasswordEncryptor</a> </td> </tr> - <tr class="rowColor"> + <tr class="rowColor"> <td class="colFirst colLast"> <a href="SantuarioUtil.html#SantuarioUtil" target="classFrame" title="class in org.apache.wss4j.common.crypto">SantuarioUtil</a> </td> </tr> - <tr class="altColor"> + <tr class="altColor"> <td class="colFirst colLast"> <a href="ThreadLocalSecurityProvider.html#ThreadLocalSecurityProvider" target="classFrame" title="class in org.apache.wss4j.common.crypto">ThreadLocalSecurityProvider</a> </td> </tr> - <tr class="rowColor"> + <tr class="rowColor"> <td class="colFirst colLast"> <a href="WSProviderConfig.html#WSProviderConfig" target="classFrame" title="class in org.apache.wss4j.common.crypto">WSProviderConfig</a> </td> </tr> - <tr class="altColor"> + <tr class="altColor"> <td class="colFirst colLast"> <a href="WSS4JResourceBundle.html#WSS4JResourceBundle" target="classFrame" title="class in org.apache.wss4j.common.crypto">WSS4JResourceBundle</a> </td> </tr> - <tr class="rowColor"> + <tr class="rowColor"> <td class="colFirst colLast"> <a href="X509SubjectPublicKeyInfo.html#X509SubjectPublicKeyInfo" target="classFrame" title="class in org.apache.wss4j.common.crypto">X509SubjectPublicKeyInfo</a> </td> </tr> - </tbody> + </tbody> </table> </li> </ul> @@ -196,7 +196,7 @@ </div> <div id="footer"> - Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. + © 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a> </div> </body> </html> \ No newline at end of file Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/AlgoFactory.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/AlgoFactory.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/AlgoFactory.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/AlgoFactory.html Thu Nov 14 16:06:47 2024 @@ -56,6 +56,6 @@ <a class="jxr_linenumber" name="L48" href="#L48">48</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/ConversationConstants.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/ConversationConstants.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/ConversationConstants.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/ConversationConstants.html Thu Nov 14 16:06:47 2024 @@ -211,6 +211,6 @@ <a class="jxr_linenumber" name="L203" href="#L203">203</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/DerivationAlgorithm.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/DerivationAlgorithm.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/DerivationAlgorithm.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/DerivationAlgorithm.html Thu Nov 14 16:06:47 2024 @@ -37,6 +37,6 @@ <a class="jxr_linenumber" name="L29" href="#L29">29</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/DerivedKeyUtils.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/DerivedKeyUtils.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/DerivedKeyUtils.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/DerivedKeyUtils.html Thu Nov 14 16:06:47 2024 @@ -68,6 +68,6 @@ <a class="jxr_linenumber" name="L60" href="#L60">60</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/P_SHA1.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/P_SHA1.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/P_SHA1.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/P_SHA1.html Thu Nov 14 16:06:47 2024 @@ -124,6 +124,6 @@ <a class="jxr_linenumber" name="L116" href="#L116">116</a> } </pre> <hr/> -<div id="footer">Copyright © 2004–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">© 2004â2024 <a href="https://www.apache.org/">The Apache Software Foundation</a></div> </body> </html> Modified: webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/package-frame.html URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/package-frame.html?rev=1921891&r1=1921890&r2=1921891&view=diff ============================================================================== --- webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/package-frame.html (original) +++ webservices/website/wss4j/xref/org/apache/wss4j/common/derivedKey/package-frame.html Thu Nov 14 16:06:47 2024 @@ -12,25 +12,25 @@ <div class="indexContainer"> <h2 title="Classes">Classes</h2> <ul title="Classes"> - <li> + <li> <a href="AlgoFactory.html#AlgoFactory" target="classFrame">AlgoFactory</a> </li> - <li> + <li> <a href="ConversationConstants.html#ConversationConstants" target="classFrame">ConversationConstants</a> </li> - <li> + <li> <a href="ConversationConstants.html#ConversationConstants.DerivationAlgorithm" target="classFrame">ConversationConstants.DerivationAlgorithm</a> </li> - <li> + <li> <a href="DerivationAlgorithm.html#DerivationAlgorithm" target="classFrame">DerivationAlgorithm</a> </li> - <li> + <li> <a href="DerivedKeyUtils.html#DerivedKeyUtils" target="classFrame">DerivedKeyUtils</a> </li> - <li> + <li> <a href="P_SHA1.html#P_SHA1" target="classFrame">P_SHA1</a> </li> - </ul> + </ul> </div> </body> </html> \ No newline at end of file