锘??xml version="1.0" encoding="utf-8" standalone="yes"?>在线视频国产区,jyzzz在线观看视频,国产资源在线观看http://www.aygfsteel.com/happyy2k/archive/2009/04/30/268265.htmlhappyy2khappyy2kWed, 29 Apr 2009 18:57:00 GMThttp://www.aygfsteel.com/happyy2k/archive/2009/04/30/268265.htmlhttp://www.aygfsteel.com/happyy2k/comments/268265.htmlhttp://www.aygfsteel.com/happyy2k/archive/2009/04/30/268265.html#Feedback6http://www.aygfsteel.com/happyy2k/comments/commentRss/268265.htmlhttp://www.aygfsteel.com/happyy2k/services/trackbacks/268265.html闃呰鍏ㄦ枃
]]>- 浣跨敤JMX-Adaptor 榪滅▼榪炴帴Tomcathttp://www.aygfsteel.com/happyy2k/archive/2009/04/24/267263.htmlhappyy2khappyy2kThu, 23 Apr 2009 20:34:00 GMThttp://www.aygfsteel.com/happyy2k/archive/2009/04/24/267263.htmlhttp://www.aygfsteel.com/happyy2k/comments/267263.htmlhttp://www.aygfsteel.com/happyy2k/archive/2009/04/24/267263.html#Feedback0http://www.aygfsteel.com/happyy2k/comments/commentRss/267263.htmlhttp://www.aygfsteel.com/happyy2k/services/trackbacks/267263.html闃呰鍏ㄦ枃

]]> - 浣跨敤Tomcat鐨刯mx鏈嶅姟http://www.aygfsteel.com/happyy2k/archive/2009/04/22/266881.htmlhappyy2khappyy2kTue, 21 Apr 2009 21:30:00 GMThttp://www.aygfsteel.com/happyy2k/archive/2009/04/22/266881.htmlhttp://www.aygfsteel.com/happyy2k/comments/266881.htmlhttp://www.aygfsteel.com/happyy2k/archive/2009/04/22/266881.html#Feedback1http://www.aygfsteel.com/happyy2k/comments/commentRss/266881.htmlhttp://www.aygfsteel.com/happyy2k/services/trackbacks/266881.html闃呰鍏ㄦ枃

]]> - 涓嬭澆Google Gadget 鐨勬柟娉?/title>http://www.aygfsteel.com/happyy2k/archive/2008/11/15/240627.htmlhappyy2khappyy2kFri, 14 Nov 2008 23:25:00 GMThttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/240627.htmlhttp://www.aygfsteel.com/happyy2k/comments/240627.htmlhttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/240627.html#Feedback0http://www.aygfsteel.com/happyy2k/comments/commentRss/240627.htmlhttp://www.aygfsteel.com/happyy2k/services/trackbacks/240627.html闃呰鍏ㄦ枃

]]> - 緙栧啓User Token Authentication 鐨?WS-Security client http://www.aygfsteel.com/happyy2k/archive/2008/11/15/116076.htmlhappyy2khappyy2kFri, 14 Nov 2008 23:08:00 GMThttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/116076.htmlhttp://www.aygfsteel.com/happyy2k/comments/116076.htmlhttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/116076.html#Feedback2http://www.aygfsteel.com/happyy2k/comments/commentRss/116076.htmlhttp://www.aygfsteel.com/happyy2k/services/trackbacks/116076.html濡傛灉鐢╔Fire 瀹炵幇WS-Secuiry 鍦?a >http://xfire.codehaus.org/WS-Security
涓嬮潰璇磋濡備綍鍐機(jī)lient 鍘?璋冪敤User Token Authentication 鐨?WS-Security.
1.鐢╔fire 鏍規(guī)嵁WSDL 鍘葷敓鎴?Client stub.
閫氬父,鐢╡clipse鐨刋Fire plug-in, 閲岄潰鏈変竴涓狢ode generation from WSDL document鐨刉izard.鐢熸垚鐨刯ava鏂囦歡閲岄氬父鏈墄xxxServiceClient.java xxxxServcie.java xxxxServiceImpl.java 絳夋枃浠?
濡傛灉涓嶈冭檻WS-Security Client code 寰堝鏄撳啓
渚嬪:
xxxxServiceClient service = new xxxxxServiceClient();
xxxxService client = service.getxxxServiceHttpPort("http://localhost:8080/services/xxxxService");
2. 鍔燱S-Security
鏈濂戒笉瑕佹敼XFire 鐢熸垚鐨勬枃浠? 鑰屾槸鍦ㄨ嚜宸辯殑璋冪敤紼嬪簭閲屽鍔?榪欐牱灝嗘潵WSDL鏀瑰彉, 鍙互鍦ㄧ敤XFire 鐢熸垚Code 鑰屼笉褰卞搷鑷繁鐨勭▼搴?br />
xxxxServiceClient service = new xxxServiceClient();
xxxxService client = service.getxxxxServiceHttpPort("http://localhost:8080/services/xxxxService");
addWSSecurity(stallInfoClient);
public void addWSSecurity(StallInfoService stallInfoService)
{
Client client = org.codehaus.xfire.client.Client.getInstance(stallInfoService);
client.addOutHandler(new DOMOutHandler());
Properties properties = new Properties();
configureOutProperties(properties);
WSS4JOutHandler wss4jOutHandler = new WSS4JOutHandler(properties);
Map props = wss4jOutHandler.getProperties();
PasswordHandler pwdHandler = new PasswordHandler();
pwdHandler.setPassword(password);
props.put(WSHandlerConstants.PW_CALLBACK_REF, pwdHandler);
wss4jOutHandler.setProperties(props);
client.addOutHandler(wss4jOutHandler);
}
protected void configureOutProperties(Properties config)
{
// Action to perform : user token
config.setProperty(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN);
// Password type : plain text
config.setProperty(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT);
// for hashed password use:
//properties.setProperty(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_DIGEST);
// User name to send
config.setProperty(WSHandlerConstants.USER, username);
}
public class PasswordHandler implements CallbackHandler {
private String password = " ";
public PasswordHandler() { }
public void setPassword(String password) {
this.password = password;
}
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
WSPasswordCallback pc = (WSPasswordCallback) callbacks[0];
String uid = pc.getIdentifer();
pc.setPassword(password);
}
}
褰撲嬌鐢?font style="color: #000000" color="#7f0055">WSHandlerConstants.PW_CALLBACK_REF Xfire 鏈夌己闄? 濡傛灉涓嶆墜鍔ㄦ妸 passwordhandler 鍔犲叆wss4jOutHandler鐨刾roperties閲? 灝嗘潵鏄疿Fire鏃犳硶璋冪敤鑷繁鐨刾asswordhandler鍙橀噺, WSHandlerConstants.PW_CALLBACK_CLASS 娌℃湁榪欎釜闂.
閫氳繃榪欑鏂規(guī)硶,Client 灝變細(xì)鍦⊿OAP request 鍔犲叆 security head.
<soap:Envelope xmlns:soap="
<soap:Header>
<wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-26235040" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">username
</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">password
</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<GetRequest xmlns="....">11</GetRequest>
</soap:Body>
</soap:Envelope>

]]>- DOS Herehttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/119287.htmlhappyy2khappyy2kFri, 14 Nov 2008 23:08:00 GMThttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/119287.htmlhttp://www.aygfsteel.com/happyy2k/comments/119287.htmlhttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/119287.html#Feedback0http://www.aygfsteel.com/happyy2k/comments/commentRss/119287.htmlhttp://www.aygfsteel.com/happyy2k/services/trackbacks/119287.html
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\Open_DOS_Box]
@="DOS Here"

