⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 viewcertificate.jsp

📁 一套JAVA的CA证书签发系统.
💻 JSP
📖 第 1 页 / 共 2 页
字号:
    if(certificateserno != null){ %>     <input type="hidden" name='<%= CERTSERNO_PARAMETER %>' value='<%=certificateserno %>'>      <% }     if(cacerts){ %>     <input type="hidden" name='<%= CACERT_PARAMETER %>' value='<%=caid %>'>      <% } %>     <input type="hidden" name='<%= HIDDEN_INDEX %>' value='<%=currentindex %>'>     <table border="0" cellpadding="0" cellspacing="2" width="500">      <% if(username != null){%>      <tr id="Row<%=(row++)%2%>">	<td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("USERNAME") %></td>	<td><%= certificatedata.getUsername() %>        </td>      </tr>      <% if(tokensn != null){ %>       <tr id="Row<%=(row++)%2%>">	<td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("HARDTOKENSN") %></td>	<td><%= tokensn %>        </td>      </tr>       <% } %>       <tr id="Row<%=(row++)%2%>">	<td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("CERTIFICATENR") %></td>	<td><%= (currentindex +1) + " " + ejbcawebbean.getText("OF") + " " + numberofcertificates %>        </td>      </tr>      <% } %>      <tr id="Row<%=(row++)%2%>">	<td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("CERTIFICATEVERSION") %></td>	<td> <%= certificatedata.getType() + " " + ejbcawebbean.getText("VER") + certificatedata.getVersion() %>        </td>      </tr>       <tr id="Row<%=(row++)%2%>">	 <td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("CERTSERIALNUMBER") %></td>	 <td><%= certificatedata.getSerialNumber() %>          </td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("ISSUERDN") %></td>	 <td><%= certificatedata.getIssuerDN()%>          </td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("VALIDFROM") %></td>	 <td><%= ejbcawebbean.printDate(certificatedata.getValidFrom())  %>          </td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("VALIDTO") %></td>	 <td><%= ejbcawebbean.printDate(certificatedata.getValidTo()) %>         </td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("SUBJECTDN") %></td>	 <td><%= certificatedata.getSubjectDN() %>          </td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("SUBALTNAME") %></td>	 <td><% if(certificatedata.getSubjectAltName() == null)                  out.write(ejbcawebbean.getText("NONE"));                else                  out.write(certificatedata.getSubjectAltName());%>          </td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("PUBLICKEY") %></td>	 <td><%= certificatedata.getPublicKeyAlgorithm() %> <% if(certificatedata.getPublicKeyLength() != null){                                                                 out.write(" ( " + certificatedata.getPublicKeyLength() + ejbcawebbean.getText("BITS") + ")");                                                                 } %>         </td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("BASICCONSTRAINTS") %></td>	 <td><% if(Integer.parseInt(certificatedata.getBasicConstraints()) == -1)                     out.write(ejbcawebbean.getText("ENDENTITY"));                else                     out.write(ejbcawebbean.getText("CA"));                   %>         </td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("KEYUSAGE") %></td>	 <td><% boolean first= true;                boolean none = true;                if(certificatedata.getKeyUsage(CertificateView.DIGITALSIGNATURE)){                  out.write(ejbcawebbean.getText("DIGITALSIGNATURE"));                  first=false;                  none =false;                }                if(certificatedata.getKeyUsage(CertificateView.NONREPUDIATION)){                  if(!first) out.write(", ");                   first=false;                  none =false;                  out.write(ejbcawebbean.getText("NONREPUDIATION"));                }                if(certificatedata.getKeyUsage(CertificateView.KEYENCIPHERMENT)){                  if(!first) out.write(", ");                   first=false;                  none =false;                  out.write(ejbcawebbean.getText("KEYENCIPHERMENT"));                }                if(certificatedata.getKeyUsage(CertificateView.DATAENCIPHERMENT)){                  if(!first) out.write(", ");                   first=false;                  none =false;                  out.write(ejbcawebbean.getText("DATAENCIPHERMENT"));                }                if(certificatedata.getKeyUsage(CertificateView.KEYAGREEMENT)){                  if(!first) out.write(", ");                   first=false;                  none =false;                  out.write(ejbcawebbean.getText("KEYAGREEMENT"));                }                if(certificatedata.getKeyUsage(CertificateView.KEYCERTSIGN)){                  if(!first) out.write(", ");                   first=false;                                 none =false;                  out.write(ejbcawebbean.getText("KEYCERTSIGN"));                }                if(certificatedata.getKeyUsage(CertificateView.CRLSIGN)){                  if(!first) out.write(", ");                   first=false;                  none =false;                  out.write(ejbcawebbean.getText("CRLSIGN"));                }                if(certificatedata.getKeyUsage(CertificateView.ENCIPHERONLY)){                  if(!first) out.write(", ");                   first=false;                  none =false;                  out.write(ejbcawebbean.getText("ENCIPHERONLY"));                }                if(certificatedata.getKeyUsage(CertificateView.DECIPHERONLY)){                  if(!first) out.write(", ");                   first=false;                  none =false;                  out.write(ejbcawebbean.getText("DECIPHERONLY"));               }               if(none){                  out.write(ejbcawebbean.getText("NOKEYUSAGESPECIFIED"));                        }%>         </td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("EXTENDEDKEYUSAGE") %></td>	 <td><% String[] extendedkeyusage = certificatedata.getExtendedKeyUsageAsTexts();                for(int i=0; i<extendedkeyusage.length; i++){                  if(i>0)                    out.write(", ");                  out.write( ejbcawebbean.getText(extendedkeyusage[i]));                }                                if(extendedkeyusage == null || extendedkeyusage.length == 0)                  out.write(ejbcawebbean.getText("NOEXTENDEDKEYUSAGESPECIFIED"));                       %>         </td>       </tr>       <tr id="Row<%=(row++)%2%>">	 <td align="right" width="<%=columnwidth%>"><%= ejbcawebbean.getText("SIGNATUREALGORITHM") %></td>	 <td> <%= certificatedata.getSignatureAlgoritm() %>         </td>       </tr>       <tr  id="Row<%=(row++)%2%>">         <td  align="right" width="<%=columnwidth%>">           <%= ejbcawebbean.getText("SHA1FINGERPRINT") %> <br>        </td>        <td >  <%= certificatedata.getSHA1Fingerprint() %>        </td>       </tr>       <tr  id="Row<%=(row++)%2%>">         <td  align="right" width="<%=columnwidth%>">           <%= ejbcawebbean.getText("MD5FINGERPRINT") %> <br>        </td>        <td >  <%= certificatedata.getMD5Fingerprint() %>        </td>       </tr>       <tr  id="Row<%=(row++)%2%>">         <td  align="right" width="<%=columnwidth%>">           <%= ejbcawebbean.getText("REVOKED") %> <br>        </td>        <td >  <% if(certificatedata.isRevoked()){                    out.write(ejbcawebbean.getText("YES") + "<br>" + ejbcawebbean.getText("REVOKATIONDATE") +                              ejbcawebbean.printDate(certificatedata.getRevokationDate()) + "<br>" + ejbcawebbean.getText("REVOKATIONREASONS"));                    String[] reasons = certificatedata.getRevokationReasons();                    for(int i = 0; i < reasons.length; i++){                      out.write(ejbcawebbean.getText(reasons[i]));                      if(i+1 < reasons.length)                        out.write(", ");                    }                  }                  else{                    out.write(ejbcawebbean.getText("NO"));                  }%>        </td>       </tr>       <tr id="Row<%=(row++)%2%>">          <td>&nbsp;</td>          <td>          <% if(currentindex > 0 ){ %>           <input type="submit" name="<%= BUTTON_VIEW_PREVIOUS %>" value="<%= ejbcawebbean.getText("VIEWPREVIOUS") %>" tabindex="1">&nbsp;&nbsp;&nbsp;          <% } %>            <input type="button" name="<%= BUTTON_CLOSE %>" value="<%= ejbcawebbean.getText("CLOSE") %>" tabindex="2"                   onClick='self.close()'>            <% if(currentindex < numberofcertificates -1 ){ %>          &nbsp;&nbsp;&nbsp;<input type="submit" name="<%= BUTTON_VIEW_NEXT %>" value="<%= ejbcawebbean.getText("VIEWNEXT") %>" tabindex="3">          <% } %>          &nbsp;          </td>       </tr>        <tr id="Row<%=(row++)%2%>">          <td>         <%             if(!cacerts &&  rabean.keyRecoveryPossible(certificatedata) && usekeyrecovery){ %>        <input type="submit" name="<%=BUTTON_RECOVERKEY %>" value="<%= ejbcawebbean.getText("RECOVERKEY") %>"               onClick='return confirmkeyrecovery()'>       <% } %>         &nbsp;          </td>          <td>       <%  try{            if(!cacerts && rabean.authorizedToRevokeCert(certificatedata.getUsername()) && ejbcawebbean.isAuthorizedNoLog(EjbcaWebBean.AUTHORIZED_RA_REVOKE_RIGHTS)                && !certificatedata.isRevoked()){ %>        <input type="submit" name="<%=BUTTON_REVOKE %>" value="<%= ejbcawebbean.getText("REVOKE") %>"               onClick='return confirmrevokation()'><br>        <select name="<%=SELECT_REVOKE_REASON %>" >          <% for(int i=0; i < RevokedInfoView.reasontexts.length; i++){                if(i!= 7){%>               <option value='<%= i%>'><%= ejbcawebbean.getText(RevokedInfoView.reasontexts[i]) %></option>          <%   }              }%>        </select>         <% }         }catch(AuthorizationDeniedException ade){}%>           &nbsp;          </td>       </tr>      </table>    </form>   <p></p>   <%   }      }    }%></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -