Modified: 
axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl/SAMLTokenIssuer.html
URL: 
http://svn.apache.org/viewvc/axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl/SAMLTokenIssuer.html?rev=1725383&r1=1725382&r2=1725383&view=diff
==============================================================================
--- 
axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl/SAMLTokenIssuer.html
 (original)
+++ 
axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl/SAMLTokenIssuer.html
 Mon Jan 18 23:07:55 2016
@@ -1 +1 @@
-<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 
1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";><html 
xmlns="http://www.w3.org/1999/xhtml"; lang="en"><head><meta 
http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link 
rel="stylesheet" href="../.resources/report.css" type="text/css"/><link 
rel="shortcut icon" href="../.resources/report.gif" 
type="image/gif"/><title>SAMLTokenIssuer</title><script type="text/javascript" 
src="../.resources/sort.js"></script></head><body 
onload="initialSort(['breadcrumb'])"><div class="breadcrumb" 
id="breadcrumb"><span class="right"><a href="../.sessions.html" 
class="el_session">Sessions</a></span><a href="../index.html" 
class="el_report">Coverage Report</a> &gt; <a href="index.html" 
class="el_package">org.apache.rahas.impl</a> &gt; <span 
class="el_class">SAMLTokenIssuer</span></div><h1>SAMLTokenIssuer</h1><table 
class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td 
class="sortable
 " id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" 
id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable 
ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" 
id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" 
id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" 
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" 
onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" 
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" 
onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" 
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" 
onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td
 class="bar">391 of 910</td><td class="ctr2">57%</td><td class="bar">36 of 
78</td><td class="ctr2">54%</td><td class="ctr1">32</td><td 
class="ctr2">53</td><td class="ctr1">86</td>
 <td class="ctr2">196</td><td class="ctr1">2</td><td 
class="ctr2">14</td></tr></tfoot><tbody><tr><td id="a4"><a 
href="SAMLTokenIssuer.java.html#L566" 
class="el_method">createSAMLAttributeStatement(Subject, RahasData, 
SAMLTokenIssuerConfig)</a></td><td class="bar" id="b0"><img 
src="../.resources/redbar.gif" width="48" height="10" title="125" 
alt="125"/></td><td class="ctr2" id="c12">0%</td><td class="bar" id="d1"><img 
src="../.resources/redbar.gif" width="17" height="10" title="6" 
alt="6"/></td><td class="ctr2" id="e6">0%</td><td class="ctr1" 
id="f1">4</td><td class="ctr2" id="g2">4</td><td class="ctr1" 
id="h0">33</td><td class="ctr2" id="i1">33</td><td class="ctr1" 
id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a 
href="SAMLTokenIssuer.java.html#L412" 
class="el_method">createAttributeAssertion(RahasData, KeyInfo, NameIdentifier, 
SAMLTokenIssuerConfig, Crypto, DateTime, DateTime)</a></td><td class="bar" 
id="b1"><img src="../.resources/redbar.gif" width="28" height="
 10" title="72" alt="72"/><img src="../.resources/greenbar.gif" width="26" 
height="10" title="67" alt="67"/></td><td class="ctr2" id="c10">48%</td><td 
class="bar" id="d3"><img src="../.resources/redbar.gif" width="8" height="10" 
title="3" alt="3"/><img src="../.resources/greenbar.gif" width="8" height="10" 
title="3" alt="3"/></td><td class="ctr2" id="e2">50%</td><td class="ctr1" 
id="f3">2</td><td class="ctr2" id="g3">4</td><td class="ctr1" 
id="h1">17</td><td class="ctr2" id="i2">32</td><td class="ctr1" 
id="j2">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a8"><a 
href="SAMLTokenIssuer.java.html#L74" 
class="el_method">issue(RahasData)</a></td><td class="bar" id="b2"><img 
src="../.resources/redbar.gif" width="21" height="10" title="55" alt="55"/><img 
src="../.resources/greenbar.gif" width="98" height="10" title="252" 
alt="252"/></td><td class="ctr2" id="c6">82%</td><td class="bar" id="d0"><img 
src="../.resources/redbar.gif" width="42" height="10" title="15" alt="15"/><img 
src=".
 ./.resources/greenbar.gif" width="77" height="10" title="27" 
alt="27"/></td><td class="ctr2" id="e1">64%</td><td class="ctr1" 
id="f0">15</td><td class="ctr2" id="g0">22</td><td class="ctr1" 
id="h3">7</td><td class="ctr2" id="i0">55</td><td class="ctr1" 
id="j3">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a3"><a 
href="SAMLTokenIssuer.java.html#L274" 
class="el_method">createHoKAssertion(SAMLTokenIssuerConfig, Document, Crypto, 
DateTime, DateTime, RahasData)</a></td><td class="bar" id="b3"><img 
src="../.resources/redbar.gif" width="17" height="10" title="45" alt="45"/><img 
src="../.resources/greenbar.gif" width="32" height="10" title="82" 
alt="82"/></td><td class="ctr2" id="c8">65%</td><td class="bar" id="d2"><img 
src="../.resources/redbar.gif" width="14" height="10" title="5" alt="5"/><img 
src="../.resources/greenbar.gif" width="14" height="10" title="5" 
alt="5"/></td><td class="ctr2" id="e3">50%</td><td class="ctr1" 
id="f2">4</td><td class="ctr2" id="g1">6</td><td class="ctr
 1" id="h4">7</td><td class="ctr2" id="i3">24</td><td class="ctr1" 
id="j4">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a2"><a 
href="SAMLTokenIssuer.java.html#L240" 
class="el_method">createBearerAssertion(SAMLTokenIssuerConfig, Document, 
Crypto, DateTime, DateTime, RahasData)</a></td><td class="bar" id="b4"><img 
src="../.resources/redbar.gif" width="15" height="10" title="40" alt="40"/><img 
src="../.resources/greenbar.gif" width="11" height="10" title="29" 
alt="29"/></td><td class="ctr2" id="c11">42%</td><td class="bar" id="d6"><img 
src="../.resources/redbar.gif" width="5" height="10" title="2" alt="2"/><img 
src="../.resources/greenbar.gif" width="5" height="10" title="2" 
alt="2"/></td><td class="ctr2" id="e4">50%</td><td class="ctr1" 
id="f4">2</td><td class="ctr2" id="g5">3</td><td class="ctr1" 
id="h2">10</td><td class="ctr2" id="i4">17</td><td class="ctr1" 
id="j5">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a1"><a 
href="SAMLTokenIssuer.java.html#L485" class="el_m
 ethod">createAuthAssertion(String, NameIdentifier, KeyInfo, 
SAMLTokenIssuerConfig, Crypto, DateTime, DateTime, RahasData)</a></td><td 
class="bar" id="b5"><img src="../.resources/redbar.gif" width="9" height="10" 
title="24" alt="24"/><img src="../.resources/greenbar.gif" width="14" 
height="10" title="37" alt="37"/></td><td class="ctr2" id="c9">61%</td><td 
class="bar" id="d4"><img src="../.resources/redbar.gif" width="8" height="10" 
title="3" alt="3"/><img src="../.resources/greenbar.gif" width="2" height="10" 
title="1" alt="1"/></td><td class="ctr2" id="e5">25%</td><td class="ctr1" 
id="f5">2</td><td class="ctr2" id="g6">3</td><td class="ctr1" id="h6">4</td><td 
class="ctr2" id="i5">12</td><td class="ctr1" id="j6">0</td><td class="ctr2" 
id="k5">1</td></tr><tr><td id="a5"><a href="SAMLTokenIssuer.java.html#L531" 
class="el_method">generateEphemeralKey(int)</a></td><td class="bar" 
id="b6"><img src="../.resources/redbar.gif" width="7" height="10" title="20" 
alt="20"/></td><td class="ctr2" 
 id="c13">0%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td 
class="ctr1" id="f7">1</td><td class="ctr2" id="g7">1</td><td class="ctr1" 
id="h5">6</td><td class="ctr2" id="i7">6</td><td class="ctr1" id="j1">1</td><td 
class="ctr2" id="k6">1</td></tr><tr><td id="a7"><a 
href="SAMLTokenIssuer.java.html#L378" 
class="el_method">getServiceCert(SAMLTokenIssuerConfig, Crypto, 
String)</a></td><td class="bar" id="b7"><img src="../.resources/redbar.gif" 
width="3" height="10" title="10" alt="10"/><img 
src="../.resources/greenbar.gif" width="10" height="10" title="28" 
alt="28"/></td><td class="ctr2" id="c7">74%</td><td class="bar" id="d5"><img 
src="../.resources/redbar.gif" width="5" height="10" title="2" alt="2"/><img 
src="../.resources/greenbar.gif" width="11" height="10" title="4" 
alt="4"/></td><td class="ctr2" id="e0">67%</td><td class="ctr1" 
id="f6">2</td><td class="ctr2" id="g4">4</td><td class="ctr1" id="h7">2</td><td 
class="ctr2" id="i6">8</td><td class="ctr1" id="j7">0</t
 d><td class="ctr2" id="k7">1</td></tr><tr><td id="a6"><a 