[HKEY_CLASSES_ROOT\Folder\shell\Open_DOS_Box\command]
@=hex(2):43,00,4d,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,4b,00,20,00,43,\
00,44,00,20,00,25,00,31,00,00,00
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\Open_DOS_Box]
@="DOS Here"

[HKEY_CLASSES_ROOT\Folder\shell\Open_DOS_Box\command]
@=hex(2):43,00,4d,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,4b,00,20,00,43,\
00,44,00,20,00,25,00,31,00,00,00


]]> - 鐢↗ava Web Start 鐨勭粡楠?/title>http://www.aygfsteel.com/happyy2k/archive/2008/11/15/116349.htmlhappyy2khappyy2kFri, 14 Nov 2008 23:07:00 GMThttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/116349.htmlhttp://www.aygfsteel.com/happyy2k/comments/116349.htmlhttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/116349.html#Feedback0http://www.aygfsteel.com/happyy2k/comments/commentRss/116349.htmlhttp://www.aygfsteel.com/happyy2k/services/trackbacks/116349.htmlJava Web Start 瀛︿範(fàn) 姝eソ鑷繁涔熷啓浜?jiǎn)涓涓狫ava Application, 鑰屽悓浜嬫槸鐢∕ac,浠栦笉澶細(xì)璁緅ava 鐜, 浜庢槸鍐沖畾鎶婅嚜宸辯殑application 鏀懼湪server 涓? 鐢↗ava Web Start 鎶鏈?榪欐牱灝辨柟渚垮埆浜轟嬌鐢?
1.keystore鐨勬湁鏁堟椂闂?br>
keytool -genkey -keystore myKeystore -alias jwstest -validity 365
鐢?-validity valDays 鏉ヨ瀹? 緙虹渷鐨勬槸 6涓湀
2.Sign Jar鏂囦歡
jarsigner -keystore myKeystore -storepass xxxx yourtest.jar jwstest
鐩存帴鐢?storepass 浼爌assword 緇檍arsigner, 涓嶉渶瑕佹瘡嬈″崟鐙緭鍏? 寰堥傚悎鍋氭壒澶勭悊,瀵瑰涓狫ar涓璧穝ign. 鍥犱負(fù)鐢↗WS,鎵浠ュ紩鐢ㄧ殑Jar閮介渶瑕丼ign.
3. 寮曠敤鐨勫凡緇忚鍒漢Sign 榪囩殑Jar
濡傛灉涓嶇壒孌婂鐞?鍙兘浼?xì)閬囧?Exception
JAR resources in JNLP file are not signed by same certificate
楠岃瘉JAR 鏄笉鏄凡緇忚sign 鍙互鐢?verfiy榪欎釜鍛戒護(hù)
jarsigner -certs -verbose -verify yourtest.jar
閫氬父瑙e喅鐨勫姙娉曟槸鎶婅繖涓猄ign榪囩殑JAR 鍐欐垚鍗曠嫭鐨凧NLP, 鐒跺悗鍦ㄨ嚜宸辯殑涓籎NLP涓紩鐢ㄥ畠

