ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1754091 [39/39] - in /webservices/website/wss4j: ./ apidocs/ apidocs/org/apache/wss4j/binding/wss10/ apidocs/org/apache/wss4j/binding/wss10/class-use/ apidocs/org/apache/wss4j/binding/wss11/ apidocs/org/apache/wss4j/binding/wss11/class-use...
Date Tue, 26 Jul 2016 09:18:04 GMT
Modified: webservices/website/wss4j/xref/org/apache/wss4j/stax/setup/ConfigurationConverter.html
URL: http://svn.apache.org/viewvc/webservices/website/wss4j/xref/org/apache/wss4j/stax/setup/ConfigurationConverter.html?rev=1754091&r1=1754090&r2=1754091&view=diff
==============================================================================
--- webservices/website/wss4j/xref/org/apache/wss4j/stax/setup/ConfigurationConverter.html (original)
+++ webservices/website/wss4j/xref/org/apache/wss4j/stax/setup/ConfigurationConverter.html Tue Jul 26 09:17:42 2016
@@ -460,357 +460,345 @@
 <a class="jxr_linenumber" name="L452" href="#L452">452</a>             decodeBooleanConfigValue(ConfigurationConstants.INCLUDE_ENCRYPTION_TOKEN, false, config);
 <a class="jxr_linenumber" name="L453" href="#L453">453</a>         properties.setIncludeEncryptionToken(includeEncryptionToken);
 <a class="jxr_linenumber" name="L454" href="#L454">454</a> 
-<a class="jxr_linenumber" name="L455" href="#L455">455</a>         <strong class="jxr_keyword">boolean</strong> enableTimestampCache =
-<a class="jxr_linenumber" name="L456" href="#L456">456</a>             decodeBooleanConfigValue(ConfigurationConstants.ENABLE_TIMESTAMP_CACHE, <strong class="jxr_keyword">true</strong>, config);
-<a class="jxr_linenumber" name="L457" href="#L457">457</a>         properties.setEnableTimestampReplayCache(enableTimestampCache);
+<a class="jxr_linenumber" name="L455" href="#L455">455</a>         <strong class="jxr_keyword">boolean</strong> encryptSymmetricEncryptionKey =
+<a class="jxr_linenumber" name="L456" href="#L456">456</a>             decodeBooleanConfigValue(ConfigurationConstants.ENC_SYM_ENC_KEY, <strong class="jxr_keyword">true</strong>, config);
+<a class="jxr_linenumber" name="L457" href="#L457">457</a>         properties.setEncryptSymmetricEncryptionKey(encryptSymmetricEncryptionKey);
 <a class="jxr_linenumber" name="L458" href="#L458">458</a> 
-<a class="jxr_linenumber" name="L459" href="#L459">459</a>         <strong class="jxr_keyword">boolean</strong> enableNonceCache =
-<a class="jxr_linenumber" name="L460" href="#L460">460</a>             decodeBooleanConfigValue(ConfigurationConstants.ENABLE_NONCE_CACHE, <strong class="jxr_keyword">true</strong>, config);
-<a class="jxr_linenumber" name="L461" href="#L461">461</a>         properties.setEnableNonceReplayCache(enableNonceCache);
+<a class="jxr_linenumber" name="L459" href="#L459">459</a>         <strong class="jxr_keyword">boolean</strong> use200512Namespace =
+<a class="jxr_linenumber" name="L460" href="#L460">460</a>             decodeBooleanConfigValue(ConfigurationConstants.USE_2005_12_NAMESPACE, <strong class="jxr_keyword">true</strong>, config);
+<a class="jxr_linenumber" name="L461" href="#L461">461</a>         properties.setUse200512Namespace(use200512Namespace);
 <a class="jxr_linenumber" name="L462" href="#L462">462</a> 
-<a class="jxr_linenumber" name="L463" href="#L463">463</a>         <strong class="jxr_keyword">boolean</strong> enableSamlOneTimeUseCache =
-<a class="jxr_linenumber" name="L464" href="#L464">464</a>             decodeBooleanConfigValue(ConfigurationConstants.ENABLE_SAML_ONE_TIME_USE_CACHE, <strong class="jxr_keyword">true</strong>, config);
-<a class="jxr_linenumber" name="L465" href="#L465">465</a>         properties.setEnableSamlOneTimeUseReplayCache(enableSamlOneTimeUseCache);
-<a class="jxr_linenumber" name="L466" href="#L466">466</a> 
-<a class="jxr_linenumber" name="L467" href="#L467">467</a>         <strong class="jxr_keyword">boolean</strong> encryptSymmetricEncryptionKey =
-<a class="jxr_linenumber" name="L468" href="#L468">468</a>             decodeBooleanConfigValue(ConfigurationConstants.ENC_SYM_ENC_KEY, <strong class="jxr_keyword">true</strong>, config);
-<a class="jxr_linenumber" name="L469" href="#L469">469</a>         properties.setEncryptSymmetricEncryptionKey(encryptSymmetricEncryptionKey);
-<a class="jxr_linenumber" name="L470" href="#L470">470</a> 
-<a class="jxr_linenumber" name="L471" href="#L471">471</a>         <strong class="jxr_keyword">boolean</strong> use200512Namespace =
-<a class="jxr_linenumber" name="L472" href="#L472">472</a>             decodeBooleanConfigValue(ConfigurationConstants.USE_2005_12_NAMESPACE, <strong class="jxr_keyword">true</strong>, config);
-<a class="jxr_linenumber" name="L473" href="#L473">473</a>         properties.setUse200512Namespace(use200512Namespace);
-<a class="jxr_linenumber" name="L474" href="#L474">474</a> 
-<a class="jxr_linenumber" name="L475" href="#L475">475</a>         <strong class="jxr_keyword">boolean</strong> requireTimestampExpires =
-<a class="jxr_linenumber" name="L476" href="#L476">476</a>             decodeBooleanConfigValue(ConfigurationConstants.REQUIRE_TIMESTAMP_EXPIRES, false, config);
-<a class="jxr_linenumber" name="L477" href="#L477">477</a>         properties.setRequireTimestampExpires(requireTimestampExpires);
-<a class="jxr_linenumber" name="L478" href="#L478">478</a>     }
-<a class="jxr_linenumber" name="L479" href="#L479">479</a> 
-<a class="jxr_linenumber" name="L480" href="#L480">480</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> parseNonBooleanProperties(
-<a class="jxr_linenumber" name="L481" href="#L481">481</a>         Map&lt;String, Object&gt; config,
-<a class="jxr_linenumber" name="L482" href="#L482">482</a>         <a href="../../../../../org/apache/wss4j/stax/ext/WSSSecurityProperties.html">WSSSecurityProperties</a> properties
-<a class="jxr_linenumber" name="L483" href="#L483">483</a>     ) {
-<a class="jxr_linenumber" name="L484" href="#L484">484</a>         String pwType = getString(ConfigurationConstants.PASSWORD_TYPE, config);
-<a class="jxr_linenumber" name="L485" href="#L485">485</a>         <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"PasswordDigest"</span>.equals(pwType)) {
-<a class="jxr_linenumber" name="L486" href="#L486">486</a>             properties.setUsernameTokenPasswordType(UsernameTokenPasswordType.PASSWORD_DIGEST);
-<a class="jxr_linenumber" name="L487" href="#L487">487</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"PasswordText"</span>.equals(pwType)) {
-<a class="jxr_linenumber" name="L488" href="#L488">488</a>             properties.setUsernameTokenPasswordType(UsernameTokenPasswordType.PASSWORD_TEXT);
-<a class="jxr_linenumber" name="L489" href="#L489">489</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"PasswordNone"</span>.equals(pwType)) {
-<a class="jxr_linenumber" name="L490" href="#L490">490</a>             properties.setUsernameTokenPasswordType(UsernameTokenPasswordType.PASSWORD_NONE);
-<a class="jxr_linenumber" name="L491" href="#L491">491</a>         }
-<a class="jxr_linenumber" name="L492" href="#L492">492</a> 
-<a class="jxr_linenumber" name="L493" href="#L493">493</a>         String signatureKeyIdentifier = getString(ConfigurationConstants.SIG_KEY_ID, config);
-<a class="jxr_linenumber" name="L494" href="#L494">494</a>         WSSecurityTokenConstants.KeyIdentifier convSigKeyIdentifier =
-<a class="jxr_linenumber" name="L495" href="#L495">495</a>             convertKeyIdentifier(signatureKeyIdentifier);
-<a class="jxr_linenumber" name="L496" href="#L496">496</a>         <strong class="jxr_keyword">if</strong> (convSigKeyIdentifier != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L497" href="#L497">497</a>             properties.setSignatureKeyIdentifier(convSigKeyIdentifier);
-<a class="jxr_linenumber" name="L498" href="#L498">498</a>         }
+<a class="jxr_linenumber" name="L463" href="#L463">463</a>         <strong class="jxr_keyword">boolean</strong> requireTimestampExpires =
+<a class="jxr_linenumber" name="L464" href="#L464">464</a>             decodeBooleanConfigValue(ConfigurationConstants.REQUIRE_TIMESTAMP_EXPIRES, false, config);
+<a class="jxr_linenumber" name="L465" href="#L465">465</a>         properties.setRequireTimestampExpires(requireTimestampExpires);
+<a class="jxr_linenumber" name="L466" href="#L466">466</a>     }
+<a class="jxr_linenumber" name="L467" href="#L467">467</a> 
+<a class="jxr_linenumber" name="L468" href="#L468">468</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> parseNonBooleanProperties(
+<a class="jxr_linenumber" name="L469" href="#L469">469</a>         Map&lt;String, Object&gt; config,
+<a class="jxr_linenumber" name="L470" href="#L470">470</a>         <a href="../../../../../org/apache/wss4j/stax/ext/WSSSecurityProperties.html">WSSSecurityProperties</a> properties
+<a class="jxr_linenumber" name="L471" href="#L471">471</a>     ) {
+<a class="jxr_linenumber" name="L472" href="#L472">472</a>         String pwType = getString(ConfigurationConstants.PASSWORD_TYPE, config);
+<a class="jxr_linenumber" name="L473" href="#L473">473</a>         <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"PasswordDigest"</span>.equals(pwType)) {
+<a class="jxr_linenumber" name="L474" href="#L474">474</a>             properties.setUsernameTokenPasswordType(UsernameTokenPasswordType.PASSWORD_DIGEST);
+<a class="jxr_linenumber" name="L475" href="#L475">475</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"PasswordText"</span>.equals(pwType)) {
+<a class="jxr_linenumber" name="L476" href="#L476">476</a>             properties.setUsernameTokenPasswordType(UsernameTokenPasswordType.PASSWORD_TEXT);
+<a class="jxr_linenumber" name="L477" href="#L477">477</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"PasswordNone"</span>.equals(pwType)) {
+<a class="jxr_linenumber" name="L478" href="#L478">478</a>             properties.setUsernameTokenPasswordType(UsernameTokenPasswordType.PASSWORD_NONE);
+<a class="jxr_linenumber" name="L479" href="#L479">479</a>         }
+<a class="jxr_linenumber" name="L480" href="#L480">480</a> 
+<a class="jxr_linenumber" name="L481" href="#L481">481</a>         String signatureKeyIdentifier = getString(ConfigurationConstants.SIG_KEY_ID, config);
+<a class="jxr_linenumber" name="L482" href="#L482">482</a>         WSSecurityTokenConstants.KeyIdentifier convSigKeyIdentifier =
+<a class="jxr_linenumber" name="L483" href="#L483">483</a>             convertKeyIdentifier(signatureKeyIdentifier);
+<a class="jxr_linenumber" name="L484" href="#L484">484</a>         <strong class="jxr_keyword">if</strong> (convSigKeyIdentifier != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L485" href="#L485">485</a>             properties.setSignatureKeyIdentifier(convSigKeyIdentifier);
+<a class="jxr_linenumber" name="L486" href="#L486">486</a>         }
+<a class="jxr_linenumber" name="L487" href="#L487">487</a> 
+<a class="jxr_linenumber" name="L488" href="#L488">488</a>         String sigAlgo = getString(ConfigurationConstants.SIG_ALGO, config);
+<a class="jxr_linenumber" name="L489" href="#L489">489</a>         properties.setSignatureAlgorithm(sigAlgo);
+<a class="jxr_linenumber" name="L490" href="#L490">490</a> 
+<a class="jxr_linenumber" name="L491" href="#L491">491</a>         String sigDigestAlgo = getString(ConfigurationConstants.SIG_DIGEST_ALGO, config);
+<a class="jxr_linenumber" name="L492" href="#L492">492</a>         properties.setSignatureDigestAlgorithm(sigDigestAlgo);
+<a class="jxr_linenumber" name="L493" href="#L493">493</a> 
+<a class="jxr_linenumber" name="L494" href="#L494">494</a>         String sigC14nAlgo = getString(ConfigurationConstants.SIG_C14N_ALGO, config);
+<a class="jxr_linenumber" name="L495" href="#L495">495</a>         properties.setSignatureCanonicalizationAlgorithm(sigC14nAlgo);
+<a class="jxr_linenumber" name="L496" href="#L496">496</a> 
+<a class="jxr_linenumber" name="L497" href="#L497">497</a>         Object sigParts = config.get(ConfigurationConstants.SIGNATURE_PARTS);
+<a class="jxr_linenumber" name="L498" href="#L498">498</a>         configureParts(sigParts, properties, sigDigestAlgo, <strong class="jxr_keyword">true</strong>, <strong class="jxr_keyword">true</strong>);
 <a class="jxr_linenumber" name="L499" href="#L499">499</a> 