href="SAMLTokenIssuer.java.html#L519" 
class="el_method">getResponseAction(RahasData)</a></td><td class="bar" 
id="b8"><img src="../.resources/greenbar.gif" width="1" height="10" title="5" 
alt="5"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d8"/><td 
class="ctr2" id="e8">n/a</td><td class="ctr1" id="f8">0</td><td class="ctr2" 
id="g8">1</td><td class="ctr1" id="h8">0</td><td class="ctr2" 
id="i11">1</td><td class="ctr1" id="j8">0</td><td class="ctr2" 
id="k8">1</td></tr><tr><td id="a11"><a href="SAMLTokenIssuer.java.html#L544" 
class="el_method">setConfigurationFile(String)</a></td><td class="bar" 
id="b9"><img src="../.resources/greenbar.gif" width="1" height="10" title="4" 
alt="4"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d9"/><td 
class="ctr2" id="e9">n/a</td><td class="ctr1" id="f9">0</td><td class="ctr2" 
id="g9">1</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i8">2</td><td 
class="ctr1" i
 d="j9">0</td><td class="ctr2" id="k9">1</td></tr><tr><td id="a10"><a 
href="SAMLTokenIssuer.java.html#L552" 
class="el_method">setConfigurationElement(OMElement)</a></td><td class="bar" 
id="b10"><img src="../.resources/greenbar.gif" width="1" height="10" title="4" 
alt="4"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d10"/><td 
class="ctr2" id="e10">n/a</td><td class="ctr1" id="f10">0</td><td class="ctr2" 
id="g10">1</td><td class="ctr1" id="h10">0</td><td class="ctr2" 
id="i9">2</td><td class="ctr1" id="j10">0</td><td class="ctr2" 
id="k10">1</td></tr><tr><td id="a12"><a href="SAMLTokenIssuer.java.html#L559" 
class="el_method">setConfigurationParamName(String)</a></td><td class="bar" 
id="b11"><img src="../.resources/greenbar.gif" width="1" height="10" title="4" 
alt="4"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d11"/><td 
class="ctr2" id="e11">n/a</td><td class="ctr1" id="f11">0</td><td class="ctr2" 
id="g11">1</td><td class="ctr1" id="h11">0</td><td class="ct
 r2" id="i10">2</td><td class="ctr1" id="j11">0</td><td class="ctr2" 
id="k11">1</td></tr><tr><td id="a13"><a href="SAMLTokenIssuer.java.html#L71" 
class="el_method">static {...}</a></td><td class="bar" id="b12"><img 
src="../.resources/greenbar.gif" width="1" height="10" title="4" 
alt="4"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d12"/><td 
class="ctr2" id="e12">n/a</td><td class="ctr1" id="f12">0</td><td class="ctr2" 
id="g12">1</td><td class="ctr1" id="h12">0</td><td class="ctr2" 
id="i12">1</td><td class="ctr1" id="j12">0</td><td class="ctr2" 
id="k12">1</td></tr><tr><td id="a9"><a href="SAMLTokenIssuer.java.html#L59" 
class="el_method">SAMLTokenIssuer()</a></td><td class="bar" id="b13"><img 
src="../.resources/greenbar.gif" width="1" height="10" title="3" 
alt="3"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d13"/><td 
class="ctr2" id="e13">n/a</td><td class="ctr1" id="f13">0</td><td class="ctr2" 
id="g13">1</td><td class="ctr1" id="h13">0</td><td class="ctr
 2" id="i13">1</td><td class="ctr1" id="j13">0</td><td class="ctr2" 
id="k13">1</td></tr></tbody></table><div class="footer"><span 
class="right">Created with <a href="http://www.eclemma.org/jacoco";>JaCoCo</a> 
0.6.1.201212231917</span></div></body></html>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 
1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";><html 
xmlns="http://www.w3.org/1999/xhtml"; lang="en"><head><meta 
http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link 
rel="stylesheet" href="../.resources/report.css" type="text/css"/><link 
rel="shortcut icon" href="../.resources/report.gif" 
type="image/gif"/><title>SAMLTokenIssuer</title><script type="text/javascript" 
src="../.resources/sort.js"></script></head><body 
onload="initialSort(['breadcrumb'])"><div class="breadcrumb" 
id="breadcrumb"><span class="right"><a href="../.sessions.html" 
class="el_session">Sessions</a></span><a href="../index.html" 
class="el_report">Coverage Report</a> &gt; <a href="index.html" 
class="el_package">org.apache.rahas.impl</a> &gt; <span 
class="el_class">SAMLTokenIssuer</span></div><h1>SAMLTokenIssuer</h1><table 
class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td 
class="sortable
 " id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" 
id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable 
ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" 
id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" 
id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" 
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" 
onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" 
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" 
onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" 
onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" 
onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td
 class="bar">351 of 837</td><td class="ctr2">58%</td><td class="bar">33 of 
66</td><td class="ctr2">50%</td><td class="ctr1">26</td><td 
class="ctr2">47</td><td class="ctr1">76</td>
 <td class="ctr2">178</td><td class="ctr1">2</td><td 
class="ctr2">14</td></tr></tfoot><tbody><tr><td id="a4"><a 
href="SAMLTokenIssuer.java.html#L528" 
class="el_method">createSAMLAttributeStatement(Subject, RahasData, 
SAMLTokenIssuerConfig)</a></td><td class="bar" id="b0"><img 
src="../.resources/redbar.gif" width="49" height="10" title="125" 
alt="125"/></td><td class="ctr2" id="c12">0%</td><td class="bar" id="d1"><img 
src="../.resources/redbar.gif" width="21" height="10" title="6" 
alt="6"/></td><td class="ctr2" id="e6">0%</td><td class="ctr1" 
id="f1">4</td><td class="ctr2" id="g2">4</td><td class="ctr1" 
id="h0">33</td><td class="ctr2" id="i1">33</td><td class="ctr1" 
id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a8"><a 
href="SAMLTokenIssuer.java.html#L68" 
class="el_method">issue(RahasData)</a></td><td class="bar" id="b1"><img 
src="../.resources/redbar.gif" width="31" height="10" title="80" alt="80"/><img 
src="../.resources/greenbar.gif" width="88" height="10" title="222
 " alt="222"/></td><td class="ctr2" id="c8">74%</td><td class="bar" 
id="d0"><img src="../.resources/redbar.gif" width="52" height="10" title="15" 
alt="15"/><img src="../.resources/greenbar.gif" width="67" height="10" 
title="19" alt="19"/></td><td class="ctr2" id="e2">56%</td><td class="ctr1" 
id="f0">11</td><td class="ctr2" id="g0">18</td><td class="ctr1" 
id="h1">12</td><td class="ctr2" id="i0">53</td><td class="ctr1" 
id="j2">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a3"><a 
href="SAMLTokenIssuer.java.html#L255" 
class="el_method">createHoKAssertion(SAMLTokenIssuerConfig, Document, Crypto, 
DateTime, DateTime, RahasData)</a></td><td class="bar" id="b2"><img 
src="../.resources/redbar.gif" width="17" height="10" title="45" alt="45"/><img 
src="../.resources/greenbar.gif" width="32" height="10" title="82" 
alt="82"/></td><td class="ctr2" id="c9">65%</td><td class="bar" id="d2"><img 
src="../.resources/redbar.gif" width="17" height="10" title="5" alt="5"/><img 
src="../.resources/gre
 enbar.gif" width="17" height="10" title="5" alt="5"/></td><td class="ctr2" 
id="e3">50%</td><td class="ctr1" id="f2">4</td><td class="ctr2" 
id="g1">6</td><td class="ctr1" id="h3">7</td><td class="ctr2" 
id="i2">24</td><td class="ctr1" id="j3">0</td><td class="ctr2" 
id="k2">1</td></tr><tr><td id="a2"><a href="SAMLTokenIssuer.java.html#L221" 
class="el_method">createBearerAssertion(SAMLTokenIssuerConfig, Document, 
Crypto, DateTime, DateTime, RahasData)</a></td><td class="bar" id="b3"><img 
src="../.resources/redbar.gif" width="15" height="10" title="40" alt="40"/><img 
src="../.resources/greenbar.gif" width="11" height="10" title="29" 
alt="29"/></td><td class="ctr2" id="c11">42%</td><td class="bar" id="d5"><img 
src="../.resources/redbar.gif" width="7" height="10" title="2" alt="2"/><img 
src="../.resources/greenbar.gif" width="7" height="10" title="2" 
alt="2"/></td><td class="ctr2" id="e4">50%</td><td class="ctr1" 
id="f3">2</td><td class="ctr2" id="g4">3</td><td class="ctr1" id="h2">10</td>
 <td class="ctr2" id="i3">17</td><td class="ctr1" id="j4">0</td><td 
class="ctr2" id="k3">1</td></tr><tr><td id="a1"><a 
href="SAMLTokenIssuer.java.html#L447" 
class="el_method">createAuthAssertion(String, NameIdentifier, KeyInfo, 
SAMLTokenIssuerConfig, Crypto, DateTime, DateTime, RahasData)</a></td><td 
class="bar" id="b4"><img src="../.resources/redbar.gif" width="9" height="10" 
title="24" alt="24"/><img src="../.resources/greenbar.gif" width="14" 
height="10" title="37" alt="37"/></td><td class="ctr2" id="c10">61%</td><td 
class="bar" id="d3"><img src="../.resources/redbar.gif" width="10" height="10" 
title="3" alt="3"/><img src="../.resources/greenbar.gif" width="3" height="10" 
title="1" alt="1"/></td><td class="ctr2" id="e5">25%</td><td class="ctr1" 
id="f4">2</td><td class="ctr2" id="g5">3</td><td class="ctr1" id="h5">4</td><td 
class="ctr2" id="i5">12</td><td class="ctr1" id="j5">0</td><td class="ctr2" 
id="k4">1</td></tr><tr><td id="a5"><a href="SAMLTokenIssuer.java.html#L493" 
class="e
 l_method">generateEphemeralKey(int)</a></td><td class="bar" id="b5"><img 
