package com.google.code.p.keytooliui.ktl.swing.panel;
/**
MEMO: usage:
* keytool
-genkey
...
...
...
...
-dname "cn=[Testing Object Signing Certificate], o=[John Johnson], ou=[My Products], c=[EN-FR-DE-AU-RU]"
---------------------
cn = certificate name
o = organization
ou = organizational unit
c = country (first two letters)
memo: in a batch:
CN: first & last name
OU: organizational unit
O: name of your organization
L: name of your city or locality
ST: name of your state or province
C: what is the two-letter country code for this unit
known subclasses:
. PTabUICmdKtlKstOpenCrKprDsa
. PTabUICmdKtlKstOpenCrKprRsa
**/
import com.google.code.p.keytooliui.ktl.io.*;
import com.google.code.p.keytooliui.ktl.swing.panel.PSelBtnTfdStrXlsCbxGender;
import com.google.code.p.keytooliui.ktl.util.jarsigner.*;
import com.google.code.p.keytooliui.shared.lang.*;
import com.google.code.p.keytooliui.shared.swing.panel.*;
import com.google.code.p.keytooliui.shared.swing.optionpane.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import java.awt.*;
abstract public class PTabUICmdKtlKstOpenCrKprAbs extends PTabUICmdKtlKstOpenAbs
{
// --------------------
// FINAL STATIC PRIVATE
// properties
final static private String _f_s_strDocPropValCN = "cn";
final static private String _f_s_strDocPropValOU = "ou";
final static private String _f_s_strDocPropValO = "o";
final static private String _f_s_strDocPropValL = "l";
final static private String _f_s_strDocPropValST = "st";
final static private String _f_s_strDocPropValEMAIL = "email";
final static private String _f_s_strDocPropValC = "c";
final static private String _f_s_strDocPropValT = "t";
final static private String _f_s_strDocPropValSN = "sn";
final static private String _f_s_strDocPropValSTREET = "street";
final static private String _f_s_strDocPropValBUSINESS_CATEGORY = "business_category";
final static private String _f_s_strDocPropValPOSTAL_CODE = "postal_code";
final static private String _f_s_strDocPropValDN_QUALIFIER = "dn_qualifier";
final static private String _f_s_strDocPropValPSEUDONYM = "pseudonym";
final static private String _f_s_strDocPropValDATE_OF_BIRTH = "date_of_birth";
final static private String _f_s_strDocPropValPLACE_OF_BIRTH = "place_of_birth";
final static private String _f_s_strDocPropValGENDER = "gender";
final static private String _f_s_strDocPropValCOUNTRY_OF_CITIZENSHIP = "country_of_citizenship";
final static private String _f_s_strDocPropValCOUNTRY_OF_RESIDENCE = "country_of_residence";
final static private String _f_s_strDocPropValNAME_AT_BIRTH = "name_at_birth";
final static private String _f_s_strDocPropValPOSTAL_ADDRESS = "postal_address";
final static private String _f_s_strDocPropValSURNAME = "surname";
final static private String _f_s_strDocPropValGIVENNAME = "givenname";
final static private String _f_s_strDocPropValINITIALS = "initials";
final static private String _f_s_strDocPropValGENERATION = "generation";
final static private String _f_s_strDocPropValUNIQUE_IDENTIFIER = "unique_identifier";
final static private boolean _f_s_blnReqFieldCN = true;
final static private boolean _f_s_blnReqFieldOU = false;
final static private boolean _f_s_blnReqFieldO = false;
final static private boolean _f_s_blnReqFieldL = false;
final static private boolean _f_s_blnReqFieldST = false;
final static private boolean _f_s_blnReqFieldC = true; // MEMO: required for SLL cert reply from Geotrust!
final static private boolean _f_s_blnReqFieldEMAIL = false;
final static private boolean _f_s_blnReqFieldT = false;
final static private boolean _f_s_blnReqFieldSN = false;
final static private boolean _f_s_blnReqFieldSTREET = false;
final static private boolean _f_s_blnReqFieldBUSINESS_CATEGORY = false;
final static private boolean _f_s_blnReqFieldPOSTAL_CODE = false;
final static private boolean _f_s_blnReqFieldDN_QUALIFIER = false;
final static private boolean _f_s_blnReqFieldPSEUDONYM = false;
final static private boolean _f_s_blnReqFieldDATE_OF_BIRTH = false;
final static private boolean _f_s_blnReqFieldPLACE_OF_BIRTH = false;
final static private boolean _f_s_blnReqFieldGENDER = false;
final static private boolean _f_s_blnReqFieldCOUNTRY_OF_CITIZENSHIP = false;
final static private boolean _f_s_blnReqFieldCOUNTRY_OF_RESIDENCE = false;
final static private boolean _f_s_blnReqFieldNAME_AT_BIRTH = false;
final static private boolean _f_s_blnReqFieldPOSTAL_ADDRESS = false;
final static private boolean _f_s_blnReqFieldSURNAME = false;
final static private boolean _f_s_blnReqFieldGIVENNAME = false;
final static private boolean _f_s_blnReqFieldINITIALS = false;
final static private boolean _f_s_blnReqFieldGENERATION = false;
final static private boolean _f_s_blnReqFieldUNIQUE_IDENTIFIER = false;
// ------
// PUBLIC
public void insertUpdate(DocumentEvent evtDocument)
{
String strMethod = "insertUpdate(evtDocument)";
Document doc = evtDocument.getDocument();
if (doc == null)
MySystem.s_printOutExit(this, strMethod, "nil doc");
Object objPropVal = doc.getProperty(com.google.code.p.keytooliui.shared.swing.textfield.TFAbstract.f_s_strDocPropKey);
if (objPropVal == null)
MySystem.s_printOutExit(this, strMethod, "nil objPropVal");
if (! (objPropVal instanceof String))
MySystem.s_printOutExit(this, strMethod, "! (objPropVal instanceof String)");
String strPropVal = (String) objPropVal;
if (strPropVal == null)
MySystem.s_printOutExit(this, strMethod, "nil strPropVal");
// ----
int intLength = doc.getLength();
if (intLength == 0)
MySystem.s_printOutExit(this, strMethod, "intLength == 0");
String strText = null;
try
{
strText = doc.getText(0, intLength);
}
catch(BadLocationException excBadLocation)
{
excBadLocation.printStackTrace();
MySystem.s_printOutExit(this, strMethod, "excBadLocation caught");
}
if (strPropVal.compareTo(PSelBtnTfdFileOpenKst.f_s_strDocPropVal) == 0)
{
super._strPathAbsKst_ = strText;
_updateActionButtonDataChanged_(true);
return;
}
if (strPropVal.compareTo(PSelBtnTfdPasswdXlsKstAny.f_s_strDocPropVal) == 0)
{
super._strPasswdKst_ = strText;
// _updateActionButtonDataChanged_(true);
return;
}
if (strPropVal.compareTo(PSelBtnTfdRngIntValidityKpr.f_s_strDocPropVal) == 0)
{
try
{
this._intValidityKpr_ = Integer.parseInt(strText);
}
catch(NumberFormatException excNumberFormat)
{
excNumberFormat.printStackTrace();
MySystem.s_printOutExit(this, strMethod, "excNumberFormat caught");
}
_updateActionButtonDataChanged_(true);
return;
}
// input right
if (strPropVal.compareTo(PTabUICmdKtlKstOpenCrKprAbs._f_s_strDocPropValCN) == 0)
{
没有合适的资源?快使用搜索试试~ 我知道了~
keyTool IUI 2.4.2
共1877个文件
java:1477个
properties:169个
gif:161个
5星 · 超过95%的资源 需积分: 15 20 下载量 4 浏览量
2012-10-11
17:45:48
上传
评论
收藏 6.19MB ZIP 举报
温馨提示
keyTool IUI source, version # 2.4.2, ZIP file format
资源推荐
资源详情
资源评论
收起资源包目录
keyTool IUI 2.4.2 (1877个子文件)
timeglass_60_60.gif 13KB
rule_h2_red.gif 2KB
rule_h2_red.gif 2KB
_bluedrk.gif 2KB
_bluelgt.gif 2KB
_bluelgt.gif 2KB
_blue.gif 2KB
_graylgt.gif 1KB
_graylgt.gif 1KB
help24.gif 1KB
rule_h3_red.gif 1KB
rule_h3_red.gif 1KB
find24.gif 1KB
_flat.gif 1KB
cut24.gif 1KB
application24.gif 1KB
hglass28_32.gif 1KB
rule_h4_red.gif 1009B
rule_h4_red.gif 1009B
key16x17.gif 998B
old_prd16.gif 960B
certificate16x17.gif 941B
_z_entry_pk.gif 933B
page16.gif 922B
exclamation16.gif 900B
folder.gif 884B
circlered11.gif 879B
circlegreen11.gif 877B
tick_red9x11.gif 857B
xred.gif 855B
xred16.gif 855B
xgraydark.gif 854B
star_green.gif 854B
star_red.gif 854B
star_green.gif 854B
star_red.gif 854B
star_black.gif 844B
trg_red11.gif 843B
trg_trs11.gif 824B
transp9x11.gif 821B
new24.gif 778B
tipoftheday24.gif 742B
bean24.gif 737B
copy24.gif 682B
help16.gif 661B
cut16.gif 652B
jar16.gif 650B
about16.gif 644B
about16.gif 644B
webcomponent16.gif 637B
host16.gif 636B
hammer24.gif 636B
application16.gif 600B
gificon.gif 557B
print24.gif 491B
zoom24.gif 485B
zoomin24.gif 484B
export24.gif 473B
import24.gif 473B
open24.gif 462B
edit16.gif 441B
find16.gif 434B
forward24.gif 434B
find16.gif 434B
new16.gif 426B
css16.gif 425B
tipoftheday16.gif 423B
back24.gif 422B
home16.gif 420B
paste24.gif 374B
saveas24.gif 348B
bean16.gif 319B
refresh24.gif 316B
import16.gif 311B
import16_1.gif 311B
export16.gif 309B
export16_1.gif 309B
zoomin16.gif 304B
zoom16.gif 303B
paste16.gif 298B
print16.gif 293B
copy16.gif 288B
exit24.gif 278B
save24.gif 266B
volume16.gif 257B
saveas16.gif 255B
delete24.gif 249B
color16.gif 245B
refresh16.gif 244B
contextualhelp24.gif 244B
redo24.gif 243B
gum24.gif 241B
undo24.gif 239B
aligntop16.gif 236B
alignbottom16.gif 235B
alignright16.gif 232B
alignleft16.gif 232B
open16.gif 228B
delete16.gif 208B
preferences16.gif 207B
共 1877 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19
资源评论
- leaves_wwl2014-09-10有用,就是不怎么会用
zghlezh
- 粉丝: 4
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功