-<a class="jxr_linenumber" name="L500" href="#L500">500</a>         String sigAlgo = getString(ConfigurationConstants.SIG_ALGO, config);
-<a class="jxr_linenumber" name="L501" href="#L501">501</a>         properties.setSignatureAlgorithm(sigAlgo);
+<a class="jxr_linenumber" name="L500" href="#L500">500</a>         sigParts = config.get(ConfigurationConstants.OPTIONAL_SIGNATURE_PARTS);
+<a class="jxr_linenumber" name="L501" href="#L501">501</a>         configureParts(sigParts, properties, sigDigestAlgo, false, <strong class="jxr_keyword">true</strong>);
 <a class="jxr_linenumber" name="L502" href="#L502">502</a> 
-<a class="jxr_linenumber" name="L503" href="#L503">503</a>         String sigDigestAlgo = getString(ConfigurationConstants.SIG_DIGEST_ALGO, config);
-<a class="jxr_linenumber" name="L504" href="#L504">504</a>         properties.setSignatureDigestAlgorithm(sigDigestAlgo);
-<a class="jxr_linenumber" name="L505" href="#L505">505</a> 
-<a class="jxr_linenumber" name="L506" href="#L506">506</a>         String sigC14nAlgo = getString(ConfigurationConstants.SIG_C14N_ALGO, config);
-<a class="jxr_linenumber" name="L507" href="#L507">507</a>         properties.setSignatureCanonicalizationAlgorithm(sigC14nAlgo);
+<a class="jxr_linenumber" name="L503" href="#L503">503</a>         String iterations = getString(ConfigurationConstants.DERIVED_KEY_ITERATIONS, config);
+<a class="jxr_linenumber" name="L504" href="#L504">504</a>         <strong class="jxr_keyword">if</strong> (iterations != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L505" href="#L505">505</a>             <strong class="jxr_keyword">int</strong> iIterations = Integer.parseInt(iterations);
+<a class="jxr_linenumber" name="L506" href="#L506">506</a>             properties.setDerivedKeyIterations(iIterations);
+<a class="jxr_linenumber" name="L507" href="#L507">507</a>         }
 <a class="jxr_linenumber" name="L508" href="#L508">508</a> 