src="../.resources/redbar.gif" width="7" height="10" title="20" 
alt="20"/></td><td class="ctr2" id="c13">0%</td><td class="bar" id="d7"/><td 
class="ctr2" id="e7">n/a</td><td class="ctr1" id="f6">1</td><td class="ctr2" 
id="g7">1</td><td class="ctr1" id="h4">6</td><td class="ctr2" id="i7">6</td><td 
class="ctr1" id="j1">1</td><td class="ctr2" id="k5">1</td></tr><tr><td 
id="a7"><a href="SAMLTokenIssuer.java.html#L359" 
class="el_method">getServiceCert(SAMLTokenIssuerConfig, Crypto, 
String)</a></td><td class="bar" id="b6"><img src="../.resources/redbar.gif" 
width="3" height="10" title="10" alt="10"/><img 
src="../.resources/greenbar.gif" width="11" height="10" title="28" 
alt="28"/></td><td class="ctr2" id="c7">74%</td><td class="bar" id="d4"><img 
src="../.resources/redbar.gif" width="7" height="10" title="2" alt="2"/><img 
src="../.resources/greenbar.gif" width="14" height="10" title="4" 
alt="4"/></td><td class="ctr2" 
 id="e1">67%</td><td class="ctr1" id="f5">2</td><td class="ctr2" 
id="g3">4</td><td class="ctr1" id="h6">2</td><td class="ctr2" id="i6">8</td><td 
class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td 
id="a0"><a href="SAMLTokenIssuer.java.html#L393" 
class="el_method">createAttributeAssertion(RahasData, KeyInfo, NameIdentifier, 
SAMLTokenIssuerConfig, Crypto, DateTime, DateTime)</a></td><td class="bar" 
id="b7"><img src="../.resources/redbar.gif" width="2" height="10" title="7" 
alt="7"/><img src="../.resources/greenbar.gif" width="25" height="10" 
title="64" alt="64"/></td><td class="ctr2" id="c6">90%</td><td class="bar" 
id="d6"><img src="../.resources/greenbar.gif" width="7" height="10" title="2" 
alt="2"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" 
id="f7">0</td><td class="ctr2" id="g6">2</td><td class="ctr1" id="h7">2</td><td 
class="ctr2" id="i4">16</td><td class="ctr1" id="j7">0</td><td class="ctr2" 
id="k7">1</td></tr><tr><td id="a6"><a href="SAMLTokenIssuer
 .java.html#L481" class="el_method">getResponseAction(RahasData)</a></td><td 
class="bar" id="b8"><img src="../.resources/greenbar.gif" width="1" height="10" 
title="5" alt="5"/></td><td class="ctr2" id="c0">100%</td><td class="bar" 
id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f8">0</td><td 
class="ctr2" id="g8">1</td><td class="ctr1" id="h8">0</td><td class="ctr2" 
id="i11">1</td><td class="ctr1" id="j8">0</td><td class="ctr2" 
id="k8">1</td></tr><tr><td id="a11"><a href="SAMLTokenIssuer.java.html#L506" 
class="el_method">setConfigurationFile(String)</a></td><td class="bar" 
id="b9"><img src="../.resources/greenbar.gif" width="1" height="10" title="4" 
alt="4"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d9"/><td 
class="ctr2" id="e9">n/a</td><td class="ctr1" id="f9">0</td><td class="ctr2" 
id="g9">1</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i8">2</td><td 
class="ctr1" id="j9">0</td><td class="ctr2" id="k9">1</td></tr><tr><td 
id="a10"><a href="SAM
 LTokenIssuer.java.html#L514" 
class="el_method">setConfigurationElement(OMElement)</a></td><td class="bar" 
id="b10"><img src="../.resources/greenbar.gif" width="1" height="10" title="4" 
alt="4"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d10"/><td 
class="ctr2" id="e10">n/a</td><td class="ctr1" id="f10">0</td><td class="ctr2" 
id="g10">1</td><td class="ctr1" id="h10">0</td><td class="ctr2" 
id="i9">2</td><td class="ctr1" id="j10">0</td><td class="ctr2" 
id="k10">1</td></tr><tr><td id="a12"><a href="SAMLTokenIssuer.java.html#L521" 
class="el_method">setConfigurationParamName(String)</a></td><td class="bar" 
id="b11"><img src="../.resources/greenbar.gif" width="1" height="10" title="4" 
alt="4"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d11"/><td 
class="ctr2" id="e11">n/a</td><td class="ctr1" id="f11">0</td><td class="ctr2" 
id="g11">1</td><td class="ctr1" id="h11">0</td><td class="ctr2" 
id="i10">2</td><td class="ctr1" id="j11">0</td><td class="ctr2" id="k11">1
 </td></tr><tr><td id="a13"><a href="SAMLTokenIssuer.java.html#L65" 
class="el_method">static {...}</a></td><td class="bar" id="b12"><img 
src="../.resources/greenbar.gif" width="1" height="10" title="4" 
alt="4"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d12"/><td 
class="ctr2" id="e12">n/a</td><td class="ctr1" id="f12">0</td><td class="ctr2" 
id="g12">1</td><td class="ctr1" id="h12">0</td><td class="ctr2" 
id="i12">1</td><td class="ctr1" id="j12">0</td><td class="ctr2" 
id="k12">1</td></tr><tr><td id="a9"><a href="SAMLTokenIssuer.java.html#L57" 
class="el_method">SAMLTokenIssuer()</a></td><td class="bar" id="b13"><img 
src="../.resources/greenbar.gif" width="1" height="10" title="3" 
alt="3"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d13"/><td 
class="ctr2" id="e13">n/a</td><td class="ctr1" id="f13">0</td><td class="ctr2" 
id="g13">1</td><td class="ctr1" id="h13">0</td><td class="ctr2" 
id="i13">1</td><td class="ctr1" id="j13">0</td><td class="ctr2" id="k13">1<
 /td></tr></tbody></table><div class="footer"><span class="right">Created with 
<a href="http://www.eclemma.org/jacoco";>JaCoCo</a> 
0.6.1.201212231917</span></div></body></html>
\ No newline at end of file

Modified: 
axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl/SAMLTokenIssuer.java.html
URL: 
http://svn.apache.org/viewvc/axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl/SAMLTokenIssuer.java.html?rev=1725383&r1=1725382&r2=1725383&view=diff
==============================================================================
--- 
axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl/SAMLTokenIssuer.java.html
 (original)
+++ 
axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl/SAMLTokenIssuer.java.html
 Mon Jan 18 23:07:55 2016
@@ -20,7 +20,6 @@ import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMNode;
 import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.description.Parameter;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.rahas.RahasConstants;
@@ -33,7 +32,6 @@ import org.apache.rahas.impl.util.*;
 import org.apache.ws.security.WSSecurityException;
 import org.apache.ws.security.WSUsernameTokenPrincipal;
 import org.apache.ws.security.components.crypto.Crypto;
-import org.apache.ws.security.components.crypto.CryptoFactory;
 import org.apache.ws.security.util.Loader;
 import org.apache.ws.security.util.XmlSchemaDateFormat;
 
@@ -56,7 +54,7 @@ import java.util.List;
 /**
  * Issuer to issue SAMl tokens
  */
