Modified: axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl.util/CommonUtil.html URL: http://svn.apache.org/viewvc/axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl.util/CommonUtil.html?rev=1725383&r1=1725382&r2=1725383&view=diff ============================================================================== --- axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl.util/CommonUtil.html (original) +++ axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl.util/CommonUtil.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>CommonUtil</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> > <a href="index.html" class="el_package">org.apache.rahas.impl.util</a> > <span class="el_class">CommonUtil</span></div><h1>CommonUtil</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" o nclick="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">140 of 185</td><td class="ctr2">24%</td><td class="bar">2 of 4</td><td class="ctr2">50%</td><td class="ctr1">5</td><td class="ctr2">10</td><td class="ctr1">28</td><td class="ct r2">41</td><td class="ctr1">3</td><td class="ctr2">8</td></tr></tfoot><tbody><tr><td id="a5"><a href="CommonUtil.java.html#L131" class="el_method">getDecryptedBytes(CallbackHandler, Crypto, Node)</a></td><td class="bar" id="b0"><img src="../.resources/redbar.gif" width="114" height="10" title="45" alt="45"/></td><td class="ctr2" id="c5">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h0">11</td><td class="ctr2" id="i0">11</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a2"><a href="CommonUtil.java.html#L101" class="el_method">getCertificatesByAlias(Crypto, String)</a></td><td class="bar" id="b1"><img src="../.resources/redbar.gif" width="79" height="10" title="31" alt="31"/><img src="../.resources/greenbar.gif" width="40" height="10" title="16" alt="16"/></td><td class="ctr2" id="c3">34%</td><td class="bar" id="d0"><img src="../.resources/redbar.gif" width="60" height="10" title="1" alt="1"/><img src="../.resources/greenbar.gif" width="60" height="10" title="1" alt="1"/></td><td class="ctr2" id="e0">50%</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g0">2</td><td class="ctr1" id="h1">5</td><td class="ctr2" id="i1">10</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a4"><a href="CommonUtil.java.html#L181" class="el_method">getCrypto(String, ClassLoader)</a></td><td class="bar" id="b2"><img src="../.resources/redbar.gif" width="71" height="10" title="28" alt="28"/></td><td class="ctr2" id="c6">0%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h2">4</td><td class="ctr2" id="i4">4</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a1"><a href="CommonUtil.java.html#L80" class="el_method">getCertificateByAlias(Crypto, String)</a></td><td class="bar" id="b3"><img s rc="../.resources/redbar.gif" width="38" height="10" title="15" alt="15"/><img src="../.resources/greenbar.gif" width="25" height="10" title="10" alt="10"/></td><td class="ctr2" id="c2">40%</td><td class="bar" id="d1"><img src="../.resources/redbar.gif" width="60" height="10" title="1" alt="1"/><img src="../.resources/greenbar.gif" width="60" height="10" title="1" alt="1"/></td><td class="ctr2" id="e1">50%</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g1">2</td><td class="ctr1" id="h4">2</td><td class="ctr2" id="i2">5</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a3"><a href="CommonUtil.java.html#L163" class="el_method">getCrypto(Properties, ClassLoader)</a></td><td class="bar" id="b4"><img src="../.resources/redbar.gif" width="28" height="10" title="11" alt="11"/><img src="../.resources/greenbar.gif" width="10" height="10" title="4" alt="4"/></td><td class="ctr2" id="c4">27%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td ><td class="ctr1" id="f5">0</td><td class="ctr2" id="g4">1</td><td >class="ctr1" id="h3">3</td><td class="ctr2" id="i5">4</td><td class="ctr1" >id="j5">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a6"><a >href="CommonUtil.java.html#L61" >class="el_method">getOMDOMDocument()</a></td><td class="bar" id="b5"><img >src="../.resources/redbar.gif" width="17" height="10" title="7" alt="7"/><img >src="../.resources/greenbar.gif" width="28" height="10" title="11" >alt="11"/></td><td class="ctr2" id="c1">61%</td><td class="bar" id="d5"/><td >class="ctr2" id="e5">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" >id="g5">1</td><td class="ctr1" id="h5">2</td><td class="ctr2" >id="i3">5</td><td class="ctr1" id="j6">0</td><td class="ctr2" >id="k5">1</td></tr><tr><td id="a0"><a href="CommonUtil.java.html#L51" >class="el_method">CommonUtil()</a></td><td class="bar" id="b6"><img >src="../.resources/redbar.gif" width="7" height="10" title="3" >alt="3"/></td><td class="ctr2" id="c7">0%</td><td class= "bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">1</td><td class="ctr2" id="i6">1</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a7"><a href="CommonUtil.java.html#L53" class="el_method">static {...}</a></td><td class="bar" id="b7"><img src="../.resources/greenbar.gif" width="10" height="10" title="4" alt="4"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g7">1</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i7">1</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">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>CommonUtil</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> > <a href="index.html" class="el_package">org.apache.rahas.impl.util</a> > <span class="el_class">CommonUtil</span></div><h1>CommonUtil</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" o nclick="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">152 of 457</td><td class="ctr2">67%</td><td class="bar">8 of 28</td><td class="ctr2">71%</td><td class="ctr1">11</td><td class="ctr2">32</td><td class="ctr1">28</td><td class=" ctr2">109</td><td class="ctr1">3</td><td class="ctr2">18</td></tr></tfoot><tbody><tr><td id="a8"><a href="CommonUtil.java.html#L115" class="el_method">getCertificatesByAlias(Crypto, String)</a></td><td class="bar" id="b0"><img src="../.resources/redbar.gif" width="58" height="10" title="31" alt="31"/><img src="../.resources/greenbar.gif" width="30" height="10" title="16" alt="16"/></td><td class="ctr2" id="c14">34%</td><td class="bar" id="d4"><img src="../.resources/redbar.gif" width="20" height="10" title="1" alt="1"/><img src="../.resources/greenbar.gif" width="20" height="10" title="1" alt="1"/></td><td class="ctr2" id="e5">50%</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g4">2</td><td class="ctr1" id="h0">5</td><td class="ctr2" id="i2">10</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a13"><a href="CommonUtil.java.html#L447" class="el_method">getSAMLCallbackHandler(SAMLTokenIssuerConfig, RahasData)</a></td><td class="bar" id="b1"><i mg src="../.resources/redbar.gif" width="52" height="10" title="28" alt="28"/><img src="../.resources/greenbar.gif" width="67" height="10" title="36" alt="36"/></td><td class="ctr2" id="c11">56%</td><td class="bar" id="d2"><img src="../.resources/redbar.gif" width="20" height="10" title="1" alt="1"/><img src="../.resources/greenbar.gif" width="100" height="10" title="5" alt="5"/></td><td class="ctr2" id="e2">83%</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g0">4</td><td class="ctr1" id="h1">4</td><td class="ctr2" id="i0">15</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a10"><a href="CommonUtil.java.html#L192" class="el_method">getCrypto(String, ClassLoader)</a></td><td class="bar" id="b2"><img src="../.resources/redbar.gif" width="52" height="10" title="28" alt="28"/></td><td class="ctr2" id="c15">0%</td><td class="bar" id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g8">1</td><td class="ct r1" id="h2">4</td><td class="ctr2" id="i11">4</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a7"><a href="CommonUtil.java.html#L94" class="el_method">getCertificateByAlias(Crypto, String)</a></td><td class="bar" id="b3"><img src="../.resources/redbar.gif" width="28" height="10" title="15" alt="15"/><img src="../.resources/greenbar.gif" width="18" height="10" title="10" alt="10"/></td><td class="ctr2" id="c13">40%</td><td class="bar" id="d5"><img src="../.resources/redbar.gif" width="20" height="10" title="1" alt="1"/><img src="../.resources/greenbar.gif" width="20" height="10" title="1" alt="1"/></td><td class="ctr2" id="e6">50%</td><td class="ctr1" id="f5">1</td><td class="ctr2" id="g5">2</td><td class="ctr1" id="h5">2</td><td class="ctr2" id="i7">5</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a9"><a href="CommonUtil.java.html#L174" class="el_method">getCrypto(Properties, ClassLoader)</a></td><td class="bar" id="b4"><img src="../.resources/redbar.gif" width="28" height="10" title="15" alt="15"/></td><td class="ctr2" id="c16">0%</td><td class="bar" id="d9"/><td class="ctr2" id="e9">n/a</td><td class="ctr1" id="f6">1</td><td class="ctr2" id="g9">1</td><td class="ctr1" id="h3">4</td><td class="ctr2" id="i12">4</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a5"><a href="CommonUtil.java.html#L416" class="el_method">createX509Data(X509Certificate)</a></td><td class="bar" id="b5"><img src="../.resources/redbar.gif" width="20" height="10" title="11" alt="11"/><img src="../.resources/greenbar.gif" width="46" height="10" title="25" alt="25"/></td><td class="ctr2" id="c9">69%</td><td class="bar" id="d10"/><td class="ctr2" id="e10">n/a</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g10">1</td><td class="ctr1" id="h4">3</td><td class="ctr2" id="i1">11</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a4"><a href="CommonUti l.java.html#L279" class="el_method">createTokenIssuerConfiguration(String)</a></td><td class="bar" id="b6"><img src="../.resources/redbar.gif" width="18" height="10" title="10" alt="10"/><img src="../.resources/greenbar.gif" width="22" height="10" title="12" alt="12"/></td><td class="ctr2" id="c12">55%</td><td class="bar" id="d3"><img src="../.resources/redbar.gif" width="20" height="10" title="1" alt="1"/><img src="../.resources/greenbar.gif" width="60" height="10" title="3" alt="3"/></td><td class="ctr2" id="e3">75%</td><td class="ctr1" id="f7">1</td><td class="ctr2" id="g2">3</td><td class="ctr1" id="h7">1</td><td class="ctr2" id="i8">5</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a12"><a href="CommonUtil.java.html#L75" class="el_method">getOMDOMDocument()</a></td><td class="bar" id="b7"><img src="../.resources/redbar.gif" width="13" height="10" title="7" alt="7"/><img src="../.resources/greenbar.gif" width="20" height="10" title="11" alt="11 "/></td><td class="ctr2" id="c10">61%</td><td class="bar" id="d11"/><td class="ctr2" id="e11">n/a</td><td class="ctr1" id="f10">0</td><td class="ctr2" id="g11">1</td><td class="ctr1" id="h6">2</td><td class="ctr2" id="i9">5</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a1"><a href="CommonUtil.java.html#L65" class="el_method">CommonUtil()</a></td><td class="bar" id="b8"><img src="../.resources/redbar.gif" width="5" height="10" title="3" alt="3"/></td><td class="ctr2" id="c17">0%</td><td class="bar" id="d12"/><td class="ctr2" id="e12">n/a</td><td class="ctr1" id="f8">1</td><td class="ctr2" id="g12">1</td><td class="ctr1" id="h8">1</td><td class="ctr2" id="i16">1</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k8">1</td></tr><tr><td id="a16"><a href="CommonUtil.java.html#L239" class="el_method">getTokenIssuerConfiguration(OMElement, String, Parameter)</a></td><td class="bar" id="b9"><img src="../.resources/redbar.gif" width="3" height="10" t itle="2" alt="2"/><img src="../.resources/greenbar.gif" width="35" height="10" title="19" alt="19"/></td><td class="ctr2" id="c7">90%</td><td class="bar" id="d0"><img src="../.resources/redbar.gif" width="40" height="10" title="2" alt="2"/><img src="../.resources/greenbar.gif" width="80" height="10" title="4" alt="4"/></td><td class="ctr2" id="e4">67%</td><td class="ctr1" id="f0">2</td><td class="ctr2" id="g1">4</td><td class="ctr1" id="h9">1</td><td class="ctr2" id="i4">9</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">1</td></tr><tr><td id="a3"><a href="CommonUtil.java.html#L294" class="el_method">createTokenIssuerConfiguration(Parameter)</a></td><td class="bar" id="b10"><img src="../.resources/redbar.gif" width="3" height="10" title="2" alt="2"/><img src="../.resources/greenbar.gif" width="30" height="10" title="16" alt="16"/></td><td class="ctr2" id="c8">89%</td><td class="bar" id="d1"><img src="../.resources/redbar.gif" width="40" height="10" title="2" alt="2"/><img src="../.resources/greenbar.gif" width="40" height="10" title="2" alt="2"/></td><td class="ctr2" id="e7">50%</td><td class="ctr1" id="f1">2</td><td class="ctr2" id="g3">3</td><td class="ctr1" id="h10">1</td><td class="ctr2" id="i13">4</td><td class="ctr1" id="j10">0</td><td class="ctr2" id="k10">1</td></tr><tr><td id="a11"><a href="CommonUtil.java.html#L143" class="el_method">getDecryptedBytes(CallbackHandler, Crypto, Node)</a></td><td class="bar" id="b11"><img src="../.resources/greenbar.gif" width="80" height="10" title="43" alt="43"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d13"/><td class="ctr2" id="e13">n/a</td><td class="ctr1" id="f11">0</td><td class="ctr2" id="g13">1</td><td class="ctr1" id="h11">0</td><td class="ctr2" id="i3">10</td><td class="ctr1" id="j11">0</td><td class="ctr2" id="k11">1</td></tr><tr><td id="a0"><a href="CommonUtil.java.html#L314" class="el_method">buildXMLObject(QName)</a></td><td class="bar" id="b12"><img src="../.resources/greenbar .gif" width="67" height="10" title="36" alt="36"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d6"><img src="../.resources/greenbar.gif" width="40" height="10" title="2" alt="2"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f12">0</td><td class="ctr2" id="g6">2</td><td class="ctr1" id="h12">0</td><td class="ctr2" id="i10">5</td><td class="ctr1" id="j12">0</td><td class="ctr2" id="k12">1</td></tr><tr><td id="a14"><a href="CommonUtil.java.html#L345" class="el_method">getSymmetricKeyBasedKeyInfo(Document, RahasData, X509Certificate, int, Crypto, int)</a></td><td class="bar" id="b13"><img src="../.resources/greenbar.gif" width="65" height="10" title="35" alt="35"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d14"/><td class="ctr2" id="e14">n/a</td><td class="ctr1" id="f13">0</td><td class="ctr2" id="g14">1</td><td class="ctr1" id="h13">0</td><td class="ctr2" id="i5">7</td><td class="ctr1" id="j13">0</td><td class="ctr2" id="k13">1</td></tr><tr> <td id="a15"><a href="CommonUtil.java.html#L368" class="el_method">getSymmetricKeyBasedKeyInfoContent(Document, byte[], X509Certificate, Crypto)</a></td><td class="bar" id="b14"><img src="../.resources/greenbar.gif" width="41" height="10" title="22" alt="22"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d15"/><td class="ctr2" id="e15">n/a</td><td class="ctr1" id="f14">0</td><td class="ctr2" id="g15">1</td><td class="ctr1" id="h14">0</td><td class="ctr2" id="i6">7</td><td class="ctr1" id="j14">0</td><td class="ctr2" id="k14">1</td></tr><tr><td id="a2"><a href="CommonUtil.java.html#L266" class="el_method">createTokenIssuerConfiguration(OMElement)</a></td><td class="bar" id="b15"><img src="../.resources/greenbar.gif" width="26" height="10" title="14" alt="14"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d7"><img src="../.resources/greenbar.gif" width="40" height="10" title="2" alt="2"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1" id="f15">0</td>< td class="ctr2" id="g7">2</td><td class="ctr1" id="h15">0</td><td class="ctr2" id="i14">4</td><td class="ctr1" id="j15">0</td><td class="ctr2" id="k15">1</td></tr><tr><td id="a6"><a href="CommonUtil.java.html#L396" class="el_method">getCertificateBasedKeyInfo(X509Certificate)</a></td><td class="bar" id="b16"><img src="../.resources/greenbar.gif" width="11" height="10" title="6" alt="6"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d16"/><td class="ctr2" id="e16">n/a</td><td class="ctr1" id="f16">0</td><td class="ctr2" id="g16">1</td><td class="ctr1" id="h16">0</td><td class="ctr2" id="i15">2</td><td class="ctr1" id="j16">0</td><td class="ctr2" id="k16">1</td></tr><tr><td id="a17"><a href="CommonUtil.java.html#L67" class="el_method">static {...}</a></td><td class="bar" id="b17"><img src="../.resources/greenbar.gif" width="7" height="10" title="4" alt="4"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d17"/><td class="ctr2" id="e17">n/a</td><td class="ctr1" id="f17">0</td><td class="ctr2" id="g17">1</td><td class="ctr1" id="h17">0</td><td class="ctr2" id="i17">1</td><td class="ctr1" id="j17">0</td><td class="ctr2" id="k17">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.util/CommonUtil.java.html URL: http://svn.apache.org/viewvc/axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl.util/CommonUtil.java.html?rev=1725383&r1=1725382&r2=1725383&view=diff ============================================================================== --- axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl.util/CommonUtil.java.html (original) +++ axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl.util/CommonUtil.java.html Mon Jan 18 23:07:55 2016 @@ -17,28 +17,42 @@ package org.apache.rahas.impl.util; import org.apache.axiom.om.OMAbstractFactory; +import org.apache.axiom.om.OMElement; import org.apache.axiom.om.dom.DOMMetaFactory; +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.RahasData; import org.apache.rahas.TrustException; -import org.apache.rahas.TrustUtil; -import org.apache.ws.security.WSDocInfo; -import org.apache.ws.security.WSSConfig; -import org.apache.ws.security.WSSecurityEngineResult; -import org.apache.ws.security.WSSecurityException; +import org.apache.rahas.impl.SAMLTokenIssuerConfig; +import org.apache.rahas.impl.TokenIssuerUtil; +import org.apache.ws.security.*; import org.apache.ws.security.components.crypto.Crypto; import org.apache.ws.security.components.crypto.CryptoFactory; import org.apache.ws.security.components.crypto.CryptoType; import org.apache.ws.security.handler.RequestData; +import org.apache.ws.security.message.WSSecEncryptedKey; import org.apache.ws.security.processor.EncryptedKeyProcessor; +import org.apache.ws.security.util.Base64; +import org.apache.ws.security.util.Loader; +import org.apache.xml.security.utils.EncryptionConstants; +import org.opensaml.Configuration; +import org.opensaml.xml.XMLObject; +import org.opensaml.xml.XMLObjectBuilder; +import org.opensaml.xml.encryption.EncryptedKey; +import org.opensaml.xml.signature.KeyInfo; +import org.opensaml.xml.signature.X509Data; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import javax.security.auth.callback.CallbackHandler; +import javax.xml.namespace.QName; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; +import java.security.cert.CertificateEncodingException; import java.security.cert.X509Certificate; import java.util.List; import java.util.Properties; @@ -48,9 +62,9 @@ import static org.apache.axiom.om.OMAbst /** * This class implements some utility methods common to SAML1 and SAML2. */ -<span class="nc" id="L51">public class CommonUtil {</span> +<span class="nc" id="L65">public class CommonUtil {</span> -<span class="fc" id="L53"> private static Log log = LogFactory.getLog(CommonUtil.class);</span> +<span class="fc" id="L67"> private static Log log = LogFactory.getLog(CommonUtil.class);</span> /** * This method creates a DOM compatible Axiom document. @@ -58,12 +72,12 @@ import static org.apache.axiom.om.OMAbst * @throws TrustException If an error occurred while creating the Document. */ public static Document getOMDOMDocument() throws TrustException { -<span class="fc" id="L61"> DOMMetaFactory metaFactory = (DOMMetaFactory) OMAbstractFactory.getMetaFactory(FEATURE_DOM);</span> -<span class="fc" id="L62"> DocumentBuilderFactory dbf = metaFactory.newDocumentBuilderFactory();</span> +<span class="fc" id="L75"> DOMMetaFactory metaFactory = (DOMMetaFactory) OMAbstractFactory.getMetaFactory(FEATURE_DOM);</span> +<span class="fc" id="L76"> DocumentBuilderFactory dbf = metaFactory.newDocumentBuilderFactory();</span> try { -<span class="fc" id="L64"> return dbf.newDocumentBuilder().newDocument();</span> -<span class="nc" id="L65"> } catch (ParserConfigurationException e) {</span> -<span class="nc" id="L66"> throw new TrustException("Error creating Axiom compatible DOM Document", e);</span> +<span class="fc" id="L78"> return dbf.newDocumentBuilder().newDocument();</span> +<span class="nc" id="L79"> } catch (ParserConfigurationException e) {</span> +<span class="nc" id="L80"> throw new TrustException("Error creating Axiom compatible DOM Document", e);</span> } } @@ -77,14 +91,14 @@ import static org.apache.axiom.om.OMAbst */ public static X509Certificate getCertificateByAlias(Crypto crypto, String alias) throws TrustException { -<span class="fc" id="L80"> X509Certificate[] certificates = getCertificatesByAlias(crypto, alias);</span> +<span class="fc" id="L94"> X509Certificate[] certificates = getCertificatesByAlias(crypto, alias);</span> -<span class="pc bpc" id="L82" title="1 of 2 branches missed."> if (certificates == null) {</span> -<span class="nc" id="L83"> log.error("Unable to retrieve certificate for alias " + alias);</span> -<span class="nc" id="L84"> throw new TrustException("issuerCertificateNotFound");</span> +<span class="pc bpc" id="L96" title="1 of 2 branches missed."> if (certificates == null) {</span> +<span class="nc" id="L97"> log.error("Unable to retrieve certificate for alias " + alias);</span> +<span class="nc" id="L98"> throw new TrustException("issuerCertificateNotFound");</span> } -<span class="fc" id="L87"> return certificates[0];</span> +<span class="fc" id="L101"> return certificates[0];</span> } /** @@ -98,20 +112,20 @@ import static org.apache.axiom.om.OMAbst public static X509Certificate[] getCertificatesByAlias(Crypto crypto, String alias) throws TrustException { // TODO are we always looking up by alias ? Dont we need to lookup by any other attribute ? -<span class="fc" id="L101"> CryptoType type = new CryptoType(CryptoType.TYPE.ALIAS);</span> -<span class="fc" id="L102"> type.setAlias(alias);</span> +<span class="fc" id="L115"> CryptoType type = new CryptoType(CryptoType.TYPE.ALIAS);</span> +<span class="fc" id="L116"> type.setAlias(alias);</span> try { -<span class="fc" id="L105"> X509Certificate[] certificates = crypto.getX509Certificates(type);</span> +<span class="fc" id="L119"> X509Certificate[] certificates = crypto.getX509Certificates(type);</span> -<span class="pc bpc" id="L107" title="1 of 2 branches missed."> if (certificates == null) {</span> -<span class="nc" id="L108"> log.debug("Unable to retrieve certificate for alias " + alias);</span> -<span class="nc" id="L109"> return new X509Certificate[0];</span> +<span class="pc bpc" id="L121" title="1 of 2 branches missed."> if (certificates == null) {</span> +<span class="nc" id="L122"> log.debug("Unable to retrieve certificate for alias " + alias);</span> +<span class="nc" id="L123"> return new X509Certificate[0];</span> } -<span class="fc" id="L111"> return certificates;</span> -<span class="nc" id="L112"> } catch (WSSecurityException e) {</span> -<span class="nc" id="L113"> log.error("Unable to retrieve certificate for alias " + alias, e);</span> -<span class="nc" id="L114"> throw new TrustException("issuerCertificateNotFound", e);</span> +<span class="fc" id="L125"> return certificates;</span> +<span class="nc" id="L126"> } catch (WSSecurityException e) {</span> +<span class="nc" id="L127"> log.error("Unable to retrieve certificate for alias " + alias, e);</span> +<span class="nc" id="L128"> throw new TrustException("issuerCertificateNotFound", e);</span> } } @@ -126,28 +140,25 @@ import static org.apache.axiom.om.OMAbst public static byte[] getDecryptedBytes(CallbackHandler callbackHandler, Crypto crypto, Node encryptedKeyElement) throws WSSecurityException { - // TODO make this code more efficient and reader friendly +<span class="fc" id="L143"> EncryptedKeyProcessor encryptedKeyProcessor = new EncryptedKeyProcessor();</span> -<span class="nc" id="L131"> EncryptedKeyProcessor encryptedKeyProcessor = new EncryptedKeyProcessor();</span> +<span class="fc" id="L145"> RequestData requestData = new RequestData();</span> +<span class="fc" id="L146"> requestData.setCallbackHandler(callbackHandler);</span> +<span class="fc" id="L147"> requestData.setDecCrypto(crypto);</span> -<span class="nc" id="L133"> RequestData requestData = new RequestData();</span> -<span class="nc" id="L134"> requestData.setCallbackHandler(callbackHandler);</span> -<span class="nc" id="L135"> requestData.setDecCrypto(crypto);</span> +<span class="fc" id="L149"> final WSSConfig cfg = WSSConfig.getNewInstance();</span> +<span class="fc" id="L150"> requestData.setWssConfig(cfg);</span> -<span class="nc" id="L137"> final WSSConfig cfg = WSSConfig.getNewInstance();</span> -<span class="nc" id="L138"> requestData.setWssConfig(cfg);</span> +<span class="fc" id="L152"> WSDocInfo docInfo = new WSDocInfo(encryptedKeyElement.getOwnerDocument());</span> -<span class="nc" id="L140"> WSDocInfo docInfo = new WSDocInfo(encryptedKeyElement.getOwnerDocument());</span> + List<WSSecurityEngineResult> resultList; -<span class="nc" id="L142"> List<WSSecurityEngineResult> resultList</span> - = null; +<span class="fc" id="L156"> resultList = encryptedKeyProcessor.handleToken((Element) encryptedKeyElement, requestData, docInfo);</span> -<span class="nc" id="L145"> resultList = encryptedKeyProcessor.handleToken((Element) encryptedKeyElement, requestData, docInfo);</span> +<span class="fc" id="L159"> WSSecurityEngineResult wsSecurityEngineResult = resultList.get(0);</span> -<span class="nc" id="L148"> WSSecurityEngineResult wsSecurityEngineResult = resultList.get(0);</span> - -<span class="nc" id="L150"> return (byte[]) wsSecurityEngineResult.get(WSSecurityEngineResult.TAG_SECRET);</span> +<span class="fc" id="L161"> return (byte[]) wsSecurityEngineResult.get(WSSecurityEngineResult.TAG_SECRET);</span> } /** @@ -160,10 +171,10 @@ import static org.apache.axiom.om.OMAbst */ public static Crypto getCrypto(Properties properties, ClassLoader classLoader) throws TrustException { try { -<span class="fc" id="L163"> return CryptoFactory.getInstance(properties, classLoader);</span> -<span class="nc" id="L164"> } catch (WSSecurityException e) {</span> -<span class="nc" id="L165"> log.error("An error occurred while loading crypto properties", e);</span> -<span class="nc" id="L166"> throw new TrustException("errorLoadingCryptoProperties", e);</span> +<span class="nc" id="L174"> return CryptoFactory.getInstance(properties, classLoader);</span> +<span class="nc" id="L175"> } catch (WSSecurityException e) {</span> +<span class="nc" id="L176"> log.error("An error occurred while loading crypto properties", e);</span> +<span class="nc" id="L177"> throw new TrustException("errorLoadingCryptoProperties", e);</span> } } @@ -178,12 +189,290 @@ import static org.apache.axiom.om.OMAbst */ public static Crypto getCrypto(String propertiesFile, ClassLoader classLoader) throws TrustException { try { -<span class="nc" id="L181"> return CryptoFactory.getInstance(propertiesFile, classLoader);</span> -<span class="nc" id="L182"> } catch (WSSecurityException e) {</span> -<span class="nc" id="L183"> log.error("An error occurred while loading crypto properties with property file " + propertiesFile, e);</span> -<span class="nc" id="L184"> throw new TrustException("errorLoadingCryptoProperties", new Object[]{propertiesFile}, e);</span> +<span class="nc" id="L192"> return CryptoFactory.getInstance(propertiesFile, classLoader);</span> +<span class="nc" id="L193"> } catch (WSSecurityException e) {</span> +<span class="nc" id="L194"> log.error("An error occurred while loading crypto properties with property file " + propertiesFile, e);</span> +<span class="nc" id="L195"> throw new TrustException("errorLoadingCryptoProperties", new Object[]{propertiesFile}, e);</span> + + } + } + + /** + * Creates the token issuer configuration. The configuration is created in following order, + * 1. Try create token configuration using configuration OMElement + * 2. Try create token configuration using a configuration file name + * 3. Try create token configuration using a parameter name in message context. + * The issuer configuration would look like as follows, + * + * <saml-issuer-config> + * <issuerName>Test_STS</issuerName> + * <issuerKeyAlias>ip</issuerKeyAlias> + * <issuerKeyPassword>password</issuerKeyPassword> + * <cryptoProperties> + * <crypto provider="org.apache.ws.security.components.crypto.Merlin"> + * <property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</property> + * <property name="org.apache.ws.security.crypto.merlin.file">META-INF/rahas-sts.jks</property> + * <property name="org.apache.ws.security.crypto.merlin.keystore.password">password</property> + * </crypto> + * </cryptoProperties> + * <timeToLive>300000</timeToLive> + * <keySize>256</keySize> + * <addRequestedAttachedRef /> + * <addRequestedUnattachedRef /> + * <keyComputation>2</keyComputation> + * <proofKeyType>BinarySecret</proofKeyType> + * <trusted-services> + * <service alias="bob">http://localhost:8080/axis2/services/STS</service> + * </trusted-services> + * </saml-issuer-config> + * + * @param configElement Configuration as an OMElement. + * @param configFile Configuration as a file. + * @param messageContextParameter Configuration as a message context parameter. + * @return Token issuer configuration as a SAMLTokenIssuerConfig object. + * @throws TrustException If an error occurred while creating SAMLTokenIssuerConfig object. + */ + public static SAMLTokenIssuerConfig getTokenIssuerConfiguration(OMElement configElement, String configFile, + Parameter messageContextParameter) throws TrustException { + + // First try using configuration element +<span class="fc" id="L239"> SAMLTokenIssuerConfig tokenIssuerConfiguration = createTokenIssuerConfiguration(configElement);</span> + +<span class="fc bfc" id="L241" title="All 2 branches covered."> if (tokenIssuerConfiguration == null) {</span> + + // Now try file +<span class="fc" id="L244"> tokenIssuerConfiguration = createTokenIssuerConfiguration(configFile);</span> + +<span class="pc bpc" id="L246" title="1 of 2 branches missed."> if (tokenIssuerConfiguration == null) {</span> + + // Finally try using the parameter +<span class="pc bpc" id="L249" title="1 of 2 branches missed."> if (messageContextParameter != null) {</span> +<span class="fc" id="L250"> tokenIssuerConfiguration = createTokenIssuerConfiguration(messageContextParameter);</span> + } + +<span class="fc" id="L253"> return tokenIssuerConfiguration;</span> + } else { +<span class="nc" id="L255"> return tokenIssuerConfiguration;</span> + } + + } else { +<span class="fc" id="L259"> return tokenIssuerConfiguration;</span> + } + } + + protected static SAMLTokenIssuerConfig createTokenIssuerConfiguration(OMElement configElement) + throws TrustException { + +<span class="fc bfc" id="L266" title="All 2 branches covered."> if (configElement != null) {</span> +<span class="fc" id="L268"> log.debug("Creating token issuer configuration using OMElement");</span> + +<span class="fc" id="L270"> return new SAMLTokenIssuerConfig(configElement</span> + .getFirstChildWithName(SAMLTokenIssuerConfig.SAML_ISSUER_CONFIG)); + } + +<span class="fc" id="L274"> return null;</span> + } + + protected static SAMLTokenIssuerConfig createTokenIssuerConfiguration(String configFile) throws TrustException { + +<span class="fc bfc" id="L279" title="All 2 branches covered."> if (configFile != null) {</span> + +<span class="pc bpc" id="L281" title="1 of 2 branches missed."> if (log.isDebugEnabled()) {</span> +<span class="nc" id="L282"> log.debug("Creating token issuer configuration using file " + configFile);</span> + } + +<span class="fc" id="L285"> return new SAMLTokenIssuerConfig(configFile);</span> } + +<span class="fc" id="L288"> return null;</span> + } + + protected static SAMLTokenIssuerConfig createTokenIssuerConfiguration(Parameter messageContextParameter) + throws TrustException { + +<span class="pc bpc" id="L294" title="2 of 4 branches missed."> if (messageContextParameter != null && messageContextParameter.getParameterElement() != null) {</span> + +<span class="fc" id="L296"> log.debug("Creating token issuer configuration using the config parameter");</span> + +<span class="fc" id="L298"> return new SAMLTokenIssuerConfig(messageContextParameter</span> + .getParameterElement().getFirstChildWithName( + SAMLTokenIssuerConfig.SAML_ISSUER_CONFIG)); + } + +<span class="nc" id="L303"> return null;</span> + } + + /** + * Builds the requested XMLObject. + * + * @param objectQName name of the XMLObject + * @return the build XMLObject + * @throws org.apache.rahas.TrustException If unable to find the appropriate builder. + */ + public static XMLObject buildXMLObject(QName objectQName) throws TrustException { +<span class="fc" id="L314"> XMLObjectBuilder builder = Configuration.getBuilderFactory().getBuilder(objectQName);</span> +<span class="fc bfc" id="L315" title="All 2 branches covered."> if (builder == null) {</span> +<span class="fc" id="L316"> log.debug("Unable to find OpenSAML builder for object " + objectQName);</span> +<span class="fc" id="L317"> throw new TrustException("builderNotFound",new Object[]{objectQName});</span> + } +<span class="fc" id="L319"> return builder.buildObject(objectQName.getNamespaceURI(), objectQName.getLocalPart(), objectQName.getPrefix());</span> + } + + /** + * This method creates KeyInfo element of an assertion. This is a facade, in which it calls + * to other helper methods to create KeyInfo. The TokenIssuer will call this method to + * create the KeyInfo. + * @param doc An Axiom based DOM Document. + * @param data The ephemeral key which we use here need in encrypting the message also. Therefore + * we need to save the ephemeral key in RahasData passed here. + * @param serviceCert Public key used to encrypt the assertion is extracted from this certificate. + * @param keySize Size of the key to be used + * @param crypto The relevant private key + * @param keyComputation Key computation mechanism. + * @return OpenSAML KeyInfo representation. + * @throws WSSecurityException We use WSS4J to generate encrypted key. This exception will trigger if an + * error occurs while generating the encrypted key. + * @throws TrustException If an error occurred while creating KeyInfo object. + */ + public static KeyInfo getSymmetricKeyBasedKeyInfo(Document doc, + RahasData data, + X509Certificate serviceCert, + int keySize, + Crypto crypto, + int keyComputation) throws WSSecurityException, TrustException { + +<span class="fc" id="L345"> byte[] ephemeralKey = TokenIssuerUtil.getSharedSecret(</span> + data, keyComputation, keySize); + +<span class="fc" id="L348"> WSSecEncryptedKey encryptedKey = getSymmetricKeyBasedKeyInfoContent(doc, ephemeralKey, serviceCert, crypto);</span> + + // Extract the base64 encoded secret value +<span class="fc" id="L351"> byte[] tempKey = new byte[keySize / 8];</span> +<span class="fc" id="L352"> System.arraycopy(encryptedKey.getEphemeralKey(), 0, tempKey,</span> + 0, keySize / 8); + + +<span class="fc" id="L356"> data.setEphmeralKey(tempKey);</span> + +<span class="fc" id="L358"> EncryptedKey samlEncryptedKey = SAMLUtils.createEncryptedKey(serviceCert, encryptedKey);</span> +<span class="fc" id="L359"> return SAMLUtils.createKeyInfo(samlEncryptedKey);</span> + } + + static WSSecEncryptedKey getSymmetricKeyBasedKeyInfoContent(Document doc, + byte[] ephemeralKey, + X509Certificate serviceCert, + Crypto crypto) throws WSSecurityException, + TrustException { + // Create the encrypted key +<span class="fc" id="L368"> WSSecEncryptedKey encryptedKeyBuilder = new WSSecEncryptedKey();</span> + + // Use thumbprint id +<span class="fc" id="L371"> encryptedKeyBuilder</span> + .setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER); + + // SEt the encryption cert +<span class="fc" id="L375"> encryptedKeyBuilder.setUseThisCert(serviceCert);</span> + +<span class="fc" id="L377"> encryptedKeyBuilder.setEphemeralKey(ephemeralKey);</span> + + // Set key encryption algo +<span class="fc" id="L380"> encryptedKeyBuilder</span> + .setKeyEncAlgo(EncryptionConstants.ALGO_ID_KEYTRANSPORT_RSA15); + + // Build +<span class="fc" id="L384"> encryptedKeyBuilder.prepare(doc, crypto);</span> + +<span class="fc" id="L386"> return encryptedKeyBuilder;</span> + } + + /** + * Creates the certificate based KeyInfo object. + * @param certificate The public key certificate used to create the KeyInfo object. + * @return OpenSAML representation of KeyInfo object. + * @throws TrustException If an error occurred while creating the KeyInfo + */ + public static KeyInfo getCertificateBasedKeyInfo(X509Certificate certificate) throws TrustException { +<span class="fc" id="L396"> X509Data x509Data = CommonUtil.createX509Data(certificate);</span> +<span class="fc" id="L397"> return SAMLUtils.createKeyInfo(x509Data);</span> + } + + /** + * Creates the X509 data element in a SAML issuer token. Should create an element similar to following, + * <X509Data xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" + * xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> + * <X509Certificate> + * MIICNTCCAZ6gAwIB... + * </X509Certificate> + * </X509Data> + * @param clientCert Client certificate to be used when generating X509 data + * @return SAML X509Data representation. + * @throws TrustException If an error occurred while creating X509Data and X509Certificate. + */ + static X509Data createX509Data(X509Certificate clientCert) throws TrustException { + + byte[] clientCertBytes; + try { +<span class="fc" id="L416"> clientCertBytes = clientCert.getEncoded();</span> +<span class="nc" id="L417"> } catch (CertificateEncodingException e) {</span> +<span class="nc" id="L418"> log.error("An error occurred while encoding certificate.", e);</span> +<span class="nc" id="L419"> throw new TrustException("An error occurred while encoding certificate.", e);</span> +<span class="fc" id="L420"> }</span> +<span class="fc" id="L421"> String base64Cert = Base64.encode(clientCertBytes);</span> + +<span class="fc" id="L423"> org.opensaml.xml.signature.X509Certificate x509Certificate</span> + = (org.opensaml.xml.signature.X509Certificate)CommonUtil.buildXMLObject + (org.opensaml.xml.signature.X509Certificate.DEFAULT_ELEMENT_NAME); + +<span class="fc" id="L427"> x509Certificate.setValue(base64Cert);</span> + +<span class="fc" id="L429"> X509Data x509Data = (X509Data)CommonUtil.buildXMLObject(X509Data.DEFAULT_ELEMENT_NAME);</span> +<span class="fc" id="L430"> x509Data.getX509Certificates().add(x509Certificate);</span> + +<span class="fc" id="L432"> return x509Data;</span> + } + + /** + * Gets the SAML callback handler. First checks whether there is a registered callback handler in token + * issuer configuration. If not this will check whether there is a callback class configured in token issuer + * configuration. If class name is specified this method will create an object of the class and will return. + * If class name is also not specified this method will return null. + * @param tokenIssuerConfiguration The SAML token issuer configuration. + * @param data The RahasData. + * @return The SAMLCallbackHandler if configured in token issuer configuration, else null. + * @throws TrustException If an error occurred while loading class from class loader + */ + public static SAMLCallbackHandler getSAMLCallbackHandler(SAMLTokenIssuerConfig tokenIssuerConfiguration, + RahasData data) throws TrustException { +<span class="fc bfc" id="L447" title="All 2 branches covered."> if (tokenIssuerConfiguration.getCallbackHandler() != null) {</span> + +<span class="fc" id="L449"> return tokenIssuerConfiguration.getCallbackHandler();</span> + +<span class="pc bpc" id="L451" title="1 of 4 branches missed."> } else if (tokenIssuerConfiguration.getCallbackHandlerName() != null</span> + && tokenIssuerConfiguration.getCallbackHandlerName().trim().length() > 0) { + + SAMLCallbackHandler handler; +<span class="fc" id="L455"> MessageContext msgContext = data.getInMessageContext();</span> +<span class="fc" id="L456"> ClassLoader classLoader = msgContext.getAxisService().getClassLoader();</span> + Class cbClass; + try { +<span class="fc" id="L459"> cbClass = Loader.loadClass(classLoader, tokenIssuerConfiguration.getCallbackHandlerName());</span> +<span class="nc" id="L460"> } catch (ClassNotFoundException e) {</span> +<span class="nc" id="L461"> throw new TrustException("cannotLoadPWCBClass", new String[]{tokenIssuerConfiguration</span> + .getCallbackHandlerName()}, e); +<span class="fc" id="L463"> }</span> + try { +<span class="fc" id="L465"> handler = (SAMLCallbackHandler) cbClass.newInstance();</span> +<span class="nc" id="L466"> } catch (java.lang.Exception e) {</span> +<span class="nc" id="L467"> throw new TrustException("cannotCreatePWCBInstance", new String[]{tokenIssuerConfiguration</span> + .getCallbackHandlerName()}, e); +<span class="fc" id="L469"> }</span> + +<span class="fc" id="L471"> return handler;</span> + } + +<span class="fc" id="L474"> return null;</span> + } } </pre><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.util/SAML2Utils.html URL: http://svn.apache.org/viewvc/axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl.util/SAML2Utils.html?rev=1725383&r1=1725382&r2=1725383&view=diff ============================================================================== --- axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl.util/SAML2Utils.html (original) +++ axis/site/axis2/java/rampart-staging/code-coverage/org.apache.rahas.impl.util/SAML2Utils.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>SAML2Utils</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> > <a href="index.html" class="el_package">org.apache.rahas.impl.util</a> > <span class="el_class">SAML2Utils</span></div><h1>SAML2Utils</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" o nclick="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">530 of 530</td><td class="ctr2">0%</td><td class="bar">46 of 46</td><td class="ctr2">0%</td><td class="ctr1">29</td><td class="ctr2">29</td><td class="ctr1">127</td><td class=" ctr2">127</td><td class="ctr1">6</td><td class="ctr2">6</td></tr></tfoot><tbody><tr><td id="a1"><a href="SAML2Utils.java.html#L164" class="el_method">getSAML2KeyInfo(Assertion, Crypto, CallbackHandler)</a></td><td class="bar" id="b0"><img src="../.resources/redbar.gif" width="120" height="10" title="332" alt="332"/></td><td class="ctr2" id="c0">0%</td><td class="bar" id="d0"><img src="../.resources/redbar.gif" width="120" height="10" title="42" alt="42"/></td><td class="ctr2" id="e0">0%</td><td class="ctr1" id="f0">22</td><td class="ctr2" id="g0">22</td><td class="ctr1" id="h0">72</td><td class="ctr2" id="i0">72</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a href="SAML2Utils.java.html#L67" class="el_method">getElementFromAssertion(XMLObject)</a></td><td class="bar" id="b1"><img src="../.resources/redbar.gif" width="31" height="10" title="88" alt="88"/></td><td class="ctr2" id="c1">0%</td><td class="bar" id="d1"><img src="../.resources/redba r.gif" width="5" height="10" title="2" alt="2"/></td><td class="ctr2" id="e1">0%</td><td class="ctr1" id="f1">2</td><td class="ctr2" id="g1">2</td><td class="ctr1" id="h1">26</td><td class="ctr2" id="i1">26</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a2"><a href="SAML2Utils.java.html#L125" class="el_method">getSAML2KeyInfo(Element, Crypto, CallbackHandler)</a></td><td class="bar" id="b2"><img src="../.resources/redbar.gif" width="31" height="10" title="86" alt="86"/></td><td class="ctr2" id="c2">0%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h2">22</td><td class="ctr2" id="i2">22</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a3"><a href="SAML2Utils.java.html#L318" class="el_method">getSAML2SubjectConfirmationMethod(Assertion)</a></td><td class="bar" id="b3"><img src="../.resources/redbar.gif" width="6" height ="10" title="17" alt="17"/></td><td class="ctr2" id="c3">0%</td><td class="bar" id="d2"><img src="../.resources/redbar.gif" width="5" height="10" title="2" alt="2"/></td><td class="ctr2" id="e2">0%</td><td class="ctr1" id="f2">2</td><td class="ctr2" id="g2">2</td><td class="ctr1" id="h3">5</td><td class="ctr2" id="i3">5</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a5"><a href="SAML2Utils.java.html#L62" class="el_method">static {...}</a></td><td class="bar" id="b4"><img src="../.resources/redbar.gif" width="1" height="10" title="4" alt="4"/></td><td class="ctr2" id="c4">0%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">1</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j4">1</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a4"><a href="SAML2Utils.java.html#L60" class="el_method">SAML2Utils()</a></td><td class="bar" id="b5"><img src="../ .resources/redbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c5">0%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">1</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">1</td><td class="ctr2" id="i5">1</td><td class="ctr1" id="j5">1</td><td class="ctr2" id="k5">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>SAML2Utils</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> > <a href="index.html" class="el_package">org.apache.rahas.impl.util</a> > <span class="el_class">SAML2Utils</span></div><h1>SAML2Utils</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" o nclick="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">483 of 532</td><td class="ctr2">9%</td><td class="bar">42 of 42</td><td class="ctr2">0%</td><td class="ctr1">26</td><td class="ctr2">31</td><td class="ctr1">109</td><td class=" ctr2">125</td><td class="ctr1">5</td><td class="ctr2">10</td></tr></tfoot><tbody><tr><td id="a5"><a href="SAML2Utils.java.html#L136" class="el_method">getSAML2KeyInfo(Assertion, Crypto, CallbackHandler)</a></td><td class="bar" id="b0"><img src="../.resources/redbar.gif" width="120" height="10" title="329" alt="329"/></td><td class="ctr2" id="c5">0%</td><td class="bar" id="d0"><img src="../.resources/redbar.gif" width="120" height="10" title="40" alt="40"/></td><td class="ctr2" id="e0">0%</td><td class="ctr1" id="f0">21</td><td class="ctr2" id="g0">21</td><td class="ctr1" id="h0">68</td><td class="ctr2" id="i0">68</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a6"><a href="SAML2Utils.java.html#L97" class="el_method">getSAML2KeyInfo(Element, Crypto, CallbackHandler)</a></td><td class="bar" id="b1"><img src="../.resources/redbar.gif" width="31" height="10" title="86" alt="86"/></td><td class="ctr2" id="c6">0%</td><td class="bar" id="d2"/><td class="c tr2" id="e2">n/a</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h1">22</td><td class="ctr2" id="i1">22</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a4"><a href="SAML2Utils.java.html#L68" class="el_method">getElementFromAssertion(XMLObject)</a></td><td class="bar" id="b2"><img src="../.resources/redbar.gif" width="10" height="10" title="28" alt="28"/></td><td class="ctr2" id="c7">0%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h2">7</td><td class="ctr2" id="i2">7</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a7"><a href="SAML2Utils.java.html#L282" class="el_method">getSAML2SubjectConfirmationMethod(Assertion)</a></td><td class="bar" id="b3"><img src="../.resources/redbar.gif" width="6" height="10" title="17" alt="17"/></td><td class="ctr2" id="c8">0%</td><td class="bar" id ="d1"><img src="../.resources/redbar.gif" width="6" height="10" title="2" alt="2"/></td><td class="ctr2" id="e1">0%</td><td class="ctr1" id="f1">2</td><td class="ctr2" id="g1">2</td><td class="ctr1" id="h3">5</td><td class="ctr2" id="i5">5</td><td class="ctr1" id="j3">1</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a0"><a href="SAML2Utils.java.html#L293" class="el_method">createAssertion()</a></td><td class="bar" id="b4"><img src="../.resources/redbar.gif" width="2" height="10" title="7" alt="7"/><img src="../.resources/greenbar.gif" width="4" height="10" title="12" alt="12"/></td><td class="ctr2" id="c3">63%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">2</td><td class="ctr2" id="i3">6</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a2"><a href="SAML2Utils.java.html#L306" class="el_method">createIssuer(String)</a></td><td class="bar" id="b5 "><img src="../.resources/redbar.gif" width="2" height="10" title="7" alt="7"/><img src="../.resources/greenbar.gif" width="3" height="10" title="9" alt="9"/></td><td class="ctr2" id="c4">56%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">2</td><td class="ctr2" id="i6">5</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a1"><a href="SAML2Utils.java.html#L316" class="el_method">createConditions(DateTime, DateTime)</a></td><td class="bar" id="b6"><img src="../.resources/redbar.gif" width="2" height="10" title="6" alt="6"/><img src="../.resources/greenbar.gif" width="4" height="10" title="12" alt="12"/></td><td class="ctr2" id="c2">67%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">2</td><td class="ctr2" id="i4">6</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a8"><a href="SAML2Utils.java.html#L61" class="el_method">SAML2Utils()</a></td><td class="bar" id="b7"><img src="../.resources/redbar.gif" width="1" height="10" title="3" alt="3"/></td><td class="ctr2" id="c9">0%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g7">1</td><td class="ctr1" id="h7">1</td><td class="ctr2" id="i8">1</td><td class="ctr1" id="j4">1</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a3"><a href="SAML2Utils.java.html#L334" class="el_method">createNamedIdentifier(String, String)</a></td><td class="bar" id="b8"><img src="../.resources/greenbar.gif" width="4" height="10" title="12" alt="12"/></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="i7">4</td><td class="ctr1" id="j8">0</td><td class="ctr2 " id="k8">1</td></tr><tr><td id="a9"><a href="SAML2Utils.java.html#L63" class="el_method">static {...}</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="i9">1</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">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