-<a class="jxr_linenumber" name="L509" href="#L509">509</a>         Object sigParts = config.get(ConfigurationConstants.SIGNATURE_PARTS);
-<a class="jxr_linenumber" name="L510" href="#L510">510</a>         configureParts(sigParts, properties, sigDigestAlgo, <strong class="jxr_keyword">true</strong>, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L511" href="#L511">511</a> 
-<a class="jxr_linenumber" name="L512" href="#L512">512</a>         sigParts = config.get(ConfigurationConstants.OPTIONAL_SIGNATURE_PARTS);
-<a class="jxr_linenumber" name="L513" href="#L513">513</a>         configureParts(sigParts, properties, sigDigestAlgo, false, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L514" href="#L514">514</a> 
-<a class="jxr_linenumber" name="L515" href="#L515">515</a>         String iterations = getString(ConfigurationConstants.DERIVED_KEY_ITERATIONS, config);
-<a class="jxr_linenumber" name="L516" href="#L516">516</a>         <strong class="jxr_keyword">if</strong> (iterations != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L517" href="#L517">517</a>             <strong class="jxr_keyword">int</strong> iIterations = Integer.parseInt(iterations);
-<a class="jxr_linenumber" name="L518" href="#L518">518</a>             properties.setDerivedKeyIterations(iIterations);
-<a class="jxr_linenumber" name="L519" href="#L519">519</a>         }
-<a class="jxr_linenumber" name="L520" href="#L520">520</a> 
-<a class="jxr_linenumber" name="L521" href="#L521">521</a>         String encKeyIdentifier = getString(ConfigurationConstants.ENC_KEY_ID, config);
-<a class="jxr_linenumber" name="L522" href="#L522">522</a>         WSSecurityTokenConstants.KeyIdentifier convEncKeyIdentifier =
-<a class="jxr_linenumber" name="L523" href="#L523">523</a>             convertKeyIdentifier(encKeyIdentifier);
-<a class="jxr_linenumber" name="L524" href="#L524">524</a>         <strong class="jxr_keyword">if</strong> (convEncKeyIdentifier != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L525" href="#L525">525</a>             properties.setEncryptionKeyIdentifier(convEncKeyIdentifier);
-<a class="jxr_linenumber" name="L526" href="#L526">526</a>         }
+<a class="jxr_linenumber" name="L509" href="#L509">509</a>         String encKeyIdentifier = getString(ConfigurationConstants.ENC_KEY_ID, config);
+<a class="jxr_linenumber" name="L510" href="#L510">510</a>         WSSecurityTokenConstants.KeyIdentifier convEncKeyIdentifier =
+<a class="jxr_linenumber" name="L511" href="#L511">511</a>             convertKeyIdentifier(encKeyIdentifier);
+<a class="jxr_linenumber" name="L512" href="#L512">512</a>         <strong class="jxr_keyword">if</strong> (convEncKeyIdentifier != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L513" href="#L513">513</a>             properties.setEncryptionKeyIdentifier(convEncKeyIdentifier);
+<a class="jxr_linenumber" name="L514" href="#L514">514</a>         }
+<a class="jxr_linenumber" name="L515" href="#L515">515</a> 
+<a class="jxr_linenumber" name="L516" href="#L516">516</a>         Object encParts = config.get(ConfigurationConstants.ENCRYPTION_PARTS);
+<a class="jxr_linenumber" name="L517" href="#L517">517</a>         configureParts(encParts, properties, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">true</strong>, false);
+<a class="jxr_linenumber" name="L518" href="#L518">518</a> 
+<a class="jxr_linenumber" name="L519" href="#L519">519</a>         encParts = config.get(ConfigurationConstants.OPTIONAL_ENCRYPTION_PARTS);
+<a class="jxr_linenumber" name="L520" href="#L520">520</a>         configureParts(encParts, properties, <strong class="jxr_keyword">null</strong>, false, false);
+<a class="jxr_linenumber" name="L521" href="#L521">521</a> 
+<a class="jxr_linenumber" name="L522" href="#L522">522</a>         String encSymcAlgo = getString(ConfigurationConstants.ENC_SYM_ALGO, config);
+<a class="jxr_linenumber" name="L523" href="#L523">523</a>         properties.setEncryptionSymAlgorithm(encSymcAlgo);
+<a class="jxr_linenumber" name="L524" href="#L524">524</a> 
+<a class="jxr_linenumber" name="L525" href="#L525">525</a>         String encKeyTransport = getString(ConfigurationConstants.ENC_KEY_TRANSPORT, config);
+<a class="jxr_linenumber" name="L526" href="#L526">526</a>         properties.setEncryptionKeyTransportAlgorithm(encKeyTransport);
 <a class="jxr_linenumber" name="L527" href="#L527">527</a> 
-<a class="jxr_linenumber" name="L528" href="#L528">528</a>         Object encParts = config.get(ConfigurationConstants.ENCRYPTION_PARTS);
-<a class="jxr_linenumber" name="L529" href="#L529">529</a>         configureParts(encParts, properties, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">true</strong>, false);
+<a class="jxr_linenumber" name="L528" href="#L528">528</a>         String encDigestAlgo = getString(ConfigurationConstants.ENC_DIGEST_ALGO, config);
+<a class="jxr_linenumber" name="L529" href="#L529">529</a>         properties.setEncryptionKeyTransportDigestAlgorithm(encDigestAlgo);
 <a class="jxr_linenumber" name="L530" href="#L530">530</a> 
-<a class="jxr_linenumber" name="L531" href="#L531">531</a>         encParts = config.get(ConfigurationConstants.OPTIONAL_ENCRYPTION_PARTS);
-<a class="jxr_linenumber" name="L532" href="#L532">532</a>         configureParts(encParts, properties, <strong class="jxr_keyword">null</strong>, false, false);
+<a class="jxr_linenumber" name="L531" href="#L531">531</a>         String encMGFAlgo = getString(ConfigurationConstants.ENC_MGF_ALGO, config);
+<a class="jxr_linenumber" name="L532" href="#L532">532</a>         properties.setEncryptionKeyTransportMGFAlgorithm(encMGFAlgo);
 <a class="jxr_linenumber" name="L533" href="#L533">533</a> 
-<a class="jxr_linenumber" name="L534" href="#L534">534</a>         String encSymcAlgo = getString(ConfigurationConstants.ENC_SYM_ALGO, config);
-<a class="jxr_linenumber" name="L535" href="#L535">535</a>         properties.setEncryptionSymAlgorithm(encSymcAlgo);
-<a class="jxr_linenumber" name="L536" href="#L536">536</a> 
-<a class="jxr_linenumber" name="L537" href="#L537">537</a>         String encKeyTransport = getString(ConfigurationConstants.ENC_KEY_TRANSPORT, config);
-<a class="jxr_linenumber" name="L538" href="#L538">538</a>         properties.setEncryptionKeyTransportAlgorithm(encKeyTransport);
-<a class="jxr_linenumber" name="L539" href="#L539">539</a> 
-<a class="jxr_linenumber" name="L540" href="#L540">540</a>         String encDigestAlgo = getString(ConfigurationConstants.ENC_DIGEST_ALGO, config);
-<a class="jxr_linenumber" name="L541" href="#L541">541</a>         properties.setEncryptionKeyTransportDigestAlgorithm(encDigestAlgo);
-<a class="jxr_linenumber" name="L542" href="#L542">542</a> 
-<a class="jxr_linenumber" name="L543" href="#L543">543</a>         String encMGFAlgo = getString(ConfigurationConstants.ENC_MGF_ALGO, config);
-<a class="jxr_linenumber" name="L544" href="#L544">544</a>         properties.setEncryptionKeyTransportMGFAlgorithm(encMGFAlgo);
-<a class="jxr_linenumber" name="L545" href="#L545">545</a> 
-<a class="jxr_linenumber" name="L546" href="#L546">546</a>         <em class="jxr_comment">// Subject Cert Constraints</em>
-<a class="jxr_linenumber" name="L547" href="#L547">547</a>         String certConstraints =
-<a class="jxr_linenumber" name="L548" href="#L548">548</a>             getString(ConfigurationConstants.SIG_SUBJECT_CERT_CONSTRAINTS, config);
-<a class="jxr_linenumber" name="L549" href="#L549">549</a>         <strong class="jxr_keyword">if</strong> (certConstraints != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L550" href="#L550">550</a>             String[] certConstraintsList = certConstraints.split(<span class="jxr_string">","</span>);
-<a class="jxr_linenumber" name="L551" href="#L551">551</a>             <strong class="jxr_keyword">if</strong> (certConstraintsList != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L552" href="#L552">552</a>                 Collection&lt;Pattern&gt; subjectCertConstraints =
-<a class="jxr_linenumber" name="L553" href="#L553">553</a>                     <strong class="jxr_keyword">new</strong> ArrayList&lt;&gt;(certConstraintsList.length);
-<a class="jxr_linenumber" name="L554" href="#L554">554</a>                 <strong class="jxr_keyword">for</strong> (String certConstraint : certConstraintsList) {
-<a class="jxr_linenumber" name="L555" href="#L555">555</a>                     <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="L556" href="#L556">556</a>                         subjectCertConstraints.add(Pattern.compile(certConstraint.trim()));
-<a class="jxr_linenumber" name="L557" href="#L557">557</a>                     } <strong class="jxr_keyword">catch</strong> (PatternSyntaxException ex) {
-<a class="jxr_linenumber" name="L558" href="#L558">558</a>                         LOG.error(ex.getMessage(), ex);
-<a class="jxr_linenumber" name="L559" href="#L559">559</a>                     }
-<a class="jxr_linenumber" name="L560" href="#L560">560</a>                 }
-<a class="jxr_linenumber" name="L561" href="#L561">561</a>                 properties.setSubjectCertConstraints(subjectCertConstraints);
-<a class="jxr_linenumber" name="L562" href="#L562">562</a>             }
-<a class="jxr_linenumber" name="L563" href="#L563">563</a>         }
-<a class="jxr_linenumber" name="L564" href="#L564">564</a> 
-<a class="jxr_linenumber" name="L565" href="#L565">565</a>         properties.setUtTTL(decodeTimeToLive(config, false));
-<a class="jxr_linenumber" name="L566" href="#L566">566</a>         properties.setUtFutureTTL(decodeFutureTimeToLive(config, false));
-<a class="jxr_linenumber" name="L567" href="#L567">567</a>         properties.setTimestampTTL(decodeTimeToLive(config, <strong class="jxr_keyword">true</strong>));
-<a class="jxr_linenumber" name="L568" href="#L568">568</a>         properties.setTimeStampFutureTTL(decodeFutureTimeToLive(config, <strong class="jxr_keyword">true</strong>));
-<a class="jxr_linenumber" name="L569" href="#L569">569</a> 
-<a class="jxr_linenumber" name="L570" href="#L570">570</a>         @SuppressWarnings(<span class="jxr_string">"unchecked"</span>)
-<a class="jxr_linenumber" name="L571" href="#L571">571</a>         <strong class="jxr_keyword">final</strong> Map&lt;QName, Validator&gt; validatorMap =
-<a class="jxr_linenumber" name="L572" href="#L572">572</a>             (Map&lt;QName, Validator&gt;)config.get(ConfigurationConstants.VALIDATOR_MAP);
-<a class="jxr_linenumber" name="L573" href="#L573">573</a>         <strong class="jxr_keyword">if</strong> (validatorMap != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L574" href="#L574">574</a>             <strong class="jxr_keyword">for</strong> (Map.Entry&lt;QName, Validator&gt; entry : validatorMap.entrySet()) {
-<a class="jxr_linenumber" name="L575" href="#L575">575</a>                 properties.addValidator(entry.getKey(), entry.getValue());
-<a class="jxr_linenumber" name="L576" href="#L576">576</a>             }
+<a class="jxr_linenumber" name="L534" href="#L534">534</a>         <em class="jxr_comment">// Subject Cert Constraints</em>
+<a class="jxr_linenumber" name="L535" href="#L535">535</a>         String certConstraints =
+<a class="jxr_linenumber" name="L536" href="#L536">536</a>             getString(ConfigurationConstants.SIG_SUBJECT_CERT_CONSTRAINTS, config);
+<a class="jxr_linenumber" name="L537" href="#L537">537</a>         <strong class="jxr_keyword">if</strong> (certConstraints != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L538" href="#L538">538</a>             String[] certConstraintsList = certConstraints.split(<span class="jxr_string">","</span>);
+<a class="jxr_linenumber" name="L539" href="#L539">539</a>             <strong class="jxr_keyword">if</strong> (certConstraintsList != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L540" href="#L540">540</a>                 Collection&lt;Pattern&gt; subjectCertConstraints =
+<a class="jxr_linenumber" name="L541" href="#L541">541</a>                     <strong class="jxr_keyword">new</strong> ArrayList&lt;&gt;(certConstraintsList.length);
+<a class="jxr_linenumber" name="L542" href="#L542">542</a>                 <strong class="jxr_keyword">for</strong> (String certConstraint : certConstraintsList) {
+<a class="jxr_linenumber" name="L543" href="#L543">543</a>                     <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L544" href="#L544">544</a>                         subjectCertConstraints.add(Pattern.compile(certConstraint.trim()));
+<a class="jxr_linenumber" name="L545" href="#L545">545</a>                     } <strong class="jxr_keyword">catch</strong> (PatternSyntaxException ex) {
+<a class="jxr_linenumber" name="L546" href="#L546">546</a>                         LOG.error(ex.getMessage(), ex);
+<a class="jxr_linenumber" name="L547" href="#L547">547</a>                     }
+<a class="jxr_linenumber" name="L548" href="#L548">548</a>                 }
+<a class="jxr_linenumber" name="L549" href="#L549">549</a>                 properties.setSubjectCertConstraints(subjectCertConstraints);
+<a class="jxr_linenumber" name="L550" href="#L550">550</a>             }
+<a class="jxr_linenumber" name="L551" href="#L551">551</a>         }
+<a class="jxr_linenumber" name="L552" href="#L552">552</a> 
+<a class="jxr_linenumber" name="L553" href="#L553">553</a>         properties.setUtTTL(decodeTimeToLive(config, false));
+<a class="jxr_linenumber" name="L554" href="#L554">554</a>         properties.setUtFutureTTL(decodeFutureTimeToLive(config, false));
+<a class="jxr_linenumber" name="L555" href="#L555">555</a>         properties.setTimestampTTL(decodeTimeToLive(config, <strong class="jxr_keyword">true</strong>));
+<a class="jxr_linenumber" name="L556" href="#L556">556</a>         properties.setTimeStampFutureTTL(decodeFutureTimeToLive(config, <strong class="jxr_keyword">true</strong>));
+<a class="jxr_linenumber" name="L557" href="#L557">557</a> 
+<a class="jxr_linenumber" name="L558" href="#L558">558</a>         @SuppressWarnings(<span class="jxr_string">"unchecked"</span>)
+<a class="jxr_linenumber" name="L559" href="#L559">559</a>         <strong class="jxr_keyword">final</strong> Map&lt;QName, Validator&gt; validatorMap =
+<a class="jxr_linenumber" name="L560" href="#L560">560</a>             (Map&lt;QName, Validator&gt;)config.get(ConfigurationConstants.VALIDATOR_MAP);
+<a class="jxr_linenumber" name="L561" href="#L561">561</a>         <strong class="jxr_keyword">if</strong> (validatorMap != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L562" href="#L562">562</a>             <strong class="jxr_keyword">for</strong> (Map.Entry&lt;QName, Validator&gt; entry : validatorMap.entrySet()) {
+<a class="jxr_linenumber" name="L563" href="#L563">563</a>                 properties.addValidator(entry.getKey(), entry.getValue());
+<a class="jxr_linenumber" name="L564" href="#L564">564</a>             }
+<a class="jxr_linenumber" name="L565" href="#L565">565</a>         }
+<a class="jxr_linenumber" name="L566" href="#L566">566</a> 
+<a class="jxr_linenumber" name="L567" href="#L567">567</a>         <a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a> nonceCache =
+<a class="jxr_linenumber" name="L568" href="#L568">568</a>             (<a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a>)config.get(ConfigurationConstants.NONCE_CACHE_INSTANCE);
+<a class="jxr_linenumber" name="L569" href="#L569">569</a>         <strong class="jxr_keyword">if</strong> (nonceCache != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L570" href="#L570">570</a>             properties.setNonceReplayCache(nonceCache);
+<a class="jxr_linenumber" name="L571" href="#L571">571</a>         }
+<a class="jxr_linenumber" name="L572" href="#L572">572</a> 
+<a class="jxr_linenumber" name="L573" href="#L573">573</a>         <a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a> timestampCache =
+<a class="jxr_linenumber" name="L574" href="#L574">574</a>             (<a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a>)config.get(ConfigurationConstants.TIMESTAMP_CACHE_INSTANCE);
+<a class="jxr_linenumber" name="L575" href="#L575">575</a>         <strong class="jxr_keyword">if</strong> (timestampCache != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L576" href="#L576">576</a>             properties.setTimestampReplayCache(timestampCache);
 <a class="jxr_linenumber" name="L577" href="#L577">577</a>         }
 <a class="jxr_linenumber" name="L578" href="#L578">578</a> 
-<a class="jxr_linenumber" name="L579" href="#L579">579</a>         <a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a> nonceCache =
-<a class="jxr_linenumber" name="L580" href="#L580">580</a>             (<a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a>)config.get(ConfigurationConstants.NONCE_CACHE_INSTANCE);
-<a class="jxr_linenumber" name="L581" href="#L581">581</a>         <strong class="jxr_keyword">if</strong> (nonceCache != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L582" href="#L582">582</a>             properties.setNonceReplayCache(nonceCache);
+<a class="jxr_linenumber" name="L579" href="#L579">579</a>         <a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a> samlOneTimeUseCache =
+<a class="jxr_linenumber" name="L580" href="#L580">580</a>             (<a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a>)config.get(ConfigurationConstants.SAML_ONE_TIME_USE_CACHE_INSTANCE);
+<a class="jxr_linenumber" name="L581" href="#L581">581</a>         <strong class="jxr_keyword">if</strong> (samlOneTimeUseCache != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L582" href="#L582">582</a>             properties.setSamlOneTimeUseReplayCache(samlOneTimeUseCache);
 <a class="jxr_linenumber" name="L583" href="#L583">583</a>         }
 <a class="jxr_linenumber" name="L584" href="#L584">584</a> 
-<a class="jxr_linenumber" name="L585" href="#L585">585</a>         <a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a> timestampCache =
-<a class="jxr_linenumber" name="L586" href="#L586">586</a>             (<a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a>)config.get(ConfigurationConstants.TIMESTAMP_CACHE_INSTANCE);
-<a class="jxr_linenumber" name="L587" href="#L587">587</a>         <strong class="jxr_keyword">if</strong> (timestampCache != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L588" href="#L588">588</a>             properties.setTimestampReplayCache(timestampCache);
+<a class="jxr_linenumber" name="L585" href="#L585">585</a>         String derivedSignatureKeyLength = getString(ConfigurationConstants.DERIVED_SIGNATURE_KEY_LENGTH, config);
+<a class="jxr_linenumber" name="L586" href="#L586">586</a>         <strong class="jxr_keyword">if</strong> (derivedSignatureKeyLength != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L587" href="#L587">587</a>             <strong class="jxr_keyword">int</strong> sigLength = Integer.parseInt(derivedSignatureKeyLength);
+<a class="jxr_linenumber" name="L588" href="#L588">588</a>             properties.setDerivedSignatureKeyLength(sigLength);
 <a class="jxr_linenumber" name="L589" href="#L589">589</a>         }
 <a class="jxr_linenumber" name="L590" href="#L590">590</a> 
-<a class="jxr_linenumber" name="L591" href="#L591">591</a>         <a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a> samlOneTimeUseCache =
-<a class="jxr_linenumber" name="L592" href="#L592">592</a>             (<a href="../../../../../org/apache/wss4j/common/cache/ReplayCache.html">ReplayCache</a>)config.get(ConfigurationConstants.SAML_ONE_TIME_USE_CACHE_INSTANCE);
-<a class="jxr_linenumber" name="L593" href="#L593">593</a>         <strong class="jxr_keyword">if</strong> (samlOneTimeUseCache != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L594" href="#L594">594</a>             properties.setSamlOneTimeUseReplayCache(samlOneTimeUseCache);
+<a class="jxr_linenumber" name="L591" href="#L591">591</a>         String derivedEncryptionKeyLength = getString(ConfigurationConstants.DERIVED_ENCRYPTION_KEY_LENGTH, config);
+<a class="jxr_linenumber" name="L592" href="#L592">592</a>         <strong class="jxr_keyword">if</strong> (derivedEncryptionKeyLength != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L593" href="#L593">593</a>             <strong class="jxr_keyword">int</strong> encLength = Integer.parseInt(derivedEncryptionKeyLength);
+<a class="jxr_linenumber" name="L594" href="#L594">594</a>             properties.setDerivedEncryptionKeyLength(encLength);
 <a class="jxr_linenumber" name="L595" href="#L595">595</a>         }
 <a class="jxr_linenumber" name="L596" href="#L596">596</a> 
-<a class="jxr_linenumber" name="L597" href="#L597">597</a>         String derivedSignatureKeyLength = getString(ConfigurationConstants.DERIVED_SIGNATURE_KEY_LENGTH, config);
-<a class="jxr_linenumber" name="L598" href="#L598">598</a>         <strong class="jxr_keyword">if</strong> (derivedSignatureKeyLength != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L599" href="#L599">599</a>             <strong class="jxr_keyword">int</strong> sigLength = Integer.parseInt(derivedSignatureKeyLength);
-<a class="jxr_linenumber" name="L600" href="#L600">600</a>             properties.setDerivedSignatureKeyLength(sigLength);
-<a class="jxr_linenumber" name="L601" href="#L601">601</a>         }
-<a class="jxr_linenumber" name="L602" href="#L602">602</a> 
-<a class="jxr_linenumber" name="L603" href="#L603">603</a>         String derivedEncryptionKeyLength = getString(ConfigurationConstants.DERIVED_ENCRYPTION_KEY_LENGTH, config);
-<a class="jxr_linenumber" name="L604" href="#L604">604</a>         <strong class="jxr_keyword">if</strong> (derivedEncryptionKeyLength != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L605" href="#L605">605</a>             <strong class="jxr_keyword">int</strong> encLength = Integer.parseInt(derivedEncryptionKeyLength);
-<a class="jxr_linenumber" name="L606" href="#L606">606</a>             properties.setDerivedEncryptionKeyLength(encLength);
-<a class="jxr_linenumber" name="L607" href="#L607">607</a>         }
-<a class="jxr_linenumber" name="L608" href="#L608">608</a> 
-<a class="jxr_linenumber" name="L609" href="#L609">609</a>         String derivedTokenReference = getString(ConfigurationConstants.DERIVED_TOKEN_REFERENCE, config);
-<a class="jxr_linenumber" name="L610" href="#L610">610</a>         WSSConstants.DerivedKeyTokenReference convertedDerivedTokenReference =
-<a class="jxr_linenumber" name="L611" href="#L611">611</a>             convertDerivedReference(derivedTokenReference);
-<a class="jxr_linenumber" name="L612" href="#L612">612</a>         <strong class="jxr_keyword">if</strong> (convertedDerivedTokenReference != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L613" href="#L613">613</a>             properties.setDerivedKeyTokenReference(convertedDerivedTokenReference);
-<a class="jxr_linenumber" name="L614" href="#L614">614</a>         }
-<a class="jxr_linenumber" name="L615" href="#L615">615</a> 
-<a class="jxr_linenumber" name="L616" href="#L616">616</a>         String derivedKeyIdentifier = getString(ConfigurationConstants.DERIVED_TOKEN_KEY_ID, config);
-<a class="jxr_linenumber" name="L617" href="#L617">617</a>         WSSecurityTokenConstants.KeyIdentifier convertedDerivedKeyIdentifier =
-<a class="jxr_linenumber" name="L618" href="#L618">618</a>             convertKeyIdentifier(derivedKeyIdentifier);
-<a class="jxr_linenumber" name="L619" href="#L619">619</a>         <strong class="jxr_keyword">if</strong> (convertedDerivedKeyIdentifier != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L620" href="#L620">620</a>             properties.setDerivedKeyKeyIdentifier(convertedDerivedKeyIdentifier);
-<a class="jxr_linenumber" name="L621" href="#L621">621</a>         }
-<a class="jxr_linenumber" name="L622" href="#L622">622</a>     }
-<a class="jxr_linenumber" name="L623" href="#L623">623</a>     
-<a class="jxr_linenumber" name="L624" href="#L624">624</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> configureParts(Object secureParts, <a href="../../../../../org/apache/wss4j/stax/ext/WSSSecurityProperties.html">WSSSecurityProperties</a> properties,
-<a class="jxr_linenumber" name="L625" href="#L625">625</a>                                        String digestAlgo, <strong class="jxr_keyword">boolean</strong> required, <strong class="jxr_keyword">boolean</strong> signature) {
-<a class="jxr_linenumber" name="L626" href="#L626">626</a>         <strong class="jxr_keyword">if</strong> (secureParts != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L627" href="#L627">627</a>             <strong class="jxr_keyword">if</strong> (secureParts instanceof String) {
-<a class="jxr_linenumber" name="L628" href="#L628">628</a>                 List&lt;SecurePart&gt; parts = <strong class="jxr_keyword">new</strong> ArrayList&lt;&gt;();
-<a class="jxr_linenumber" name="L629" href="#L629">629</a>                 splitEncParts((String)secureParts, parts, WSSConstants.NS_SOAP11);
-<a class="jxr_linenumber" name="L630" href="#L630">630</a>                 <strong class="jxr_keyword">for</strong> (SecurePart part : parts) {
-<a class="jxr_linenumber" name="L631" href="#L631">631</a>                     part.setRequired(required);
-<a class="jxr_linenumber" name="L632" href="#L632">632</a>                     <strong class="jxr_keyword">if</strong> (signature) {
-<a class="jxr_linenumber" name="L633" href="#L633">633</a>                         part.setDigestMethod(digestAlgo);
-<a class="jxr_linenumber" name="L634" href="#L634">634</a>                         properties.addSignaturePart(part);
-<a class="jxr_linenumber" name="L635" href="#L635">635</a>                     } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L636" href="#L636">636</a>                         properties.addEncryptionPart(part);
-<a class="jxr_linenumber" name="L637" href="#L637">637</a>                     }
-<a class="jxr_linenumber" name="L638" href="#L638">638</a>                 }
-<a class="jxr_linenumber" name="L639" href="#L639">639</a>             } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (secureParts instanceof List&lt;?&gt;) {
-<a class="jxr_linenumber" name="L640" href="#L640">640</a>                 List&lt;?&gt; sigPartsList = (List&lt;?&gt;)secureParts;
-<a class="jxr_linenumber" name="L641" href="#L641">641</a>                 <strong class="jxr_keyword">for</strong> (Object obj : sigPartsList) {
-<a class="jxr_linenumber" name="L642" href="#L642">642</a>                     <strong class="jxr_keyword">if</strong> (obj instanceof SecurePart) {
-<a class="jxr_linenumber" name="L643" href="#L643">643</a>                         SecurePart securePart = (SecurePart)obj;
-<a class="jxr_linenumber" name="L644" href="#L644">644</a>                         securePart.setRequired(required);
-<a class="jxr_linenumber" name="L645" href="#L645">645</a>                         <strong class="jxr_keyword">if</strong> (signature) {
-<a class="jxr_linenumber" name="L646" href="#L646">646</a>                             securePart.setDigestMethod(digestAlgo);
-<a class="jxr_linenumber" name="L647" href="#L647">647</a>                             properties.addSignaturePart(securePart);
-<a class="jxr_linenumber" name="L648" href="#L648">648</a>                         } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L649" href="#L649">649</a>                             properties.addEncryptionPart(securePart);
-<a class="jxr_linenumber" name="L650" href="#L650">650</a>                         }
-<a class="jxr_linenumber" name="L651" href="#L651">651</a>                     }
-<a class="jxr_linenumber" name="L652" href="#L652">652</a>                 }
-<a class="jxr_linenumber" name="L653" href="#L653">653</a>             }
-<a class="jxr_linenumber" name="L654" href="#L654">654</a>         }
-<a class="jxr_linenumber" name="L655" href="#L655">655</a>     }
-<a class="jxr_linenumber" name="L656" href="#L656">656</a> 
-<a class="jxr_linenumber" name="L657" href="#L657">657</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> WSSConstants.DerivedKeyTokenReference convertDerivedReference(String derivedTokenReference) {
-<a class="jxr_linenumber" name="L658" href="#L658">658</a>         <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"EncryptedKey"</span>.equals(derivedTokenReference)) {
-<a class="jxr_linenumber" name="L659" href="#L659">659</a>            <strong class="jxr_keyword">return</strong> WSSConstants.DerivedKeyTokenReference.EncryptedKey;
-<a class="jxr_linenumber" name="L660" href="#L660">660</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"DirectReference"</span>.equals(derivedTokenReference)) {
-<a class="jxr_linenumber" name="L661" href="#L661">661</a>             <strong class="jxr_keyword">return</strong> WSSConstants.DerivedKeyTokenReference.DirectReference;
-<a class="jxr_linenumber" name="L662" href="#L662">662</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"SecurityContextToken"</span>.equals(derivedTokenReference)) {
-<a class="jxr_linenumber" name="L663" href="#L663">663</a>             <strong class="jxr_keyword">return</strong> WSSConstants.DerivedKeyTokenReference.SecurityContextToken;
-<a class="jxr_linenumber" name="L664" href="#L664">664</a>         }
-<a class="jxr_linenumber" name="L665" href="#L665">665</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L666" href="#L666">666</a>     }
-<a class="jxr_linenumber" name="L667" href="#L667">667</a> 
-<a class="jxr_linenumber" name="L668" href="#L668">668</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> WSSecurityTokenConstants.KeyIdentifier convertKeyIdentifier(String keyIdentifier) {
-<a class="jxr_linenumber" name="L669" href="#L669">669</a>         <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"IssuerSerial"</span>.equals(keyIdentifier)) {
-<a class="jxr_linenumber" name="L670" href="#L670">670</a>            <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KeyIdentifier_IssuerSerial;
-<a class="jxr_linenumber" name="L671" href="#L671">671</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"DirectReference"</span>.equals(keyIdentifier)) {
-<a class="jxr_linenumber" name="L672" href="#L672">672</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KEYIDENTIFIER_SECURITY_TOKEN_DIRECT_REFERENCE;
-<a class="jxr_linenumber" name="L673" href="#L673">673</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"X509KeyIdentifier"</span>.equals(keyIdentifier)) {
-<a class="jxr_linenumber" name="L674" href="#L674">674</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KeyIdentifier_X509KeyIdentifier;
-<a class="jxr_linenumber" name="L675" href="#L675">675</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"Thumbprint"</span>.equals(keyIdentifier)) {
-<a class="jxr_linenumber" name="L676" href="#L676">676</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KEYIDENTIFIER_THUMBPRINT_IDENTIFIER;
-<a class="jxr_linenumber" name="L677" href="#L677">677</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"SKIKeyIdentifier"</span>.equals(keyIdentifier)) {
-<a class="jxr_linenumber" name="L678" href="#L678">678</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KeyIdentifier_SkiKeyIdentifier;
-<a class="jxr_linenumber" name="L679" href="#L679">679</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"EncryptedKeySHA1"</span>.equals(keyIdentifier)) {
-<a class="jxr_linenumber" name="L680" href="#L680">680</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KEYIDENTIFIER_ENCRYPTED_KEY_SHA1_IDENTIFIER;
-<a class="jxr_linenumber" name="L681" href="#L681">681</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"EncryptedKey"</span>.equals(keyIdentifier)) {
-<a class="jxr_linenumber" name="L682" href="#L682">682</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KeyIdentifier_EncryptedKey;
-<a class="jxr_linenumber" name="L683" href="#L683">683</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"KeyValue"</span>.equals(keyIdentifier)) {
-<a class="jxr_linenumber" name="L684" href="#L684">684</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KeyIdentifier_KeyValue;
-<a class="jxr_linenumber" name="L685" href="#L685">685</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"KerberosSHA1"</span>.equals(keyIdentifier)) {
-<a class="jxr_linenumber" name="L686" href="#L686">686</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KEYIDENTIFIER_KERBEROS_SHA1_IDENTIFIER;
-<a class="jxr_linenumber" name="L687" href="#L687">687</a>         }
-<a class="jxr_linenumber" name="L688" href="#L688">688</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L689" href="#L689">689</a>     }
-<a class="jxr_linenumber" name="L690" href="#L690">690</a> 
-<a class="jxr_linenumber" name="L691" href="#L691">691</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">int</strong> decodeTimeToLive(Map&lt;String, Object&gt; config, <strong class="jxr_keyword">boolean</strong> timestamp) {
-<a class="jxr_linenumber" name="L692" href="#L692">692</a>         String tag = ConfigurationConstants.TTL_TIMESTAMP;
-<a class="jxr_linenumber" name="L693" href="#L693">693</a>         <strong class="jxr_keyword">if</strong> (!timestamp) {
-<a class="jxr_linenumber" name="L694" href="#L694">694</a>             tag = ConfigurationConstants.TTL_USERNAMETOKEN;
-<a class="jxr_linenumber" name="L695" href="#L695">695</a>         }
-<a class="jxr_linenumber" name="L696" href="#L696">696</a>         String ttl = getString(tag, config);
-<a class="jxr_linenumber" name="L697" href="#L697">697</a>         <strong class="jxr_keyword">int</strong> defaultTimeToLive = 300;
-<a class="jxr_linenumber" name="L698" href="#L698">698</a>         <strong class="jxr_keyword">if</strong> (ttl != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L699" href="#L699">699</a>             <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="L700" href="#L700">700</a>                 <strong class="jxr_keyword">int</strong> ttlI = Integer.parseInt(ttl);
-<a class="jxr_linenumber" name="L701" href="#L701">701</a>                 <strong class="jxr_keyword">if</strong> (ttlI &lt; 0) {
-<a class="jxr_linenumber" name="L702" href="#L702">702</a>                     <strong class="jxr_keyword">return</strong> defaultTimeToLive;
-<a class="jxr_linenumber" name="L703" href="#L703">703</a>                 }
-<a class="jxr_linenumber" name="L704" href="#L704">704</a>                 <strong class="jxr_keyword">return</strong> ttlI;
-<a class="jxr_linenumber" name="L705" href="#L705">705</a>             } <strong class="jxr_keyword">catch</strong> (NumberFormatException e) {
-<a class="jxr_linenumber" name="L706" href="#L706">706</a>                 <strong class="jxr_keyword">return</strong> defaultTimeToLive;
-<a class="jxr_linenumber" name="L707" href="#L707">707</a>             }
-<a class="jxr_linenumber" name="L708" href="#L708">708</a>         }
-<a class="jxr_linenumber" name="L709" href="#L709">709</a>         <strong class="jxr_keyword">return</strong> defaultTimeToLive;
-<a class="jxr_linenumber" name="L710" href="#L710">710</a>     }
-<a class="jxr_linenumber" name="L711" href="#L711">711</a> 
-<a class="jxr_linenumber" name="L712" href="#L712">712</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">int</strong> decodeFutureTimeToLive(Map&lt;String, Object&gt; config, <strong class="jxr_keyword">boolean</strong> timestamp) {
-<a class="jxr_linenumber" name="L713" href="#L713">713</a>         String tag = ConfigurationConstants.TTL_FUTURE_TIMESTAMP;
-<a class="jxr_linenumber" name="L714" href="#L714">714</a>         <strong class="jxr_keyword">if</strong> (!timestamp) {
-<a class="jxr_linenumber" name="L715" href="#L715">715</a>             tag = ConfigurationConstants.TTL_FUTURE_USERNAMETOKEN;
-<a class="jxr_linenumber" name="L716" href="#L716">716</a>         }
-<a class="jxr_linenumber" name="L717" href="#L717">717</a>         String ttl = getString(tag, config);
-<a class="jxr_linenumber" name="L718" href="#L718">718</a>         <strong class="jxr_keyword">int</strong> defaultFutureTimeToLive = 60;
-<a class="jxr_linenumber" name="L719" href="#L719">719</a>         <strong class="jxr_keyword">if</strong> (ttl != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L720" href="#L720">720</a>             <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="L721" href="#L721">721</a>                 <strong class="jxr_keyword">int</strong> ttlI = Integer.parseInt(ttl);
-<a class="jxr_linenumber" name="L722" href="#L722">722</a>                 <strong class="jxr_keyword">if</strong> (ttlI &lt; 0) {
-<a class="jxr_linenumber" name="L723" href="#L723">723</a>                     <strong class="jxr_keyword">return</strong> defaultFutureTimeToLive;
-<a class="jxr_linenumber" name="L724" href="#L724">724</a>                 }
-<a class="jxr_linenumber" name="L725" href="#L725">725</a>                 <strong class="jxr_keyword">return</strong> ttlI;
-<a class="jxr_linenumber" name="L726" href="#L726">726</a>             } <strong class="jxr_keyword">catch</strong> (NumberFormatException e) {
-<a class="jxr_linenumber" name="L727" href="#L727">727</a>                 <strong class="jxr_keyword">return</strong> defaultFutureTimeToLive;
-<a class="jxr_linenumber" name="L728" href="#L728">728</a>             }
-<a class="jxr_linenumber" name="L729" href="#L729">729</a>         }
-<a class="jxr_linenumber" name="L730" href="#L730">730</a>         <strong class="jxr_keyword">return</strong> defaultFutureTimeToLive;
-<a class="jxr_linenumber" name="L731" href="#L731">731</a>     }
-<a class="jxr_linenumber" name="L732" href="#L732">732</a> 
-<a class="jxr_linenumber" name="L733" href="#L733">733</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> String getString(String tag, Map&lt;String, Object&gt; config) {
-<a class="jxr_linenumber" name="L734" href="#L734">734</a>         Object value = config.get(tag);
-<a class="jxr_linenumber" name="L735" href="#L735">735</a>         <strong class="jxr_keyword">if</strong> (value instanceof String) {
-<a class="jxr_linenumber" name="L736" href="#L736">736</a>             <strong class="jxr_keyword">return</strong> (String)value;
-<a class="jxr_linenumber" name="L737" href="#L737">737</a>         }
-<a class="jxr_linenumber" name="L738" href="#L738">738</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L739" href="#L739">739</a>     }
+<a class="jxr_linenumber" name="L597" href="#L597">597</a>         String derivedTokenReference = getString(ConfigurationConstants.DERIVED_TOKEN_REFERENCE, config);
+<a class="jxr_linenumber" name="L598" href="#L598">598</a>         WSSConstants.DerivedKeyTokenReference convertedDerivedTokenReference =
+<a class="jxr_linenumber" name="L599" href="#L599">599</a>             convertDerivedReference(derivedTokenReference);
+<a class="jxr_linenumber" name="L600" href="#L600">600</a>         <strong class="jxr_keyword">if</strong> (convertedDerivedTokenReference != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L601" href="#L601">601</a>             properties.setDerivedKeyTokenReference(convertedDerivedTokenReference);
+<a class="jxr_linenumber" name="L602" href="#L602">602</a>         }
+<a class="jxr_linenumber" name="L603" href="#L603">603</a> 
+<a class="jxr_linenumber" name="L604" href="#L604">604</a>         String derivedKeyIdentifier = getString(ConfigurationConstants.DERIVED_TOKEN_KEY_ID, config);
+<a class="jxr_linenumber" name="L605" href="#L605">605</a>         WSSecurityTokenConstants.KeyIdentifier convertedDerivedKeyIdentifier =
+<a class="jxr_linenumber" name="L606" href="#L606">606</a>             convertKeyIdentifier(derivedKeyIdentifier);
+<a class="jxr_linenumber" name="L607" href="#L607">607</a>         <strong class="jxr_keyword">if</strong> (convertedDerivedKeyIdentifier != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L608" href="#L608">608</a>             properties.setDerivedKeyKeyIdentifier(convertedDerivedKeyIdentifier);
+<a class="jxr_linenumber" name="L609" href="#L609">609</a>         }
+<a class="jxr_linenumber" name="L610" href="#L610">610</a>     }
+<a class="jxr_linenumber" name="L611" href="#L611">611</a>     
+<a class="jxr_linenumber" name="L612" href="#L612">612</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> configureParts(Object secureParts, <a href="../../../../../org/apache/wss4j/stax/ext/WSSSecurityProperties.html">WSSSecurityProperties</a> properties,
+<a class="jxr_linenumber" name="L613" href="#L613">613</a>                                        String digestAlgo, <strong class="jxr_keyword">boolean</strong> required, <strong class="jxr_keyword">boolean</strong> signature) {
+<a class="jxr_linenumber" name="L614" href="#L614">614</a>         <strong class="jxr_keyword">if</strong> (secureParts != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L615" href="#L615">615</a>             <strong class="jxr_keyword">if</strong> (secureParts instanceof String) {
+<a class="jxr_linenumber" name="L616" href="#L616">616</a>                 List&lt;SecurePart&gt; parts = <strong class="jxr_keyword">new</strong> ArrayList&lt;&gt;();
+<a class="jxr_linenumber" name="L617" href="#L617">617</a>                 splitEncParts((String)secureParts, parts, WSSConstants.NS_SOAP11);
+<a class="jxr_linenumber" name="L618" href="#L618">618</a>                 <strong class="jxr_keyword">for</strong> (SecurePart part : parts) {
+<a class="jxr_linenumber" name="L619" href="#L619">619</a>                     part.setRequired(required);
+<a class="jxr_linenumber" name="L620" href="#L620">620</a>                     <strong class="jxr_keyword">if</strong> (signature) {
+<a class="jxr_linenumber" name="L621" href="#L621">621</a>                         part.setDigestMethod(digestAlgo);
+<a class="jxr_linenumber" name="L622" href="#L622">622</a>                         properties.addSignaturePart(part);
+<a class="jxr_linenumber" name="L623" href="#L623">623</a>                     } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L624" href="#L624">624</a>                         properties.addEncryptionPart(part);
+<a class="jxr_linenumber" name="L625" href="#L625">625</a>                     }
+<a class="jxr_linenumber" name="L626" href="#L626">626</a>                 }
+<a class="jxr_linenumber" name="L627" href="#L627">627</a>             } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (secureParts instanceof List&lt;?&gt;) {
+<a class="jxr_linenumber" name="L628" href="#L628">628</a>                 List&lt;?&gt; sigPartsList = (List&lt;?&gt;)secureParts;
+<a class="jxr_linenumber" name="L629" href="#L629">629</a>                 <strong class="jxr_keyword">for</strong> (Object obj : sigPartsList) {
+<a class="jxr_linenumber" name="L630" href="#L630">630</a>                     <strong class="jxr_keyword">if</strong> (obj instanceof SecurePart) {
+<a class="jxr_linenumber" name="L631" href="#L631">631</a>                         SecurePart securePart = (SecurePart)obj;
+<a class="jxr_linenumber" name="L632" href="#L632">632</a>                         securePart.setRequired(required);
+<a class="jxr_linenumber" name="L633" href="#L633">633</a>                         <strong class="jxr_keyword">if</strong> (signature) {
+<a class="jxr_linenumber" name="L634" href="#L634">634</a>                             securePart.setDigestMethod(digestAlgo);
+<a class="jxr_linenumber" name="L635" href="#L635">635</a>                             properties.addSignaturePart(securePart);
+<a class="jxr_linenumber" name="L636" href="#L636">636</a>                         } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L637" href="#L637">637</a>                             properties.addEncryptionPart(securePart);
+<a class="jxr_linenumber" name="L638" href="#L638">638</a>                         }
+<a class="jxr_linenumber" name="L639" href="#L639">639</a>                     }
+<a class="jxr_linenumber" name="L640" href="#L640">640</a>                 }
+<a class="jxr_linenumber" name="L641" href="#L641">641</a>             }
+<a class="jxr_linenumber" name="L642" href="#L642">642</a>         }
+<a class="jxr_linenumber" name="L643" href="#L643">643</a>     }
+<a class="jxr_linenumber" name="L644" href="#L644">644</a> 
+<a class="jxr_linenumber" name="L645" href="#L645">645</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> WSSConstants.DerivedKeyTokenReference convertDerivedReference(String derivedTokenReference) {
+<a class="jxr_linenumber" name="L646" href="#L646">646</a>         <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"EncryptedKey"</span>.equals(derivedTokenReference)) {
+<a class="jxr_linenumber" name="L647" href="#L647">647</a>            <strong class="jxr_keyword">return</strong> WSSConstants.DerivedKeyTokenReference.EncryptedKey;
+<a class="jxr_linenumber" name="L648" href="#L648">648</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"DirectReference"</span>.equals(derivedTokenReference)) {
+<a class="jxr_linenumber" name="L649" href="#L649">649</a>             <strong class="jxr_keyword">return</strong> WSSConstants.DerivedKeyTokenReference.DirectReference;
+<a class="jxr_linenumber" name="L650" href="#L650">650</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"SecurityContextToken"</span>.equals(derivedTokenReference)) {
+<a class="jxr_linenumber" name="L651" href="#L651">651</a>             <strong class="jxr_keyword">return</strong> WSSConstants.DerivedKeyTokenReference.SecurityContextToken;
+<a class="jxr_linenumber" name="L652" href="#L652">652</a>         }
+<a class="jxr_linenumber" name="L653" href="#L653">653</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L654" href="#L654">654</a>     }
+<a class="jxr_linenumber" name="L655" href="#L655">655</a> 
+<a class="jxr_linenumber" name="L656" href="#L656">656</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> WSSecurityTokenConstants.KeyIdentifier convertKeyIdentifier(String keyIdentifier) {
+<a class="jxr_linenumber" name="L657" href="#L657">657</a>         <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"IssuerSerial"</span>.equals(keyIdentifier)) {
+<a class="jxr_linenumber" name="L658" href="#L658">658</a>            <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KeyIdentifier_IssuerSerial;
+<a class="jxr_linenumber" name="L659" href="#L659">659</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"DirectReference"</span>.equals(keyIdentifier)) {
+<a class="jxr_linenumber" name="L660" href="#L660">660</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KEYIDENTIFIER_SECURITY_TOKEN_DIRECT_REFERENCE;
+<a class="jxr_linenumber" name="L661" href="#L661">661</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"X509KeyIdentifier"</span>.equals(keyIdentifier)) {
+<a class="jxr_linenumber" name="L662" href="#L662">662</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KeyIdentifier_X509KeyIdentifier;
+<a class="jxr_linenumber" name="L663" href="#L663">663</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"Thumbprint"</span>.equals(keyIdentifier)) {
+<a class="jxr_linenumber" name="L664" href="#L664">664</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KEYIDENTIFIER_THUMBPRINT_IDENTIFIER;
+<a class="jxr_linenumber" name="L665" href="#L665">665</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"SKIKeyIdentifier"</span>.equals(keyIdentifier)) {
+<a class="jxr_linenumber" name="L666" href="#L666">666</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KeyIdentifier_SkiKeyIdentifier;
+<a class="jxr_linenumber" name="L667" href="#L667">667</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"EncryptedKeySHA1"</span>.equals(keyIdentifier)) {
+<a class="jxr_linenumber" name="L668" href="#L668">668</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KEYIDENTIFIER_ENCRYPTED_KEY_SHA1_IDENTIFIER;
+<a class="jxr_linenumber" name="L669" href="#L669">669</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"EncryptedKey"</span>.equals(keyIdentifier)) {
+<a class="jxr_linenumber" name="L670" href="#L670">670</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KeyIdentifier_EncryptedKey;
+<a class="jxr_linenumber" name="L671" href="#L671">671</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"KeyValue"</span>.equals(keyIdentifier)) {
+<a class="jxr_linenumber" name="L672" href="#L672">672</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KeyIdentifier_KeyValue;
+<a class="jxr_linenumber" name="L673" href="#L673">673</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"KerberosSHA1"</span>.equals(keyIdentifier)) {
+<a class="jxr_linenumber" name="L674" href="#L674">674</a>             <strong class="jxr_keyword">return</strong> WSSecurityTokenConstants.KEYIDENTIFIER_KERBEROS_SHA1_IDENTIFIER;
+<a class="jxr_linenumber" name="L675" href="#L675">675</a>         }
+<a class="jxr_linenumber" name="L676" href="#L676">676</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L677" href="#L677">677</a>     }
+<a class="jxr_linenumber" name="L678" href="#L678">678</a> 
+<a class="jxr_linenumber" name="L679" href="#L679">679</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">int</strong> decodeTimeToLive(Map&lt;String, Object&gt; config, <strong class="jxr_keyword">boolean</strong> timestamp) {
+<a class="jxr_linenumber" name="L680" href="#L680">680</a>         String tag = ConfigurationConstants.TTL_TIMESTAMP;
+<a class="jxr_linenumber" name="L681" href="#L681">681</a>         <strong class="jxr_keyword">if</strong> (!timestamp) {
+<a class="jxr_linenumber" name="L682" href="#L682">682</a>             tag = ConfigurationConstants.TTL_USERNAMETOKEN;
+<a class="jxr_linenumber" name="L683" href="#L683">683</a>         }
+<a class="jxr_linenumber" name="L684" href="#L684">684</a>         String ttl = getString(tag, config);
+<a class="jxr_linenumber" name="L685" href="#L685">685</a>         <strong class="jxr_keyword">int</strong> defaultTimeToLive = 300;
+<a class="jxr_linenumber" name="L686" href="#L686">686</a>         <strong class="jxr_keyword">if</strong> (ttl != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L687" href="#L687">687</a>             <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L688" href="#L688">688</a>                 <strong class="jxr_keyword">int</strong> ttlI = Integer.parseInt(ttl);
+<a class="jxr_linenumber" name="L689" href="#L689">689</a>                 <strong class="jxr_keyword">if</strong> (ttlI &lt; 0) {
+<a class="jxr_linenumber" name="L690" href="#L690">690</a>                     <strong class="jxr_keyword">return</strong> defaultTimeToLive;
+<a class="jxr_linenumber" name="L691" href="#L691">691</a>                 }
+<a class="jxr_linenumber" name="L692" href="#L692">692</a>                 <strong class="jxr_keyword">return</strong> ttlI;
+<a class="jxr_linenumber" name="L693" href="#L693">693</a>             } <strong class="jxr_keyword">catch</strong> (NumberFormatException e) {
+<a class="jxr_linenumber" name="L694" href="#L694">694</a>                 <strong class="jxr_keyword">return</strong> defaultTimeToLive;
+<a class="jxr_linenumber" name="L695" href="#L695">695</a>             }
+<a class="jxr_linenumber" name="L696" href="#L696">696</a>         }
+<a class="jxr_linenumber" name="L697" href="#L697">697</a>         <strong class="jxr_keyword">return</strong> defaultTimeToLive;
+<a class="jxr_linenumber" name="L698" href="#L698">698</a>     }
+<a class="jxr_linenumber" name="L699" href="#L699">699</a> 
+<a class="jxr_linenumber" name="L700" href="#L700">700</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">int</strong> decodeFutureTimeToLive(Map&lt;String, Object&gt; config, <strong class="jxr_keyword">boolean</strong> timestamp) {
+<a class="jxr_linenumber" name="L701" href="#L701">701</a>         String tag = ConfigurationConstants.TTL_FUTURE_TIMESTAMP;
+<a class="jxr_linenumber" name="L702" href="#L702">702</a>         <strong class="jxr_keyword">if</strong> (!timestamp) {
+<a class="jxr_linenumber" name="L703" href="#L703">703</a>             tag = ConfigurationConstants.TTL_FUTURE_USERNAMETOKEN;
+<a class="jxr_linenumber" name="L704" href="#L704">704</a>         }
+<a class="jxr_linenumber" name="L705" href="#L705">705</a>         String ttl = getString(tag, config);
+<a class="jxr_linenumber" name="L706" href="#L706">706</a>         <strong class="jxr_keyword">int</strong> defaultFutureTimeToLive = 60;
+<a class="jxr_linenumber" name="L707" href="#L707">707</a>         <strong class="jxr_keyword">if</strong> (ttl != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L708" href="#L708">708</a>             <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L709" href="#L709">709</a>                 <strong class="jxr_keyword">int</strong> ttlI = Integer.parseInt(ttl);
+<a class="jxr_linenumber" name="L710" href="#L710">710</a>                 <strong class="jxr_keyword">if</strong> (ttlI &lt; 0) {
+<a class="jxr_linenumber" name="L711" href="#L711">711</a>                     <strong class="jxr_keyword">return</strong> defaultFutureTimeToLive;
+<a class="jxr_linenumber" name="L712" href="#L712">712</a>                 }
+<a class="jxr_linenumber" name="L713" href="#L713">713</a>                 <strong class="jxr_keyword">return</strong> ttlI;
+<a class="jxr_linenumber" name="L714" href="#L714">714</a>             } <strong class="jxr_keyword">catch</strong> (NumberFormatException e) {
+<a class="jxr_linenumber" name="L715" href="#L715">715</a>                 <strong class="jxr_keyword">return</strong> defaultFutureTimeToLive;
+<a class="jxr_linenumber" name="L716" href="#L716">716</a>             }
+<a class="jxr_linenumber" name="L717" href="#L717">717</a>         }
+<a class="jxr_linenumber" name="L718" href="#L718">718</a>         <strong class="jxr_keyword">return</strong> defaultFutureTimeToLive;
+<a class="jxr_linenumber" name="L719" href="#L719">719</a>     }
+<a class="jxr_linenumber" name="L720" href="#L720">720</a> 
+<a class="jxr_linenumber" name="L721" href="#L721">721</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> String getString(String tag, Map&lt;String, Object&gt; config) {
+<a class="jxr_linenumber" name="L722" href="#L722">722</a>         Object value = config.get(tag);
+<a class="jxr_linenumber" name="L723" href="#L723">723</a>         <strong class="jxr_keyword">if</strong> (value instanceof String) {
+<a class="jxr_linenumber" name="L724" href="#L724">724</a>             <strong class="jxr_keyword">return</strong> (String)value;
+<a class="jxr_linenumber" name="L725" href="#L725">725</a>         }
+<a class="jxr_linenumber" name="L726" href="#L726">726</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L727" href="#L727">727</a>     }
+<a class="jxr_linenumber" name="L728" href="#L728">728</a> 
+<a class="jxr_linenumber" name="L729" href="#L729">729</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> decodeBooleanConfigValue(
+<a class="jxr_linenumber" name="L730" href="#L730">730</a>         String tag, <strong class="jxr_keyword">boolean</strong> defaultToTrue, Map&lt;String, Object&gt; config
+<a class="jxr_linenumber" name="L731" href="#L731">731</a>     ) {
+<a class="jxr_linenumber" name="L732" href="#L732">732</a>         String value = getString(tag, config);
+<a class="jxr_linenumber" name="L733" href="#L733">733</a> 
+<a class="jxr_linenumber" name="L734" href="#L734">734</a>         <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"0"</span>.equals(value) || <span class="jxr_string">"false"</span>.equals(value)) {
+<a class="jxr_linenumber" name="L735" href="#L735">735</a>             <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="L736" href="#L736">736</a>         }
+<a class="jxr_linenumber" name="L737" href="#L737">737</a>         <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"1"</span>.equals(value) || <span class="jxr_string">"true"</span>.equals(value)) {
+<a class="jxr_linenumber" name="L738" href="#L738">738</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L739" href="#L739">739</a>         }
 <a class="jxr_linenumber" name="L740" href="#L740">740</a> 
-<a class="jxr_linenumber" name="L741" href="#L741">741</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> decodeBooleanConfigValue(
-<a class="jxr_linenumber" name="L742" href="#L742">742</a>         String tag, <strong class="jxr_keyword">boolean</strong> defaultToTrue, Map&lt;String, Object&gt; config
-<a class="jxr_linenumber" name="L743" href="#L743">743</a>     ) {
-<a class="jxr_linenumber" name="L744" href="#L744">744</a>         String value = getString(tag, config);
-<a class="jxr_linenumber" name="L745" href="#L745">745</a> 
-<a class="jxr_linenumber" name="L746" href="#L746">746</a>         <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"0"</span>.equals(value) || <span class="jxr_string">"false"</span>.equals(value)) {
-<a class="jxr_linenumber" name="L747" href="#L747">747</a>             <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="L748" href="#L748">748</a>         }
-<a class="jxr_linenumber" name="L749" href="#L749">749</a>         <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"1"</span>.equals(value) || <span class="jxr_string">"true"</span>.equals(value)) {
-<a class="jxr_linenumber" name="L750" href="#L750">750</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L751" href="#L751">751</a>         }
-<a class="jxr_linenumber" name="L752" href="#L752">752</a> 
-<a class="jxr_linenumber" name="L753" href="#L753">753</a>         <strong class="jxr_keyword">return</strong> defaultToTrue;
-<a class="jxr_linenumber" name="L754" href="#L754">754</a>     }
-<a class="jxr_linenumber" name="L755" href="#L755">755</a> 
-<a class="jxr_linenumber" name="L756" href="#L756">756</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> splitEncParts(String tmpS, List&lt;SecurePart&gt; parts, String soapNS) {
-<a class="jxr_linenumber" name="L757" href="#L757">757</a>         SecurePart encPart = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L758" href="#L758">758</a>         String[] rawParts = tmpS.split(<span class="jxr_string">";"</span>);
-<a class="jxr_linenumber" name="L759" href="#L759">759</a> 
-<a class="jxr_linenumber" name="L760" href="#L760">760</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; rawParts.length; i++) {
-<a class="jxr_linenumber" name="L761" href="#L761">761</a>             String[] partDef = rawParts[i].split(<span class="jxr_string">"}"</span>);
-<a class="jxr_linenumber" name="L762" href="#L762">762</a> 
-<a class="jxr_linenumber" name="L763" href="#L763">763</a>             <strong class="jxr_keyword">if</strong> (partDef.length == 1) {
-<a class="jxr_linenumber" name="L764" href="#L764">764</a>                 QName qname = <strong class="jxr_keyword">new</strong> QName(soapNS, partDef[0].trim());
-<a class="jxr_linenumber" name="L765" href="#L765">765</a>                 encPart = <strong class="jxr_keyword">new</strong> SecurePart(qname, SecurePart.Modifier.Content);
-<a class="jxr_linenumber" name="L766" href="#L766">766</a>             } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (partDef.length == 2) {
-<a class="jxr_linenumber" name="L767" href="#L767">767</a>                 String mode = partDef[0].trim().substring(1);
-<a class="jxr_linenumber" name="L768" href="#L768">768</a>                 String element = partDef[1].trim();
-<a class="jxr_linenumber" name="L769" href="#L769">769</a> 
-<a class="jxr_linenumber" name="L770" href="#L770">770</a>                 <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"Content"</span>.equals(mode)) {
-<a class="jxr_linenumber" name="L771" href="#L771">771</a>                     encPart = <strong class="jxr_keyword">new</strong> SecurePart(element, SecurePart.Modifier.Content);
-<a class="jxr_linenumber" name="L772" href="#L772">772</a>                 } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L773" href="#L773">773</a>                     encPart = <strong class="jxr_keyword">new</strong> SecurePart(element, SecurePart.Modifier.Element);
-<a class="jxr_linenumber" name="L774" href="#L774">774</a>                 }
-<a class="jxr_linenumber" name="L775" href="#L775">775</a>             } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (partDef.length == 3) {
-<a class="jxr_linenumber" name="L776" href="#L776">776</a>                 String mode = partDef[0].trim();
-<a class="jxr_linenumber" name="L777" href="#L777">777</a>                 <strong class="jxr_keyword">if</strong> (mode.length() &lt;= 1) {
-<a class="jxr_linenumber" name="L778" href="#L778">778</a>                     mode = <span class="jxr_string">"Content"</span>;
-<a class="jxr_linenumber" name="L779" href="#L779">779</a>                 } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L780" href="#L780">780</a>                     mode = mode.substring(1);
-<a class="jxr_linenumber" name="L781" href="#L781">781</a>                 }
-<a class="jxr_linenumber" name="L782" href="#L782">782</a>                 String nmSpace = partDef[1].trim();
-<a class="jxr_linenumber" name="L783" href="#L783">783</a>                 <strong class="jxr_keyword">if</strong> (nmSpace.length() &lt;= 1) {
-<a class="jxr_linenumber" name="L784" href="#L784">784</a>                     nmSpace = soapNS;
-<a class="jxr_linenumber" name="L785" href="#L785">785</a>                 } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L786" href="#L786">786</a>                     nmSpace = nmSpace.substring(1);
-<a class="jxr_linenumber" name="L787" href="#L787">787</a>                     <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"Null"</span>.equals(nmSpace)) {
-<a class="jxr_linenumber" name="L788" href="#L788">788</a>                         nmSpace = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L789" href="#L789">789</a>                     }
-<a class="jxr_linenumber" name="L790" href="#L790">790</a>                 }
-<a class="jxr_linenumber" name="L791" href="#L791">791</a>                 String element = partDef[2].trim();
+<a class="jxr_linenumber" name="L741" href="#L741">741</a>         <strong class="jxr_keyword">return</strong> defaultToTrue;
+<a class="jxr_linenumber" name="L742" href="#L742">742</a>     }
+<a class="jxr_linenumber" name="L743" href="#L743">743</a> 
+<a class="jxr_linenumber" name="L744" href="#L744">744</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> splitEncParts(String tmpS, List&lt;SecurePart&gt; parts, String soapNS) {
+<a class="jxr_linenumber" name="L745" href="#L745">745</a>         SecurePart encPart = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L746" href="#L746">746</a>         String[] rawParts = tmpS.split(<span class="jxr_string">";"</span>);
+<a class="jxr_linenumber" name="L747" href="#L747">747</a> 
+<a class="jxr_linenumber" name="L748" href="#L748">748</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; rawParts.length; i++) {
+<a class="jxr_linenumber" name="L749" href="#L749">749</a>             String[] partDef = rawParts[i].split(<span class="jxr_string">"}"</span>);
+<a class="jxr_linenumber" name="L750" href="#L750">750</a> 
+<a class="jxr_linenumber" name="L751" href="#L751">751</a>             <strong class="jxr_keyword">if</strong> (partDef.length == 1) {
+<a class="jxr_linenumber" name="L752" href="#L752">752</a>                 QName qname = <strong class="jxr_keyword">new</strong> QName(soapNS, partDef[0].trim());
+<a class="jxr_linenumber" name="L753" href="#L753">753</a>                 encPart = <strong class="jxr_keyword">new</strong> SecurePart(qname, SecurePart.Modifier.Content);
+<a class="jxr_linenumber" name="L754" href="#L754">754</a>             } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (partDef.length == 2) {
+<a class="jxr_linenumber" name="L755" href="#L755">755</a>                 String mode = partDef[0].trim().substring(1);
+<a class="jxr_linenumber" name="L756" href="#L756">756</a>                 String element = partDef[1].trim();
+<a class="jxr_linenumber" name="L757" href="#L757">757</a> 
+<a class="jxr_linenumber" name="L758" href="#L758">758</a>                 <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"Content"</span>.equals(mode)) {
+<a class="jxr_linenumber" name="L759" href="#L759">759</a>                     encPart = <strong class="jxr_keyword">new</strong> SecurePart(element, SecurePart.Modifier.Content);
+<a class="jxr_linenumber" name="L760" href="#L760">760</a>                 } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L761" href="#L761">761</a>                     encPart = <strong class="jxr_keyword">new</strong> SecurePart(element, SecurePart.Modifier.Element);
+<a class="jxr_linenumber" name="L762" href="#L762">762</a>                 }
+<a class="jxr_linenumber" name="L763" href="#L763">763</a>             } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (partDef.length == 3) {
+<a class="jxr_linenumber" name="L764" href="#L764">764</a>                 String mode = partDef[0].trim();
+<a class="jxr_linenumber" name="L765" href="#L765">765</a>                 <strong class="jxr_keyword">if</strong> (mode.length() &lt;= 1) {
+<a class="jxr_linenumber" name="L766" href="#L766">766</a>                     mode = <span class="jxr_string">"Content"</span>;
+<a class="jxr_linenumber" name="L767" href="#L767">767</a>                 } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L768" href="#L768">768</a>                     mode = mode.substring(1);
+<a class="jxr_linenumber" name="L769" href="#L769">769</a>                 }
+<a class="jxr_linenumber" name="L770" href="#L770">770</a>                 String nmSpace = partDef[1].trim();
+<a class="jxr_linenumber" name="L771" href="#L771">771</a>                 <strong class="jxr_keyword">if</strong> (nmSpace.length() &lt;= 1) {
+<a class="jxr_linenumber" name="L772" href="#L772">772</a>                     nmSpace = soapNS;
+<a class="jxr_linenumber" name="L773" href="#L773">773</a>                 } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L774" href="#L774">774</a>                     nmSpace = nmSpace.substring(1);
+<a class="jxr_linenumber" name="L775" href="#L775">775</a>                     <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"Null"</span>.equals(nmSpace)) {
+<a class="jxr_linenumber" name="L776" href="#L776">776</a>                         nmSpace = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L777" href="#L777">777</a>                     }
+<a class="jxr_linenumber" name="L778" href="#L778">778</a>                 }
+<a class="jxr_linenumber" name="L779" href="#L779">779</a>                 String element = partDef[2].trim();
+<a class="jxr_linenumber" name="L780" href="#L780">780</a> 
+<a class="jxr_linenumber" name="L781" href="#L781">781</a>                 QName qname = <strong class="jxr_keyword">new</strong> QName(nmSpace, element);
+<a class="jxr_linenumber" name="L782" href="#L782">782</a>                 <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"Content"</span>.equals(mode)) {
+<a class="jxr_linenumber" name="L783" href="#L783">783</a>                     encPart = <strong class="jxr_keyword">new</strong> SecurePart(qname, SecurePart.Modifier.Content);
+<a class="jxr_linenumber" name="L784" href="#L784">784</a>                 } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L785" href="#L785">785</a>                     encPart = <strong class="jxr_keyword">new</strong> SecurePart(qname, SecurePart.Modifier.Element);
+<a class="jxr_linenumber" name="L786" href="#L786">786</a>                 }
+<a class="jxr_linenumber" name="L787" href="#L787">787</a>             }
+<a class="jxr_linenumber" name="L788" href="#L788">788</a> 
+<a class="jxr_linenumber" name="L789" href="#L789">789</a>             parts.add(encPart);
+<a class="jxr_linenumber" name="L790" href="#L790">790</a>         }
+<a class="jxr_linenumber" name="L791" href="#L791">791</a>     }
 <a class="jxr_linenumber" name="L792" href="#L792">792</a> 
