diff options
author | Christina Fu <cfu@redhat.com> | 2012-04-05 17:39:51 -0700 |
---|---|---|
committer | Christina Fu <cfu@redhat.com> | 2012-04-05 17:39:51 -0700 |
commit | 59fc17a56117020dc3ce6ca42993f5eedbb6ae09 (patch) | |
tree | ed3b02ae9678ab830ac7bf0de018d8c792551f6b | |
parent | 762f9674a0bd054dc81c8891fbb281b177a5f403 (diff) | |
download | pki-59fc17a56117020dc3ce6ca42993f5eedbb6ae09.tar.gz pki-59fc17a56117020dc3ce6ca42993f5eedbb6ae09.tar.xz pki-59fc17a56117020dc3ce6ca42993f5eedbb6ae09.zip |
pki-ui changes for Bug 745278 - [RFE] ECC encryption keys cannot be archived
6 files changed, 30 insertions, 17 deletions
diff --git a/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerial.template b/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerial.template index a88599ede..8b6795365 100644 --- a/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerial.template +++ b/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerial.template @@ -100,11 +100,17 @@ if (result.header.errorDetails != null) { document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.keyAlgorithm + '</font></td>'); document.writeln('</tr>'); - document.writeln('<tr>'); - document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Key length:</font></td>'); - document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.keyLength + '</font></td>'); - document.writeln('</tr>'); - + if ((result.header.EllipticCurve != null)) { + document.writeln('<tr>'); + document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Elliptic Key Curve:</font></td>'); + document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.EllipticCurve + '</font></td>'); + document.writeln('</tr>'); + } else { + document.writeln('<tr>'); + document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Key length:</font></td>'); + document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.keyLength + '</font></td>'); + document.writeln('</tr>'); + } document.write("</table>"); document.writeln('<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" BACKGROUND="/graphics/hr.gif"><TR><TD> </TD></TR></TABLE>'); diff --git a/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerialForRecovery.template b/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerialForRecovery.template index 717d1d7d6..b1c931b12 100644 --- a/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerialForRecovery.template +++ b/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerialForRecovery.template @@ -143,10 +143,17 @@ if (result.header.errorDetails != null) { document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.keyAlgorithm + '</font></td>'); document.writeln('</tr>'); - document.writeln('<tr>'); - document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Key length:</font></td>'); - document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.keyLength + '</font></td>'); - document.writeln('</tr>'); + if (result.header.EllipticCurve != null) { + document.writeln('<tr>'); + document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Elliptic Key Curve:</font></td>'); + document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.EllipticCurve + '</font></td>'); + document.writeln('</tr>'); + } else { + document.writeln('<tr>'); + document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Key length:</font></td>'); + document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.keyLength + '</font></td>'); + document.writeln('</tr>'); + } document.writeln('<tr>'); document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Async Recovery:</font></td>'); diff --git a/dogtag/kra-ui/shared/webapps/kra/agent/kra/queryKey.template b/dogtag/kra-ui/shared/webapps/kra/agent/kra/queryKey.template index 0bea5f140..f7560a193 100644 --- a/dogtag/kra-ui/shared/webapps/kra/agent/kra/queryKey.template +++ b/dogtag/kra-ui/shared/webapps/kra/agent/kra/queryKey.template @@ -129,8 +129,8 @@ function displayKeyRecord(rec) document.write(renderDetailsButton(rec.serialNumber)); document.write('</td>'); document.write('<td align=left colspan=2><font size="-1" face="PrimasSans BT, Verdana, sans-serif">' + - renderOidName(rec.keyAlgorithm) + (rec.keyLength != null ? - " with "+ rec.keyLength + "-bit key" : "")+ '</font></td>'); + renderOidName(rec.keyAlgorithm) + (((rec.keyLength != null) && (rec.keyLength >= 0)) ? + " with "+ rec.keyLength + "-bit key" : ((rec.EllipticCurve != null)? " with " + rec.EllipticCurve:""))+ '</font></td>'); document.write('<td align=left colspan=2><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + rec.ownerName + '</font></td>'); document.write('</tr>'); diff --git a/dogtag/kra-ui/shared/webapps/kra/agent/kra/queryKeyForRecovery.template b/dogtag/kra-ui/shared/webapps/kra/agent/kra/queryKeyForRecovery.template index 09e873377..590584dd4 100644 --- a/dogtag/kra-ui/shared/webapps/kra/agent/kra/queryKeyForRecovery.template +++ b/dogtag/kra-ui/shared/webapps/kra/agent/kra/queryKeyForRecovery.template @@ -141,8 +141,8 @@ function displayKeyRecord(rec) document.write(renderDetailsButton(rec.serialNumber,result.header.publicKeyData)); document.write('</td>'); document.write('<td align=left colspan=2><font size="-1" face="PrimasSans BT, Verdana, sans-serif">' + - renderOidName(rec.keyAlgorithm) + (rec.keyLength != null ? - " with "+ rec.keyLength + "-bit key" : "")+ '</font></td>'); + renderOidName(rec.keyAlgorithm) + (((rec.keyLength != null) && (rec.keyLength >= 0)) ? + " with "+ rec.keyLength + "-bit key" : ((rec.EllipticCurve != null)? " with " + rec.EllipticCurve:""))+ '</font></td>'); document.write('<td align=left colspan=2><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + rec.ownerName + '</font></td>'); document.write('</tr>'); diff --git a/dogtag/kra-ui/shared/webapps/kra/agent/kra/srchKey.template b/dogtag/kra-ui/shared/webapps/kra/agent/kra/srchKey.template index a06999996..bc64ea445 100644 --- a/dogtag/kra-ui/shared/webapps/kra/agent/kra/srchKey.template +++ b/dogtag/kra-ui/shared/webapps/kra/agent/kra/srchKey.template @@ -129,8 +129,8 @@ function displayKeyRecord(rec) document.write(renderDetailsButton(rec.serialNumber)); document.write('</td>'); document.write('<td align=left colspan=2><font size="-1" face="PrimasSans BT, Verdana, sans-serif">' + - renderOidName(rec.keyAlgorithm) + (rec.keyLength != null ? - " with "+ rec.keyLength + "-bit key" : "")+ '</font></td>'); + renderOidName(rec.keyAlgorithm) + (((rec.keyLength != null) && (rec.keyLength >= 0)) ? + " with "+ rec.keyLength + "-bit key" : ((rec.EllipticCurve != null)? " with " + rec.EllipticCurve:""))+ '</font></td>'); document.write('<td align=left colspan=2><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + rec.ownerName + '</font></td>'); document.write('</tr>'); diff --git a/dogtag/kra-ui/shared/webapps/kra/agent/kra/srchKeyForRecovery.template b/dogtag/kra-ui/shared/webapps/kra/agent/kra/srchKeyForRecovery.template index 4c5387c32..2c421a5e7 100644 --- a/dogtag/kra-ui/shared/webapps/kra/agent/kra/srchKeyForRecovery.template +++ b/dogtag/kra-ui/shared/webapps/kra/agent/kra/srchKeyForRecovery.template @@ -142,8 +142,8 @@ function displayKeyRecord(rec) document.write(renderDetailsButton(rec.serialNumber,result.header.publicKeyData)); document.write('</td>'); document.write('<td align=left colspan=2><font size="-1" face="PrimasSans BT, Verdana, sans-serif">' + - renderOidName(rec.keyAlgorithm) + (rec.keyLength != null ? - " with "+ rec.keyLength + "-bit key" : "")+ '</font></td>'); + renderOidName(rec.keyAlgorithm) + (((rec.keyLength != null) && (rec.keyLength >= 0)) ? + " with "+ rec.keyLength + "-bit key" : ((rec.EllipticCurve != null)? " with " + rec.EllipticCurve:""))+ '</font></td>'); document.write('<td align=left colspan=2><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + rec.ownerName + '</font></td>'); document.write('</tr>'); |