<?xml version="1.0" encoding="UTF-8"?>

<jnlp spec="1.0+" codebase="http://localhost:8080/webstart/" href="signedjar.jnlp">

<information>

<title>Signed Jar</title>

<vendor>ABC Company</vendor>

<offline-allowed/>

</information>

<offline-allowed/>
<resources>
<jar href="signed.jar"/>
</resources>

<component-desc/>

</jnlp>

鍙傝冪綉绔?
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/contents.html
http://weblogs.java.net/blog/kirillcool/archive/2005/05/signing_jars_fo.html

]]> - 杞崲 xs:date 鍒?java.util.Date 鐨凾ipshttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/119862.htmlhappyy2khappyy2kFri, 14 Nov 2008 23:06:00 GMThttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/119862.htmlhttp://www.aygfsteel.com/happyy2k/comments/119862.htmlhttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/119862.html#Feedback2http://www.aygfsteel.com/happyy2k/comments/commentRss/119862.htmlhttp://www.aygfsteel.com/happyy2k/services/trackbacks/119862.html闃呰鍏ㄦ枃

]]> - 鍏充簬Acegi 澧炲姞portmapping 鐨勬柟娉?/title>http://www.aygfsteel.com/happyy2k/archive/2008/11/15/130951.htmlhappyy2khappyy2kFri, 14 Nov 2008 23:06:00 GMThttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/130951.htmlhttp://www.aygfsteel.com/happyy2k/comments/130951.htmlhttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/130951.html#Feedback0http://www.aygfsteel.com/happyy2k/comments/commentRss/130951.htmlhttp://www.aygfsteel.com/happyy2k/services/trackbacks/130951.html443 443->80 8080->8443 8443->8080 ... 闃呰鍏ㄦ枃

]]> - 寮哄埗瑕佹眰鍘嬬緝 Response 鐨?媯(gè)嫻?/title>http://www.aygfsteel.com/happyy2k/archive/2008/11/15/151909.htmlhappyy2khappyy2kFri, 14 Nov 2008 23:05:00 GMThttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/151909.htmlhttp://www.aygfsteel.com/happyy2k/comments/151909.htmlhttp://www.aygfsteel.com/happyy2k/archive/2008/11/15/151909.html#Feedback0http://www.aygfsteel.com/happyy2k/comments/commentRss/151909.htmlhttp://www.aygfsteel.com/happyy2k/services/trackbacks/151909.html闃呰鍏ㄦ枃

]]>
主站蜘蛛池模板:
海口市|
布尔津县|
建水县|
图木舒克市|
宜章县|
烟台市|
陆川县|
涞水县|
龙泉市|
旺苍县|
宣汉县|
六枝特区|
旬阳县|
桓仁|
晋州市|
彩票|
南江县|
新乡县|
稷山县|
灵石县|
璧山县|
孝昌县|
灌南县|
汽车|
武鸣县|
大同市|
沈丘县|
昌黎县|
平果县|
馆陶县|
平度市|
梁平县|
富宁县|
顺平县|
南通市|
海伦市|
安陆市|
胶州市|
崇义县|
北安市|
浦东新区|