-<a class="jxr_linenumber" name="L793" href="#L793">793</a>                 QName qname = <strong class="jxr_keyword">new</strong> QName(nmSpace, element);
-<a class="jxr_linenumber" name="L794" href="#L794">794</a>                 <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"Content"</span>.equals(mode)) {
-<a class="jxr_linenumber" name="L795" href="#L795">795</a>                     encPart = <strong class="jxr_keyword">new</strong> SecurePart(qname, SecurePart.Modifier.Content);
-<a class="jxr_linenumber" name="L796" href="#L796">796</a>                 } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L797" href="#L797">797</a>                     encPart = <strong class="jxr_keyword">new</strong> SecurePart(qname, SecurePart.Modifier.Element);
-<a class="jxr_linenumber" name="L798" href="#L798">798</a>                 }
-<a class="jxr_linenumber" name="L799" href="#L799">799</a>             }
-<a class="jxr_linenumber" name="L800" href="#L800">800</a> 
-<a class="jxr_linenumber" name="L801" href="#L801">801</a>             parts.add(encPart);
-<a class="jxr_linenumber" name="L802" href="#L802">802</a>         }
-<a class="jxr_linenumber" name="L803" href="#L803">803</a>     }
-<a class="jxr_linenumber" name="L804" href="#L804">804</a> 
-<a class="jxr_linenumber" name="L805" href="#L805">805</a> }
+<a class="jxr_linenumber" name="L793" href="#L793">793</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2004&#x2013;2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>




Mime
View raw message