-<span class="fc" id="L59">public class SAMLTokenIssuer implements TokenIssuer 
{</span>
+<span class="fc" id="L57">public class SAMLTokenIssuer implements TokenIssuer 
{</span>
 
     private String configParamName;
 
@@ -64,68 +62,51 @@ import java.util.List;
 
     private String configFile;
 
+<span class="fc" id="L65">    private static final Log log = 
LogFactory.getLog(SAMLTokenIssuer.class);</span>
 
-    //TODO move this to TrustUtil
-    private static final String  AUTHENTICATION_METHOD_PASSWORD = 
&quot;urn:oasis:names:tc:SAML:1.0:am:password&quot;;
+    public SOAPEnvelope issue(RahasData data) throws TrustException {
+<span class="fc" id="L68">        MessageContext inMsgCtx = 
data.getInMessageContext();</span>
 
-<span class="fc" id="L71">    private static final Log log = 
LogFactory.getLog(SAMLTokenIssuer.class);</span>
+<span class="fc" id="L70">        SAMLTokenIssuerConfig 
tokenIssuerConfiguration = 
CommonUtil.getTokenIssuerConfiguration(this.configElement,</span>
+                    this.configFile, 
inMsgCtx.getParameter(this.configParamName));
 
-    public SOAPEnvelope issue(RahasData data) throws TrustException {
-<span class="fc" id="L74">        MessageContext inMsgCtx = 
data.getInMessageContext();</span>
+<span class="pc bpc" id="L73" title="1 of 2 branches missed.">        if 
(tokenIssuerConfiguration == null) {</span>
 
-<span class="fc" id="L76">        SAMLTokenIssuerConfig config = null;</span>
-<span class="pc bpc" id="L77" title="1 of 2 branches missed.">        if 
(this.configElement != null) {</span>
-<span class="nc" id="L78">            config = new 
SAMLTokenIssuerConfig(configElement</span>
-                            
.getFirstChildWithName(SAMLTokenIssuerConfig.SAML_ISSUER_CONFIG));
-        }
-
-        // Look for the file
-<span class="pc bpc" id="L83" title="2 of 4 branches missed.">        if 
(config == null &amp;&amp; this.configFile != null) {</span>
-<span class="nc" id="L84">            config = new 
SAMLTokenIssuerConfig(this.configFile);</span>
-        }
-
-        // Look for the param
-<span class="pc bpc" id="L88" title="2 of 4 branches missed.">        if 
(config == null &amp;&amp; this.configParamName != null) {</span>
-<span class="fc" id="L89">            Parameter param = 
inMsgCtx.getParameter(this.configParamName);</span>
-<span class="pc bpc" id="L90" title="2 of 4 branches missed.">            if 
(param != null &amp;&amp; param.getParameterElement() != null) {</span>
-<span class="fc" id="L91">                config = new 
SAMLTokenIssuerConfig(param</span>
-                        .getParameterElement().getFirstChildWithName(
-                                SAMLTokenIssuerConfig.SAML_ISSUER_CONFIG));
-            } else {
-<span class="nc" id="L95">                throw new 
TrustException(&quot;expectedParameterMissing&quot;,</span>
-                        new String[] { this.configParamName });
+<span class="nc bnc" id="L75" title="All 2 branches missed.">            if 
(log.isDebugEnabled()) {</span>
+                String parameterName;
+<span class="nc bnc" id="L77" title="All 2 branches missed.">                
if (this.configElement != null) {</span>
+<span class="nc" id="L78">                    parameterName = &quot;OMElement 
- &quot; + this.configElement.toString();</span>
+<span class="nc bnc" id="L79" title="All 2 branches missed.">                } 
else if (this.configFile != null) {</span>
+<span class="nc" id="L80">                    parameterName = &quot;File - 
&quot; + this.configFile;</span>
+<span class="nc bnc" id="L81" title="All 2 branches missed.">                } 
else if (this.configParamName != null) {</span>
+<span class="nc" id="L82">                    parameterName = &quot;With 
message context parameter name - &quot; + this.configParamName;</span>
+                } else {
+<span class="nc" id="L84">                    parameterName = &quot;No method 
to build configurations&quot;;</span>
+                }
+
+<span class="nc" id="L87">                log.debug(&quot;Unable to build 
token configurations, &quot; + parameterName);</span>
             }
-        }
 
-<span class="pc bpc" id="L100" title="1 of 2 branches missed.">        if 
(config == null) {</span>
-<span class="nc" id="L101">            throw new 
TrustException(&quot;configurationIsNull&quot;);</span>
+<span class="nc" id="L90">            throw new 
TrustException(&quot;configurationIsNull&quot;);</span>
         }
 
-<span class="fc" id="L104">        SOAPEnvelope env = 
TrustUtil.createSOAPEnvelope(inMsgCtx</span>
+<span class="fc" id="L93">        SOAPEnvelope env = 
TrustUtil.createSOAPEnvelope(inMsgCtx</span>
                 .getEnvelope().getNamespace().getNamespaceURI());
 
-        Crypto crypto;
-<span class="pc bpc" id="L108" title="1 of 2 branches missed.">        if 
(config.cryptoElement != null) { // crypto props defined as elements</span>
-<span class="fc" id="L109">            crypto = 
CommonUtil.getCrypto(TrustUtil</span>
-                    .toProperties(config.cryptoElement), inMsgCtx
+<span class="fc" id="L96">        Crypto crypto = 
tokenIssuerConfiguration.getIssuerCrypto(inMsgCtx</span>
                     .getAxisService().getClassLoader());
 
-        } else { // crypto props defined in a properties file
-<span class="nc" id="L114">            crypto = 
CommonUtil.getCrypto(config.cryptoPropertiesFile, inMsgCtx</span>
-                    .getAxisService().getClassLoader());
-        }
-
         // Creation and expiration times
-<span class="fc" id="L119">        DateTime creationTime = new 
DateTime();</span>
-<span class="fc" id="L120">        DateTime expirationTime = new 
DateTime(creationTime.getMillis() + config.ttl);</span>
+<span class="fc" id="L100">        DateTime creationTime = new 
DateTime();</span>
+<span class="fc" id="L101">        DateTime expirationTime = new 
DateTime(creationTime.getMillis() + tokenIssuerConfiguration.getTtl());</span>
 
         // Get the document
-<span class="fc" id="L123">        Document doc = ((Element) 
env).getOwnerDocument();</span>
+<span class="fc" id="L104">        Document doc = ((Element) 
env).getOwnerDocument();</span>
 
         // Get the key size and create a new byte array of that size
-<span class="fc" id="L126">        int keySize = data.getKeysize();</span>
+<span class="fc" id="L107">        int keySize = data.getKeysize();</span>
 
-<span class="pc bpc" id="L128" title="1 of 2 branches missed.">        keySize 
= (keySize == -1) ? config.keySize : keySize;</span>
+<span class="pc bpc" id="L109" title="1 of 2 branches missed.">        keySize 
= (keySize == -1) ? tokenIssuerConfiguration.getKeySize() : keySize;</span>
 
         /*
          * Find the KeyType If the KeyType is SymmetricKey or PublicKey,
@@ -138,97 +119,97 @@ import java.util.List;
          * If the key type is missing we will issue a HoK assertion
          */
 
-<span class="fc" id="L141">        String keyType = data.getKeyType();</span>
+<span class="fc" id="L122">        String keyType = data.getKeyType();</span>
         Assertion assertion;
-<span class="pc bpc" id="L143" title="1 of 2 branches missed.">        if 
(keyType == null) {</span>
-<span class="nc" id="L144">            throw new 
TrustException(TrustException.INVALID_REQUEST,</span>
+<span class="pc bpc" id="L124" title="1 of 2 branches missed.">        if 
(keyType == null) {</span>
+<span class="nc" id="L125">            throw new 
TrustException(TrustException.INVALID_REQUEST,</span>
                     new String[] { &quot;Requested KeyType is missing&quot; });
         }
 
-<span class="fc bfc" id="L148" title="All 4 branches covered.">        if 
(keyType.endsWith(RahasConstants.KEY_TYPE_SYMM_KEY)</span>
+<span class="fc bfc" id="L129" title="All 4 branches covered.">        if 
(keyType.endsWith(RahasConstants.KEY_TYPE_SYMM_KEY)</span>
                 || keyType.endsWith(RahasConstants.KEY_TYPE_PUBLIC_KEY)) {
-<span class="fc" id="L150">            assertion = createHoKAssertion(config, 
doc, crypto,</span>
+<span class="fc" id="L131">            assertion = 
createHoKAssertion(tokenIssuerConfiguration, doc, crypto,</span>
                     creationTime, expirationTime, data);
-<span class="pc bpc" id="L152" title="1 of 2 branches missed.">        } else 
if (keyType.endsWith(RahasConstants.KEY_TYPE_BEARER)) {</span>
-<span class="fc" id="L153">            assertion = 
createBearerAssertion(config, doc, crypto,</span>
+<span class="pc bpc" id="L133" title="1 of 2 branches missed.">        } else 
if (keyType.endsWith(RahasConstants.KEY_TYPE_BEARER)) {</span>
+<span class="fc" id="L134">            assertion = 
createBearerAssertion(tokenIssuerConfiguration, doc, crypto,</span>
                     creationTime, expirationTime, data);
         } else {
-<span class="nc" id="L156">            throw new 
TrustException(&quot;unsupportedKeyType&quot;);</span>
+<span class="nc" id="L137">            throw new 
TrustException(&quot;unsupportedKeyType&quot;);</span>
         }
 
         OMElement rstrElem;
-<span class="fc" id="L160">        int wstVersion = data.getVersion();</span>
-<span class="fc bfc" id="L161" title="All 2 branches covered.">        if 
(RahasConstants.VERSION_05_02 == wstVersion) {</span>
-<span class="fc" id="L162">            rstrElem = 
TrustUtil.createRequestSecurityTokenResponseElement(</span>
+<span class="fc" id="L141">        int wstVersion = data.getVersion();</span>
+<span class="fc bfc" id="L142" title="All 2 branches covered.">        if 
(RahasConstants.VERSION_05_02 == wstVersion) {</span>
+<span class="fc" id="L143">            rstrElem = 
TrustUtil.createRequestSecurityTokenResponseElement(</span>
                     wstVersion, env.getBody());
         } else {
-<span class="fc" id="L165">            OMElement rstrcElem = TrustUtil</span>
+<span class="fc" id="L146">            OMElement rstrcElem = TrustUtil</span>
                     .createRequestSecurityTokenResponseCollectionElement(
                             wstVersion, env.getBody());
-<span class="fc" id="L168">            rstrElem = 
TrustUtil.createRequestSecurityTokenResponseElement(</span>
+<span class="fc" id="L149">            rstrElem = 
TrustUtil.createRequestSecurityTokenResponseElement(</span>
                     wstVersion, rstrcElem);
         }
 
-<span class="fc" id="L172">        
TrustUtil.createTokenTypeElement(wstVersion, rstrElem).setText(</span>
+<span class="fc" id="L153">        
TrustUtil.createTokenTypeElement(wstVersion, rstrElem).setText(</span>
                 RahasConstants.TOK_TYPE_SAML_10);
 
-<span class="fc bfc" id="L175" title="All 2 branches covered.">        if 
(keyType.endsWith(RahasConstants.KEY_TYPE_SYMM_KEY)) {</span>
-<span class="fc" id="L176">            
TrustUtil.createKeySizeElement(wstVersion, rstrElem, keySize);</span>
+<span class="fc bfc" id="L156" title="All 2 branches covered.">        if 
(keyType.endsWith(RahasConstants.KEY_TYPE_SYMM_KEY)) {</span>
+<span class="fc" id="L157">            
TrustUtil.createKeySizeElement(wstVersion, rstrElem, keySize);</span>
         }
 
-<span class="pc bpc" id="L179" title="1 of 2 branches missed.">        if 
(config.addRequestedAttachedRef) {</span>
-<span class="fc" id="L180">            
TrustUtil.createRequestedAttachedRef(rstrElem, 
assertion.getID(),wstVersion);</span>
+<span class="pc bpc" id="L160" title="1 of 2 branches missed.">        if 
(tokenIssuerConfiguration.isAddRequestedAttachedRef()) {</span>
+<span class="fc" id="L161">            
TrustUtil.createRequestedAttachedRef(rstrElem, 
assertion.getID(),wstVersion);</span>
         }
 
-<span class="pc bpc" id="L183" title="1 of 2 branches missed.">        if 
(config.addRequestedUnattachedRef) {</span>
-<span class="fc" id="L184">            
TrustUtil.createRequestedUnattachedRef(rstrElem, 
assertion.getID(),wstVersion);</span>
+<span class="pc bpc" id="L164" title="1 of 2 branches missed.">        if 
(tokenIssuerConfiguration.isAddRequestedUnattachedRef()) {</span>
+<span class="fc" id="L165">            
TrustUtil.createRequestedUnattachedRef(rstrElem, 
assertion.getID(),wstVersion);</span>
         }
 
-<span class="fc bfc" id="L187" title="All 2 branches covered.">        if 
(data.getAppliesToAddress() != null) {</span>
-<span class="fc" id="L188">            
TrustUtil.createAppliesToElement(rstrElem, data</span>
+<span class="fc bfc" id="L168" title="All 2 branches covered.">        if 
(data.getAppliesToAddress() != null) {</span>
+<span class="fc" id="L169">            
TrustUtil.createAppliesToElement(rstrElem, data</span>
                     .getAppliesToAddress(), data.getAddressingNs());
         }
 
         // Use GMT time in milliseconds
-<span class="fc" id="L193">        DateFormat zulu = new 
XmlSchemaDateFormat();</span>
+<span class="fc" id="L174">        DateFormat zulu = new 
XmlSchemaDateFormat();</span>
 
         // Add the Lifetime element
-<span class="fc" id="L196">        TrustUtil.createLifetimeElement(wstVersion, 
rstrElem, zulu</span>
+<span class="fc" id="L177">        TrustUtil.createLifetimeElement(wstVersion, 
rstrElem, zulu</span>
                 .format(creationTime.toDate()), 
zulu.format(expirationTime.toDate()));
 
         // Create the RequestedSecurityToken element and add the SAML token
         // to it
-<span class="fc" id="L201">        OMElement reqSecTokenElem = TrustUtil</span>
+<span class="fc" id="L182">        OMElement reqSecTokenElem = TrustUtil</span>
                 .createRequestedSecurityTokenElement(wstVersion, rstrElem);
         Token assertionToken;
         //try {
-<span class="fc" id="L205">            Node tempNode = 
assertion.getDOM();</span>
-<span class="fc" id="L206">            reqSecTokenElem.addChild((OMNode) 
((Element) rstrElem)</span>
+<span class="fc" id="L186">            Node tempNode = 
assertion.getDOM();</span>
+<span class="fc" id="L187">            reqSecTokenElem.addChild((OMNode) 
((Element) rstrElem)</span>
                     .getOwnerDocument().importNode(tempNode, true));
 
             // Store the token
-<span class="fc" id="L210">            assertionToken = new 
Token(assertion.getID(),</span>
+<span class="fc" id="L191">            assertionToken = new 
Token(assertion.getID(),</span>
                     (OMElement) assertion.getDOM(), creationTime.toDate(),
                     expirationTime.toDate());
 
             // At this point we definitely have the secret
             // Otherwise it should fail with an exception earlier
-<span class="fc" id="L216">            
assertionToken.setSecret(data.getEphmeralKey());</span>
-<span class="fc" id="L217">            
TrustUtil.getTokenStore(inMsgCtx).add(assertionToken);</span>
+<span class="fc" id="L197">            
assertionToken.setSecret(data.getEphmeralKey());</span>
+<span class="fc" id="L198">            
TrustUtil.getTokenStore(inMsgCtx).add(assertionToken);</span>
 
        /* } catch (SAMLException e) {
             throw new TrustException(&quot;samlConverstionError&quot;, e);
         }*/
 
-<span class="pc bpc" id="L223" title="1 of 4 branches missed.">        if 
(keyType.endsWith(RahasConstants.KEY_TYPE_SYMM_KEY)</span>
-                &amp;&amp; config.keyComputation != 
SAMLTokenIssuerConfig.KeyComputation.KEY_COMP_USE_REQ_ENT) {
+<span class="pc bpc" id="L204" title="1 of 4 branches missed.">        if 
(keyType.endsWith(RahasConstants.KEY_TYPE_SYMM_KEY)</span>
+                &amp;&amp; tokenIssuerConfiguration.getKeyComputation() != 
SAMLTokenIssuerConfig.KeyComputation.KEY_COMP_USE_REQ_ENT) {
 
             // Add the RequestedProofToken
-<span class="fc" id="L227">            
TokenIssuerUtil.handleRequestedProofToken(data, wstVersion,</span>
-                    config, rstrElem, assertionToken, doc);
+<span class="fc" id="L208">            
TokenIssuerUtil.handleRequestedProofToken(data, wstVersion,</span>
+                    tokenIssuerConfiguration, rstrElem, assertionToken, doc);
         }
 
-<span class="fc" id="L231">        return env;</span>
+<span class="fc" id="L212">        return env;</span>
     }
 
 
@@ -237,32 +218,32 @@ import java.util.List;
                                             Document doc, Crypto crypto, 
DateTime creationTime,
                                             DateTime expirationTime, RahasData 
data) throws TrustException {
 
-<span class="fc" id="L240">        Principal principal = 
data.getPrincipal();</span>
+<span class="fc" id="L221">        Principal principal = 
data.getPrincipal();</span>
         Assertion assertion;
         // In the case where the principal is a UT
-<span class="pc bpc" id="L243" title="1 of 2 branches missed.">        if 
(principal instanceof WSUsernameTokenPrincipal) {</span>
-<span class="fc" id="L244">            NameIdentifier nameId = null;</span>
-<span class="pc bpc" id="L245" title="1 of 2 branches missed.">            if 
(config.getCallbackHandler() != null) {</span>
-<span class="nc" id="L246">                SAMLNameIdentifierCallback cb = new 
SAMLNameIdentifierCallback(data);</span>
-<span class="nc" id="L247">                
cb.setUserId(principal.getName());</span>
-<span class="nc" id="L248">                SAMLCallbackHandler callbackHandler 
= config.getCallbackHandler();</span>
+<span class="pc bpc" id="L224" title="1 of 2 branches missed.">        if 
(principal instanceof WSUsernameTokenPrincipal) {</span>
+<span class="fc" id="L225">            NameIdentifier nameId = null;</span>
+<span class="pc bpc" id="L226" title="1 of 2 branches missed.">            if 
(config.getCallbackHandler() != null) {</span>
+<span class="nc" id="L227">                SAMLNameIdentifierCallback cb = new 
SAMLNameIdentifierCallback(data);</span>
+<span class="nc" id="L228">                
cb.setUserId(principal.getName());</span>
+<span class="nc" id="L229">                SAMLCallbackHandler callbackHandler 
= config.getCallbackHandler();</span>
                 try {
-<span class="nc" id="L250">                    
callbackHandler.handle(cb);</span>
-<span class="nc" id="L251">                } catch (SAMLException e) {</span>
-<span class="nc" id="L252">                    throw new 
TrustException(&quot;unableToRetrieveCallbackHandler&quot;, e);</span>
-<span class="nc" id="L253">                }</span>
-<span class="nc" id="L254">                nameId = cb.getNameId();</span>
-<span class="nc" id="L255">            } else {</span>
+<span class="nc" id="L231">                    
callbackHandler.handle(cb);</span>
+<span class="nc" id="L232">                } catch (SAMLException e) {</span>
+<span class="nc" id="L233">                    throw new 
TrustException(&quot;unableToRetrieveCallbackHandler&quot;, e);</span>
+<span class="nc" id="L234">                }</span>
+<span class="nc" id="L235">                nameId = cb.getNameId();</span>
+<span class="nc" id="L236">            } else {</span>
 
-<span class="fc" id="L257">                nameId = 
SAMLUtils.createNamedIdentifier(principal.getName(), 
NameIdentifier.EMAIL);</span>
+<span class="fc" id="L238">                nameId = 
SAMLUtils.createNamedIdentifier(principal.getName(), 
NameIdentifier.EMAIL);</span>
             }
 
-<span class="fc" id="L260">            assertion = 
createAuthAssertion(RahasConstants.SAML11_SUBJECT_CONFIRMATION_BEARER,</span>
+<span class="fc" id="L241">            assertion = 
createAuthAssertion(RahasConstants.SAML11_SUBJECT_CONFIRMATION_BEARER,</span>
                     nameId, null, config, crypto, creationTime,
                     expirationTime, data);
-<span class="fc" id="L263">            return assertion;</span>
+<span class="fc" id="L244">            return assertion;</span>
         } else {
-<span class="nc" id="L265">            throw new 
TrustException(&quot;samlUnsupportedPrincipal&quot;,</span>
+<span class="nc" id="L246">            throw new 
TrustException(&quot;samlUnsupportedPrincipal&quot;,</span>
                     new String[]{principal.getClass().getName()});
         }
     }
@@ -271,15 +252,15 @@ import java.util.List;
             Document doc, Crypto crypto, DateTime creationTime,
             DateTime expirationTime, RahasData data) throws TrustException {
 
-<span class="fc bfc" id="L274" title="All 2 branches covered.">        if 
(data.getKeyType().endsWith(RahasConstants.KEY_TYPE_SYMM_KEY)) {</span>
-<span class="fc" id="L275">            X509Certificate serviceCert = 
null;</span>
+<span class="fc bfc" id="L255" title="All 2 branches covered.">        if 
(data.getKeyType().endsWith(RahasConstants.KEY_TYPE_SYMM_KEY)) {</span>
+<span class="fc" id="L256">            X509Certificate serviceCert = 
null;</span>
             try {
 
                 // TODO what if principal is null ?
-<span class="fc" id="L279">                NameIdentifier nameIdentifier = 
null;</span>
-<span class="pc bpc" id="L280" title="1 of 2 branches missed.">                
if (data.getPrincipal() != null) {</span>
-<span class="fc" id="L281">                    String subjectNameId = 
data.getPrincipal().getName();</span>
-<span class="fc" id="L282">                    nameIdentifier 
=SAMLUtils.createNamedIdentifier(subjectNameId, NameIdentifier.EMAIL);</span>
+<span class="fc" id="L260">                NameIdentifier nameIdentifier = 
null;</span>
+<span class="pc bpc" id="L261" title="1 of 2 branches missed.">                
if (data.getPrincipal() != null) {</span>
+<span class="fc" id="L262">                    String subjectNameId = 
data.getPrincipal().getName();</span>
+<span class="fc" id="L263">                    nameIdentifier 
=SAMLUtils.createNamedIdentifier(subjectNameId, NameIdentifier.EMAIL);</span>
                 }
 
                 /**
@@ -293,31 +274,31 @@ import java.util.List;
 
                 // Get ApliesTo to figure out which service to issue the token
                 // for
-<span class="fc" id="L296">                serviceCert = 
getServiceCert(config, crypto, data</span>
+<span class="fc" id="L277">                serviceCert = 
getServiceCert(config, crypto, data</span>
                         .getAppliesToAddress());
 
                 // set keySize
-<span class="fc" id="L300">                int keySize = 
data.getKeysize();</span>
-<span class="pc bpc" id="L301" title="1 of 2 branches missed.">                
keySize = (keySize != -1) ? keySize : config.keySize;</span>
+<span class="fc" id="L281">                int keySize = 
data.getKeysize();</span>
+<span class="pc bpc" id="L282" title="1 of 2 branches missed.">                
keySize = (keySize != -1) ? keySize : config.getKeySize();</span>
 
                 // Create the encrypted key
-<span class="fc" id="L304">                KeyInfo 
encryptedKeyInfoElement</span>
-                        = SAMLUtils.getSymmetricKeyBasedKeyInfo(doc, data, 
serviceCert, keySize,
-                        crypto, config.keyComputation);
+<span class="fc" id="L285">                KeyInfo 
encryptedKeyInfoElement</span>
+                        = CommonUtil.getSymmetricKeyBasedKeyInfo(doc, data, 
serviceCert, keySize,
+                        crypto, config.getKeyComputation());
 
-<span class="fc" id="L308">                return 
this.createAttributeAssertion(data, encryptedKeyInfoElement, nameIdentifier, 
config,</span>
+<span class="fc" id="L289">                return 
this.createAttributeAssertion(data, encryptedKeyInfoElement, nameIdentifier, 
config,</span>
                     crypto, creationTime, expirationTime);
 
 
-<span class="nc" id="L312">            } catch (WSSecurityException e) {</span>
+<span class="nc" id="L293">            } catch (WSSecurityException e) {</span>
 
-<span class="nc bnc" id="L314" title="All 2 branches missed.">                
if (serviceCert != null) {</span>
-<span class="nc" id="L315">                    throw new TrustException(</span>
+<span class="nc bnc" id="L295" title="All 2 branches missed.">                
if (serviceCert != null) {</span>
+<span class="nc" id="L296">                    throw new TrustException(</span>
                             
&quot;errorInBuildingTheEncryptedKeyForPrincipal&quot;,
                             new String[]{serviceCert.getSubjectDN().getName()},
                             e);
                 } else {
-<span class="nc" id="L320">                    throw new TrustException(</span>
+<span class="nc" id="L301">                    throw new TrustException(</span>
                             &quot;trustedCertNotFoundForEPR&quot;,
                             new String[]{data.getAppliesToAddress()},
                             e);
@@ -339,23 +320,23 @@ import java.util.List;
                  *   &lt;/KeyInfo&gt;
                  */
 
-<span class="fc" id="L342">                String subjectNameId = 
data.getPrincipal().getName();</span>
+<span class="fc" id="L323">                String subjectNameId = 
data.getPrincipal().getName();</span>
                 
-<span class="fc" id="L344">                NameIdentifier nameId = 
SAMLUtils.createNamedIdentifier(subjectNameId, NameIdentifier.EMAIL);</span>
+<span class="fc" id="L325">                NameIdentifier nameId = 
SAMLUtils.createNamedIdentifier(subjectNameId, NameIdentifier.EMAIL);</span>
 
                 // Create the ds:KeyValue element with the ds:X509Data
-<span class="fc" id="L347">                X509Certificate clientCert = 
data.getClientCert();</span>
+<span class="fc" id="L328">                X509Certificate clientCert = 
data.getClientCert();</span>
 
-<span class="pc bpc" id="L349" title="1 of 2 branches missed.">                
if(clientCert == null) {</span>
-<span class="nc" id="L350">                    clientCert = 
CommonUtil.getCertificateByAlias(crypto,data.getPrincipal().getName());;</span>
+<span class="pc bpc" id="L330" title="1 of 2 branches missed.">                
if(clientCert == null) {</span>
+<span class="nc" id="L331">                    clientCert = 
CommonUtil.getCertificateByAlias(crypto,data.getPrincipal().getName());;</span>
                 }
 
-<span class="fc" id="L353">                KeyInfo keyInfo = 
SAMLUtils.getCertificateBasedKeyInfo(clientCert);</span>
+<span class="fc" id="L334">                KeyInfo keyInfo = 
CommonUtil.getCertificateBasedKeyInfo(clientCert);</span>
 
-<span class="fc" id="L355">                return 
this.createAuthAssertion(RahasConstants.SAML11_SUBJECT_CONFIRMATION_HOK, 
nameId, keyInfo,</span>
+<span class="fc" id="L336">                return 
this.createAuthAssertion(RahasConstants.SAML11_SUBJECT_CONFIRMATION_HOK, 
nameId, keyInfo,</span>
                         config, crypto, creationTime, expirationTime, data);
-<span class="nc" id="L357">            } catch (Exception e) {</span>
-<span class="nc" id="L358">                throw new 
TrustException(&quot;samlAssertionCreationError&quot;, e);</span>
+<span class="nc" id="L338">            } catch (Exception e) {</span>
+<span class="nc" id="L339">                throw new 
TrustException(&quot;samlAssertionCreationError&quot;, e);</span>
             }
         }
     }
@@ -375,17 +356,17 @@ import java.util.List;
             Crypto crypto, String serviceAddress) throws TrustException {
 
         // TODO a duplicate method !!
-<span class="pc bpc" id="L378" title="1 of 4 branches missed.">        if 
(serviceAddress != null &amp;&amp; !&quot;&quot;.equals(serviceAddress)) 
{</span>
-<span class="fc" id="L379">            String alias = (String) 
config.trustedServices.get(serviceAddress);</span>
-<span class="pc bpc" id="L380" title="1 of 2 branches missed.">            if 
(alias != null) {</span>
-<span class="fc" id="L381">                return 
CommonUtil.getCertificateByAlias(crypto,alias);</span>
+<span class="pc bpc" id="L359" title="1 of 4 branches missed.">        if 
(serviceAddress != null &amp;&amp; !&quot;&quot;.equals(serviceAddress)) 
{</span>
+<span class="fc" id="L360">            String alias = (String) 
config.getTrustedServices().get(serviceAddress);</span>
+<span class="pc bpc" id="L361" title="1 of 2 branches missed.">            if 
(alias != null) {</span>
+<span class="fc" id="L362">                return 
CommonUtil.getCertificateByAlias(crypto,alias);</span>
             } else {
-<span class="nc" id="L383">                alias = (String) 
config.trustedServices.get(&quot;*&quot;);</span>
-<span class="nc" id="L384">                return 
CommonUtil.getCertificateByAlias(crypto,alias);</span>
+<span class="nc" id="L364">                alias = (String) 
config.getTrustedServices().get(&quot;*&quot;);</span>
+<span class="nc" id="L365">                return 
CommonUtil.getCertificateByAlias(crypto,alias);</span>
             }
         } else {
-<span class="fc" id="L387">            String alias = (String) 
config.trustedServices.get(&quot;*&quot;);</span>
-<span class="fc" id="L388">            return 
CommonUtil.getCertificateByAlias(crypto,alias);</span>
+<span class="fc" id="L368">            String alias = (String) 
config.getTrustedServices().get(&quot;*&quot;);</span>
+<span class="fc" id="L369">            return 
CommonUtil.getCertificateByAlias(crypto,alias);</span>
         }
 
     }
@@ -409,57 +390,38 @@ import java.util.List;
                                                Crypto crypto, DateTime 
notBefore, DateTime notAfter) throws TrustException {
         try {
 
-<span class="fc" id="L412">            Subject subject</span>
+<span class="fc" id="L393">            Subject subject</span>
                     = SAMLUtils.createSubject(subjectNameId, 
RahasConstants.SAML11_SUBJECT_CONFIRMATION_HOK, keyInfo);
 
-            Attribute[] attrs;
-<span class="fc bfc" id="L416" title="All 2 branches covered.">            if 
(config.getCallbackHandler() != null) {</span>
-<span class="fc" id="L417">                SAMLAttributeCallback cb = new 
SAMLAttributeCallback(data);</span>
-<span class="fc" id="L418">                SAMLCallbackHandler handler = 
config.getCallbackHandler();</span>
-<span class="fc" id="L419">                handler.handle(cb);</span>
-<span class="fc" id="L420">                attrs = cb.getAttributes();</span>
-<span class="pc bpc" id="L421" title="3 of 4 branches missed.">            } 
else if (config.getCallbackHandlerName() != null</span>
-                    &amp;&amp; config.getCallbackHandlerName().trim().length() 
&gt; 0) {
-<span class="nc" id="L423">                SAMLAttributeCallback cb = new 
SAMLAttributeCallback(data);</span>
-<span class="nc" id="L424">                SAMLCallbackHandler handler = 
null;</span>
-<span class="nc" id="L425">                MessageContext msgContext = 
data.getInMessageContext();</span>
-<span class="nc" id="L426">                ClassLoader classLoader = 
msgContext.getAxisService().getClassLoader();</span>
-                Class cbClass;
-                try {
-<span class="nc" id="L429">                    cbClass = 
Loader.loadClass(classLoader, config.getCallbackHandlerName());</span>
-<span class="nc" id="L430">                } catch (ClassNotFoundException e) 
{</span>
-<span class="nc" id="L431">                    throw new 
TrustException(&quot;cannotLoadPWCBClass&quot;, new String[]{config</span>
-                            .getCallbackHandlerName()}, e);
-<span class="nc" id="L433">                }</span>
-                try {
-<span class="nc" id="L435">                    handler = (SAMLCallbackHandler) 
cbClass.newInstance();</span>
-<span class="nc" id="L436">                } catch (java.lang.Exception e) 
{</span>
-<span class="nc" id="L437">                    throw new 
TrustException(&quot;cannotCreatePWCBInstance&quot;, new String[]{config</span>
-                            .getCallbackHandlerName()}, e);
-<span class="nc" id="L439">                }</span>
-<span class="nc" id="L440">                handler.handle(cb);</span>
-<span class="nc" id="L441">                attrs = cb.getAttributes();</span>
-<span class="nc" id="L442">            } else {</span>
+            Attribute[] attributes;
+
+<span class="fc" id="L398">            SAMLCallbackHandler handler = 
CommonUtil.getSAMLCallbackHandler(config, data);</span>
+
+<span class="fc" id="L400">            SAMLAttributeCallback cb = new 
SAMLAttributeCallback(data);</span>
+<span class="fc bfc" id="L401" title="All 2 branches covered.">            if 
(handler != null) {</span>
+<span class="fc" id="L402">                handler.handle(cb);</span>
+<span class="fc" id="L403">                attributes = 
cb.getAttributes();</span>
+            } else {
                 //TODO Remove this after discussing
-<span class="fc" id="L444">                Attribute attribute = 
SAMLUtils.createAttribute(&quot;Name&quot;, 
&quot;https://rahas.apache.org/saml/attrns&quot;,</span>
+<span class="fc" id="L406">                Attribute attribute = 
SAMLUtils.createAttribute(&quot;Name&quot;, 
&quot;https://rahas.apache.org/saml/attrns&quot;,</span>
                         &quot;Colombo/Rahas&quot;);
-<span class="fc" id="L446">                attrs = new 
Attribute[]{attribute};</span>
+<span class="fc" id="L408">                attributes = new 
Attribute[]{attribute};</span>
             }
 
-<span class="fc" id="L449">            AttributeStatement attributeStatement = 
SAMLUtils.createAttributeStatement(subject, Arrays.asList(attrs));</span>
+<span class="fc" id="L411">            AttributeStatement attributeStatement = 
SAMLUtils.createAttributeStatement(subject, Arrays.asList(attributes));</span>
 
 
-<span class="fc" id="L452">            List&lt;Statement&gt; 
attributeStatements = new ArrayList&lt;Statement&gt;();</span>
-<span class="fc" id="L453">            
attributeStatements.add(attributeStatement);</span>
+<span class="fc" id="L414">            List&lt;Statement&gt; 
attributeStatements = new ArrayList&lt;Statement&gt;();</span>
+<span class="fc" id="L415">            
attributeStatements.add(attributeStatement);</span>
 
-<span class="fc" id="L455">            Assertion assertion = 
SAMLUtils.createAssertion(config.issuerName, notBefore,</span>
+<span class="fc" id="L417">            Assertion assertion = 
SAMLUtils.createAssertion(config.getIssuerName(), notBefore,</span>
                     notAfter, attributeStatements);
 
-<span class="fc" id="L458">            SAMLUtils.signAssertion(assertion, 
crypto, config.getIssuerKeyAlias(), config.getIssuerKeyPassword());</span>
+<span class="fc" id="L420">            SAMLUtils.signAssertion(assertion, 
crypto, config.getIssuerKeyAlias(), config.getIssuerKeyPassword());</span>
 
-<span class="fc" id="L460">            return assertion;</span>
-<span class="nc" id="L461">        } catch (Exception e) {</span>
-<span class="nc" id="L462">            throw new 
TrustException(&quot;samlAssertionCreationError&quot;, e);</span>
+<span class="fc" id="L422">            return assertion;</span>
+<span class="nc" id="L423">        } catch (Exception e) {</span>
+<span class="nc" id="L424">            throw new 
TrustException(&quot;samlAssertionCreationError&quot;, e);</span>
         }
     }
 
@@ -482,33 +444,33 @@ import java.util.List;
             DateTime notAfter, RahasData data) throws TrustException {
         try {
 
-<span class="fc" id="L485">            Subject subject = 
SAMLUtils.createSubject(subjectNameId,confirmationMethod, keyInfo);</span>
+<span class="fc" id="L447">            Subject subject = 
SAMLUtils.createSubject(subjectNameId,confirmationMethod, keyInfo);</span>
 
-<span class="fc" id="L487">            AuthenticationStatement 
authenticationStatement</span>
-                    = SAMLUtils.createAuthenticationStatement(subject, 
AUTHENTICATION_METHOD_PASSWORD,
+<span class="fc" id="L449">            AuthenticationStatement 
authenticationStatement</span>
+                    = SAMLUtils.createAuthenticationStatement(subject, 
RahasConstants.AUTHENTICATION_METHOD_PASSWORD,
                     notBefore);
 
-<span class="fc" id="L491">            List&lt;Statement&gt; statements = new 
ArrayList&lt;Statement&gt;();</span>
-<span class="pc bpc" id="L492" title="3 of 4 branches missed.">            if 
(data.getClaimDialect() != null &amp;&amp; data.getClaimElem() != null) {</span>
-<span class="nc" id="L493">                Statement attrStatement = 
createSAMLAttributeStatement(</span>
+<span class="fc" id="L453">            List&lt;Statement&gt; statements = new 
ArrayList&lt;Statement&gt;();</span>
+<span class="pc bpc" id="L454" title="3 of 4 branches missed.">            if 
(data.getClaimDialect() != null &amp;&amp; data.getClaimElem() != null) {</span>
+<span class="nc" id="L455">                Statement attrStatement = 
createSAMLAttributeStatement(</span>
                         SAMLUtils.createSubject(subject.getNameIdentifier(),
                                 confirmationMethod, keyInfo), data, config);
-<span class="nc" id="L496">                
statements.add(attrStatement);</span>
+<span class="nc" id="L458">                
statements.add(attrStatement);</span>
             }
 
-<span class="fc" id="L499">            
statements.add(authenticationStatement);</span>
+<span class="fc" id="L461">            
statements.add(authenticationStatement);</span>
 
-<span class="fc" id="L501">            Assertion assertion = 
SAMLUtils.createAssertion(config.issuerName,</span>
+<span class="fc" id="L463">            Assertion assertion = 
SAMLUtils.createAssertion(config.getIssuerName(),</span>
                     notBefore, notAfter, statements);
 
             // Signing the assertion
             // The &lt;ds:Signature&gt;...&lt;/ds:Signature&gt; element 
appears only after
             // signing.
-<span class="fc" id="L507">            SAMLUtils.signAssertion(assertion, 
crypto, config.getIssuerKeyAlias(), config.getIssuerKeyPassword());</span>
+<span class="fc" id="L469">            SAMLUtils.signAssertion(assertion, 
crypto, config.getIssuerKeyAlias(), config.getIssuerKeyPassword());</span>
 
-<span class="fc" id="L509">            return assertion;</span>
-<span class="nc" id="L510">        } catch (Exception e) {</span>
-<span class="nc" id="L511">            throw new 
TrustException(&quot;samlAssertionCreationError&quot;, e);</span>
+<span class="fc" id="L471">            return assertion;</span>
+<span class="nc" id="L472">        } catch (Exception e) {</span>
+<span class="nc" id="L473">            throw new 
TrustException(&quot;samlAssertionCreationError&quot;, e);</span>
         }
     }
 
@@ -516,7 +478,7 @@ import java.util.List;
      * {@inheritDoc}
      */
     public String getResponseAction(RahasData data) throws TrustException {
-<span class="fc" id="L519">        return 
TrustUtil.getActionValue(data.getVersion(),</span>
+<span class="fc" id="L481">        return 
TrustUtil.getActionValue(data.getVersion(),</span>
                 RahasConstants.RSTR_ACTION_ISSUE);
     }
 
@@ -528,12 +490,12 @@ import java.util.List;
      */
     protected byte[] generateEphemeralKey(int keySize) throws TrustException {
         try {
-<span class="nc" id="L531">            SecureRandom random = 
SecureRandom.getInstance(&quot;SHA1PRNG&quot;);</span>
-<span class="nc" id="L532">            byte[] temp = new byte[keySize / 
8];</span>
-<span class="nc" id="L533">            random.nextBytes(temp);</span>
-<span class="nc" id="L534">            return temp;</span>
-<span class="nc" id="L535">        } catch (Exception e) {</span>
-<span class="nc" id="L536">            throw new TrustException(&quot;Error in 
creating the ephemeral key&quot;, e);</span>
+<span class="nc" id="L493">            SecureRandom random = 
SecureRandom.getInstance(&quot;SHA1PRNG&quot;);</span>
+<span class="nc" id="L494">            byte[] temp = new byte[keySize / 
8];</span>
+<span class="nc" id="L495">            random.nextBytes(temp);</span>
+<span class="nc" id="L496">            return temp;</span>
+<span class="nc" id="L497">        } catch (Exception e) {</span>
+<span class="nc" id="L498">            throw new TrustException(&quot;Error in 
creating the ephemeral key&quot;, e);</span>
         }
     }
 
@@ -541,75 +503,75 @@ import java.util.List;
      * {@inheritDoc}
      */
     public void setConfigurationFile(String configFile) {
-<span class="fc" id="L544">        this.configFile = configFile;</span>
+<span class="fc" id="L506">        this.configFile = configFile;</span>
 
-<span class="fc" id="L546">    }</span>
+<span class="fc" id="L508">    }</span>
     
     /**
      * {@inheritDoc}
      */
     public void setConfigurationElement(OMElement configElement) {
-<span class="fc" id="L552">        this.configElement = configElement;</span>
-<span class="fc" id="L553">    }</span>
+<span class="fc" id="L514">        this.configElement = configElement;</span>
+<span class="fc" id="L515">    }</span>
 
     /**
      * {@inheritDoc}
      */
     public void setConfigurationParamName(String configParamName) {
-<span class="fc" id="L559">        this.configParamName = 
configParamName;</span>
-<span class="fc" id="L560">    }</span>
+<span class="fc" id="L521">        this.configParamName = 
configParamName;</span>
+<span class="fc" id="L522">    }</span>
 
     private AttributeStatement createSAMLAttributeStatement(Subject subject,
                                                             RahasData 
rahasData,
                                                             
SAMLTokenIssuerConfig config)
             throws TrustException {
-<span class="nc" id="L566">        Attribute[] attrs = null;</span>
-<span class="nc bnc" id="L567" title="All 2 branches missed.">        if 
(config.getCallbackHandler() != null) {</span>
-<span class="nc" id="L568">            SAMLAttributeCallback cb = new 
SAMLAttributeCallback(rahasData);</span>
-<span class="nc" id="L569">            SAMLCallbackHandler handler = 
config.getCallbackHandler();</span>
+<span class="nc" id="L528">        Attribute[] attrs = null;</span>
+<span class="nc bnc" id="L529" title="All 2 branches missed.">        if 
(config.getCallbackHandler() != null) {</span>
+<span class="nc" id="L530">            SAMLAttributeCallback cb = new 
SAMLAttributeCallback(rahasData);</span>
+<span class="nc" id="L531">            SAMLCallbackHandler handler = 
config.getCallbackHandler();</span>
             try {
-<span class="nc" id="L571">                handler.handle(cb);</span>
-<span class="nc" id="L572">                attrs = cb.getAttributes();</span>
-<span class="nc" id="L573">            } catch (SAMLException e) {</span>
-<span class="nc" id="L574">                throw new 
TrustException(&quot;unableToRetrieveCallbackHandler&quot;, e);</span>
-<span class="nc" id="L575">            }</span>
+<span class="nc" id="L533">                handler.handle(cb);</span>
+<span class="nc" id="L534">                attrs = cb.getAttributes();</span>
+<span class="nc" id="L535">            } catch (SAMLException e) {</span>
+<span class="nc" id="L536">                throw new 
TrustException(&quot;unableToRetrieveCallbackHandler&quot;, e);</span>
+<span class="nc" id="L537">            }</span>
 
-<span class="nc bnc" id="L577" title="All 4 branches missed.">        } else 
if (config.getCallbackHandlerName() != null</span>
+<span class="nc bnc" id="L539" title="All 4 branches missed.">        } else 
if (config.getCallbackHandlerName() != null</span>
                 &amp;&amp; config.getCallbackHandlerName().trim().length() 
&gt; 0) {
-<span class="nc" id="L579">            SAMLAttributeCallback cb = new 
SAMLAttributeCallback(rahasData);</span>
-<span class="nc" id="L580">            SAMLCallbackHandler handler = 
null;</span>
-<span class="nc" id="L581">            MessageContext msgContext = 
rahasData.getInMessageContext();</span>
-<span class="nc" id="L582">            ClassLoader classLoader = 
msgContext.getAxisService().getClassLoader();</span>
-<span class="nc" id="L583">            Class cbClass = null;</span>
+<span class="nc" id="L541">            SAMLAttributeCallback cb = new 
SAMLAttributeCallback(rahasData);</span>
+<span class="nc" id="L542">            SAMLCallbackHandler handler = 
null;</span>
+<span class="nc" id="L543">            MessageContext msgContext = 
rahasData.getInMessageContext();</span>
+<span class="nc" id="L544">            ClassLoader classLoader = 
msgContext.getAxisService().getClassLoader();</span>
+<span class="nc" id="L545">            Class cbClass = null;</span>
             try {
-<span class="nc" id="L585">                cbClass = 
Loader.loadClass(classLoader, config.getCallbackHandlerName());</span>
-<span class="nc" id="L586">            } catch (ClassNotFoundException e) 
{</span>
-<span class="nc" id="L587">                throw new 
TrustException(&quot;cannotLoadPWCBClass&quot;,</span>
+<span class="nc" id="L547">                cbClass = 
Loader.loadClass(classLoader, config.getCallbackHandlerName());</span>
+<span class="nc" id="L548">            } catch (ClassNotFoundException e) 
{</span>
+<span class="nc" id="L549">                throw new 
TrustException(&quot;cannotLoadPWCBClass&quot;,</span>
                         new String[]{config.getCallbackHandlerName()}, e);
-<span class="nc" id="L589">            }</span>
+<span class="nc" id="L551">            }</span>
             try {
-<span class="nc" id="L591">                handler = (SAMLCallbackHandler) 
cbClass.newInstance();</span>
-<span class="nc" id="L592">            } catch (Exception e) {</span>
-<span class="nc" id="L593">                throw new 
TrustException(&quot;cannotCreatePWCBInstance&quot;,</span>
+<span class="nc" id="L553">                handler = (SAMLCallbackHandler) 
cbClass.newInstance();</span>
+<span class="nc" id="L554">            } catch (Exception e) {</span>
+<span class="nc" id="L555">                throw new 
TrustException(&quot;cannotCreatePWCBInstance&quot;,</span>
                         new String[]{config.getCallbackHandlerName()}, e);
-<span class="nc" id="L595">            }</span>
+<span class="nc" id="L557">            }</span>
             try {
-<span class="nc" id="L597">                handler.handle(cb);</span>
-<span class="nc" id="L598">            } catch (SAMLException e) {</span>
-<span class="nc" id="L599">                throw new 
TrustException(&quot;unableToRetrieveCallbackHandler&quot;, e);</span>
-<span class="nc" id="L600">            }</span>
-<span class="nc" id="L601">            attrs = cb.getAttributes();</span>
-<span class="nc" id="L602">        } else {</span>
+<span class="nc" id="L559">                handler.handle(cb);</span>
+<span class="nc" id="L560">            } catch (SAMLException e) {</span>
+<span class="nc" id="L561">                throw new 
TrustException(&quot;unableToRetrieveCallbackHandler&quot;, e);</span>
+<span class="nc" id="L562">            }</span>
+<span class="nc" id="L563">            attrs = cb.getAttributes();</span>
+<span class="nc" id="L564">        } else {</span>
             //TODO Remove this after discussing
-<span class="nc" id="L604">            Attribute attribute =</span>
+<span class="nc" id="L566">            Attribute attribute =</span>
                     SAMLUtils.createAttribute(&quot;Name&quot;, 
&quot;https://rahas.apache.org/saml/attrns&quot;, &quot;Colombo/Rahas&quot;);
 
-<span class="nc" id="L607">            attrs = new 
Attribute[]{attribute};</span>
+<span class="nc" id="L569">            attrs = new 
Attribute[]{attribute};</span>
         }
 
-<span class="nc" id="L610">        AttributeStatement attributeStatement = 
SAMLUtils.createAttributeStatement(subject, Arrays.asList(attrs));</span>
+<span class="nc" id="L572">        AttributeStatement attributeStatement = 
SAMLUtils.createAttributeStatement(subject, Arrays.asList(attrs));</span>
 
-<span class="nc" id="L612">        return attributeStatement;</span>
+<span class="nc" id="L574">        return attributeStatement;</span>
 
     }
 


Reply via email to