锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲youwu永久无码精品,亚洲美女在线国产,亚洲国产中文字幕在线观看
http://m.tkk7.com/security/category/8296.htmlJava Security, CAPICOM, CryptoAPI/CSP, BouncyCastle, Openssl, JCE/JCA, SSO, CAS, Tivoli, CA, PKI
<br>
<font color="#00f100">鏈珯鍐呭鍙吋瀹笽E嫻忚鍣?lt;/font>
<br>
<font color="#00f100">閲嶈鐨勬枃绔犲寘鍧囧惈鏈漢鐨凱GP絳懼悕錛屾湰浜烘効鎰忓鑷繁鐨勮█璁鴻礋璐?lt;/font>
<br> zh-cn Tue, 04 Sep 2007 17:51:02 GMT Tue, 04 Sep 2007 17:51:02 GMT 60 鍏充簬閰嶇疆Weblogic鐨凬odeManager鏈嶅姟 http://m.tkk7.com/security/archive/2007/09/04/weblogic_Nodemanager_configuration.htmldavid.turing david.turing Tue, 04 Sep 2007 07:20:00 GMT http://m.tkk7.com/security/archive/2007/09/04/weblogic_Nodemanager_configuration.html http://m.tkk7.com/security/comments/142632.html http://m.tkk7.com/security/archive/2007/09/04/weblogic_Nodemanager_configuration.html#Feedback 0 http://m.tkk7.com/security/comments/commentRss/142632.html http://m.tkk7.com/security/services/trackbacks/142632.html 闃呰鍏ㄦ枃 ]]> [鍘熷垱] Pass SSL Certificate to Weblogic Cluster through Apache Proxy under SSL http://m.tkk7.com/security/archive/2007/01/13/PassSSLCertificateToApacheProxy.htmldavid.turing david.turing Sat, 13 Jan 2007 11:19:00 GMT http://m.tkk7.com/security/archive/2007/01/13/PassSSLCertificateToApacheProxy.html http://m.tkk7.com/security/comments/93632.html http://m.tkk7.com/security/archive/2007/01/13/PassSSLCertificateToApacheProxy.html#Feedback 0 http://m.tkk7.com/security/comments/commentRss/93632.html http://m.tkk7.com/security/services/trackbacks/93632.html through Apache Proxy under SSL.
Before you read this paper, please read another blog of mine( but not
necessary).
<>
http://m.tkk7.com/security/archive/2007/01/07/WeblogicClusterWithApacheProxyUnderSSL.html 闃呰鍏ㄦ枃 ]]> [鍘熷垱]Apache Proxy with Weblogic Cluster under SSL http://m.tkk7.com/security/archive/2007/01/07/WeblogicClusterWithApacheProxyUnderSSL.htmldavid.turing david.turing Sun, 07 Jan 2007 06:34:00 GMT http://m.tkk7.com/security/archive/2007/01/07/WeblogicClusterWithApacheProxyUnderSSL.html http://m.tkk7.com/security/comments/92211.html http://m.tkk7.com/security/archive/2007/01/07/WeblogicClusterWithApacheProxyUnderSSL.html#Feedback 1 http://m.tkk7.com/security/comments/commentRss/92211.html http://m.tkk7.com/security/services/trackbacks/92211.html 闃呰鍏ㄦ枃 ]]> 鍙戝竷涓涓畝鏄撶増鏈殑SecureXRCP http://m.tkk7.com/security/archive/2007/01/07/SecureXRCP.htmldavid.turing david.turing Sun, 07 Jan 2007 03:16:00 GMT http://m.tkk7.com/security/archive/2007/01/07/SecureXRCP.html http://m.tkk7.com/security/comments/92191.html http://m.tkk7.com/security/archive/2007/01/07/SecureXRCP.html#Feedback 1 http://m.tkk7.com/security/comments/commentRss/92191.html http://m.tkk7.com/security/services/trackbacks/92191.html 闃呰鍏ㄦ枃 ]]> [鍘熷垱]鍥藉唴澶ч儴鍒嗙殑USBKey閫氳繃B/S鏂瑰紡錛圕APICOM錛変駭鐢熸暟瀛楃鍚嶇殑涓ラ噸瀹夊叏婕忔礊 http://m.tkk7.com/security/archive/2006/11/13/capicom_usbkey_danger.htmldavid.turing david.turing Mon, 13 Nov 2006 03:06:00 GMT http://m.tkk7.com/security/archive/2006/11/13/capicom_usbkey_danger.html http://m.tkk7.com/security/comments/80837.html http://m.tkk7.com/security/archive/2006/11/13/capicom_usbkey_danger.html#Feedback 6 http://m.tkk7.com/security/comments/commentRss/80837.html http://m.tkk7.com/security/services/trackbacks/80837.html 闃呰鍏ㄦ枃 ]]> SecureX Eclipse Plugin Alpha2鍙戝竷 http://m.tkk7.com/security/archive/2006/11/11/SecureX_Keytool_Eclipse_Plugin.htmldavid.turing david.turing Sat, 11 Nov 2006 05:56:00 GMT http://m.tkk7.com/security/archive/2006/11/11/SecureX_Keytool_Eclipse_Plugin.html http://m.tkk7.com/security/comments/80572.html http://m.tkk7.com/security/archive/2006/11/11/SecureX_Keytool_Eclipse_Plugin.html#Feedback 9 http://m.tkk7.com/security/comments/commentRss/80572.html http://m.tkk7.com/security/services/trackbacks/80572.html 闃呰鍏ㄦ枃 ]]> 鍙戝竷SecureX Eclipse Plugin 2.0.0 alpha鐗堟湰 http://m.tkk7.com/security/archive/2006/11/08/SecureX-EclipsePlugin.htmldavid.turing david.turing Wed, 08 Nov 2006 08:45:00 GMT http://m.tkk7.com/security/archive/2006/11/08/SecureX-EclipsePlugin.html http://m.tkk7.com/security/comments/79890.html http://m.tkk7.com/security/archive/2006/11/08/SecureX-EclipsePlugin.html#Feedback 0 http://m.tkk7.com/security/comments/commentRss/79890.html http://m.tkk7.com/security/services/trackbacks/79890.html 闃呰鍏ㄦ枃 ]]> [杞澆]鎺ㄨ崘涓涓婥SDN銆婄▼搴忓憳銆嬬殑銆婂紑婧愬ぇ鏈惀銆?/title> http://m.tkk7.com/security/archive/2006/11/06/opensource_security.htmldavid.turing david.turing Mon, 06 Nov 2006 00:54:00 GMT http://m.tkk7.com/security/archive/2006/11/06/opensource_security.html http://m.tkk7.com/security/comments/79309.html http://m.tkk7.com/security/archive/2006/11/06/opensource_security.html#Feedback 2 http://m.tkk7.com/security/comments/commentRss/79309.html http://m.tkk7.com/security/services/trackbacks/79309.html 闃呰鍏ㄦ枃 ]]> Yale CAS as an Acegi Client in SpringSide http://m.tkk7.com/security/archive/2006/10/15/Acegi_as_CAS_client_Configuration.htmldavid.turing david.turing Sun, 15 Oct 2006 15:53:00 GMT http://m.tkk7.com/security/archive/2006/10/15/Acegi_as_CAS_client_Configuration.html http://m.tkk7.com/security/comments/75320.html http://m.tkk7.com/security/archive/2006/10/15/Acegi_as_CAS_client_Configuration.html#Feedback 1 http://m.tkk7.com/security/comments/commentRss/75320.html http://m.tkk7.com/security/services/trackbacks/75320.html 鐜鏄疌AS Server 3.0+Acegi 1.0+Tomcat 闃呰鍏ㄦ枃 ]]> [鍘熷垱] SSO(Single Sign-on) in Action(涓婄瘒) http://m.tkk7.com/security/archive/2006/10/02/sso_in_action.htmldavid.turing david.turing Mon, 02 Oct 2006 08:27:00 GMT http://m.tkk7.com/security/archive/2006/10/02/sso_in_action.html http://m.tkk7.com/security/comments/73199.html http://m.tkk7.com/security/archive/2006/10/02/sso_in_action.html#Feedback 12 http://m.tkk7.com/security/comments/commentRss/73199.html http://m.tkk7.com/security/services/trackbacks/73199.html 闃呰鍏ㄦ枃 ]]> Tomcat/Weblogic鍦⊿SL鎻℃墜涓紝IE鎻愪氦璇佷功紿楀彛涓虹┖鐨勯棶棰?/title> http://m.tkk7.com/security/archive/2006/09/27/ssl_cacerts_no_certificate.htmldavid.turing david.turing Wed, 27 Sep 2006 03:38:00 GMT http://m.tkk7.com/security/archive/2006/09/27/ssl_cacerts_no_certificate.html http://m.tkk7.com/security/comments/72258.html http://m.tkk7.com/security/archive/2006/09/27/ssl_cacerts_no_certificate.html#Feedback 0 http://m.tkk7.com/security/comments/commentRss/72258.html http://m.tkk7.com/security/services/trackbacks/72258.html 璁塊棶https://yourmachine:8843/webapp 鐨勬椂鍊欙紝瀹㈡埛绔彁浜や簡絀虹殑璇佷功紿楀彛錛屽涓嬪浘鎵紺?br /> 濡傛灉浣跨敤鐨勬槸Tomcat錛屽垯闇瑕佹鏌DK/Jre/lib/security涓嬬殑cacerts鏄惁鍖呭惈浜嗗鎴風(fēng)鐢ㄦ埛 鐨凨ey鎵瀵瑰簲鐨凜A璇佷功錛屽鏋滄病鏈夛紝鍒欏鎴風(fēng)鍑虹幇涓婅堪紿楀彛錛屽洜涓猴紝鏈嶅姟鍣ㄧ涓?br />浼?xì)涓嶄俊鋼Q涓哄鎴風(fēng)鐨凱rivate Key鎵絳懼悕鐨刢a璇佷功錛?br /> 濡傛灉浣跨敤Weblogic錛岄渶瑕佽鍖哄垎Use Custom Indentity鍜孶se Java Keystore涓ょ鏂瑰紡錛?br />鍓嶈咃紝寰Weblogic鐨凧KS瀵煎叆瀹㈡埛绔疨K鎵瀵瑰簲鐨凜A璇佷功錛堥摼錛夛紝鍚庤咃紝媯(gè)鏌?br />Jre/lib/security鐨刢acerts錛屽仛娉曡窡涓婇潰涓鏍楓?img src ="http://m.tkk7.com/security/aggbug/72258.html" width = "1" height = "1" /> ]]> 鍙戠幇GDCA USBKey(鐢?shù)瀛愰挜鍖?鐨凜SP鏁板瓧絳懼悕瀹炵幇瀛樺湪緙洪櫡 http://m.tkk7.com/security/archive/2006/09/26/gdca_signature_problem.htmldavid.turing david.turing Tue, 26 Sep 2006 09:33:00 GMT http://m.tkk7.com/security/archive/2006/09/26/gdca_signature_problem.html http://m.tkk7.com/security/comments/72073.html http://m.tkk7.com/security/archive/2006/09/26/gdca_signature_problem.html#Feedback 5 http://m.tkk7.com/security/comments/commentRss/72073.html http://m.tkk7.com/security/services/trackbacks/72073.html 闃呰鍏ㄦ枃 ]]> 9鏈?3鏃ユ垚閮絎S-Security婕旇鍐呭紼?/title> http://m.tkk7.com/security/archive/2006/09/22/WS_Security.htmldavid.turing david.turing Thu, 21 Sep 2006 17:03:00 GMT http://m.tkk7.com/security/archive/2006/09/22/WS_Security.html http://m.tkk7.com/security/comments/71223.html http://m.tkk7.com/security/archive/2006/09/22/WS_Security.html#Feedback 3 http://m.tkk7.com/security/comments/commentRss/71223.html http://m.tkk7.com/security/services/trackbacks/71223.html 闃呰鍏ㄦ枃 ]]> Java瀹夊叏姒傝堪 http://m.tkk7.com/security/archive/2006/09/21/java_security_summary.htmldavid.turing david.turing Wed, 20 Sep 2006 16:39:00 GMT http://m.tkk7.com/security/archive/2006/09/21/java_security_summary.html http://m.tkk7.com/security/comments/70959.html http://m.tkk7.com/security/archive/2006/09/21/java_security_summary.html#Feedback 2 http://m.tkk7.com/security/comments/commentRss/70959.html http://m.tkk7.com/security/services/trackbacks/70959.html 闃呰鍏ㄦ枃 ]]> [鍘熷垱]瀹炴柦WebService Security[WS-Security1.0]鐨凟ncrypt鍜孲ign妯″紡(XFire+WSS4J) http://m.tkk7.com/security/archive/2006/08/08/xfire_wss4j.htmldavid.turing david.turing Tue, 08 Aug 2006 01:09:00 GMT http://m.tkk7.com/security/archive/2006/08/08/xfire_wss4j.html http://m.tkk7.com/security/comments/62283.html http://m.tkk7.com/security/archive/2006/08/08/xfire_wss4j.html#Feedback 26 http://m.tkk7.com/security/comments/commentRss/62283.html http://m.tkk7.com/security/services/trackbacks/62283.html 闃呰鍏ㄦ枃 ]]> 鍦⊿pringSide瀹炵幇XFire Webservice璁よ瘉 http://m.tkk7.com/security/archive/2006/07/25/XFire_Webservice_Authentication.htmldavid.turing david.turing Tue, 25 Jul 2006 15:48:00 GMT http://m.tkk7.com/security/archive/2006/07/25/XFire_Webservice_Authentication.html http://m.tkk7.com/security/comments/60090.html http://m.tkk7.com/security/archive/2006/07/25/XFire_Webservice_Authentication.html#Feedback 3 http://m.tkk7.com/security/comments/commentRss/60090.html http://m.tkk7.com/security/services/trackbacks/60090.html XFire璺烻pring鐨勫ぉ鐒惰瀺鍚堬紝璁╂垜浠彲浠ュ皯鍔姏10騫村氨鑳界畝鍗曞湴鍦⊿pring涓嬌鐢╓ebservice鐨勫己澶ч瓍鍔涳紝鎴戜粠AXIS涓撳悜XFire鏈変竴浜涘啿鍔紝涔熷悆浜嗕笉灝戜簭錛屼絾鍙桼EST涓鏃忕殑寮哄姏鍚規(guī)崸錛屾劅瑙夎繕鏄煎緱灝濊瘯鐨勶紝鍥犳錛屽湪鍏徃鐨勭郴緇熶腑涔熸妸Axis褰誨簳鎹簡XFire銆?br /> 鍥炲埌SpringSide錛屾垜澶ф浠嬬粛涓涓嬪浣曢厤緗竴涓湡姝e疄鐢ㄧ殑XFire楠岃瘉鏈嶅姟銆?br />SpringSide涓殑XFire閰嶇疆鏂囦歡鏀懼湪錛?br />SpringSide -bookstore\src\org\springside\bookstore\plugins\webservice\applicationContext-webservice-server.xml 鎴戜滑鍦ㄩ噷闈㈠畾涔夊悇涓猈ebservice錛岃鏂囦歡鍏跺疄瀵瑰簲浜嶺Fire瀹樻柟鐨刋Fire-Servlet.xml 鐪嬬湅涓嬮潰鐨凚ookService錛岃繖鏄竴涓吀鍨嬬殑Webservice鏈嶅姟錛岀孩鑹茬殑inHandlers鏄垜鎸備笂鍘葷殑銆傚畠鐨勬剰鎬濇槸鎵鏈夎闂瓸ookService鐨勮姹傞兘浼?xì)琚厛閫佸埌authenticationHandler 鍘誨鐞嗭紝鎴戜滑鐨勯獙璇侀昏緫鍙互鍦ㄩ噷闈㈣繘琛屻?br />聽聽聽聽<!--Web Service 鍦⊿pringMVC涓殑URL 璺緞鏄犲皠--> 聽聽聽 <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> 聽聽聽聽聽聽聽 <property name="mappings"> 聽聽聽聽聽聽聽聽聽聽聽 <value>/BookService=bookWebService</value> 聽聽聽聽聽聽聽 </property>聽聽聽聽聽聽聽 <property name="inHandlers"> 聽聽聽聽聽聽聽聽聽聽聽 <ref bean="authenticationHandler"/> 聽聽聽聽聽聽聽 </property> 聽聽聽 </bean> 鎴戜滑鎺ョ潃鐪嬬湅authenticationHandler 鐨勪唬鐮侊細(xì) 鎴戜滑鍦⊿pringSide涓氳繃header鏂瑰紡鍚戞湇鍔″櫒鎻愪緵楠岃瘉淇℃伅錛堝彟澶栦竴縐嶆洿綆鍗曠殑鏂瑰紡鏄垱寤轟竴涓狶ogin鐨剋ebservice鏈嶅姟錛岀劧鍚庡湪XFire Session涓緩绔婽oken淇℃伅錛夈?br />package 聽org.springside.bookstore.plugins.webservice.authentication; import 聽org.apache.log4j.Logger; import 聽org.codehaus.xfire.MessageContext; import 聽org.codehaus.xfire.exchange.InMessage; import 聽org.codehaus.xfire.fault.XFireFault; import 聽org.codehaus.xfire.handler.AbstractHandler; import 聽org.jdom.Element; import 聽org.jdom.Namespace; /** 聽*聽XFire鐨勫洖璋冪殑Handler錛屽湪XFire閰嶇疆鏂囦歡涓厤緗?br />聽*聽Server绔殑璁よ瘉妯″潡錛屽洖璋冨鐞嗘ā鍧?br />聽*聽 聽*聽ClientAuthHandler璺烝uthenticationHandler瑕佷竴璧風(fēng)敤錛屾垨鑰呴兘涓嶇敤 聽*聽 聽*聽@author 聽聽david.turing 聽*聽@blog聽聽openssl.blogjava.net 聽* 聽 */ public 聽 class 聽AuthenticationHandler聽 extends 聽AbstractHandler聽{ 聽聽聽聽 private 聽 static 聽 final 聽Logger聽log聽 = 聽Logger.getLogger(AuthenticationHandler. class ); 聽聽聽聽 聽聽聽聽 public 聽 void 聽invoke(MessageContext聽context)聽 throws 聽Exception聽{ 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽log.info( " #AuthenticationHandler聽is聽invoked " ); 聽聽聽聽聽聽聽聽InMessage聽message = context.getInMessage(); 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽 final 聽Namespace聽TOKEN_NS聽 = 聽Namespace.getNamespace( " SpringSide " , " http://service.webservice.plugins.bookstore.springside.org " );聽聽 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽 if (message.getHeader() == null ) 聽聽聽聽聽聽聽聽{ 聽聽聽聽聽聽聽聽聽聽聽聽 throw 聽 new 聽XFireFault( " GetRelation聽Service聽Should聽be聽Authenticated " , 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽XFireFault.SENDER); 聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽Element聽token聽 = 聽message.getHeader().getChild( " AuthenticationToken " ,聽TOKEN_NS); 聽聽聽聽聽聽聽聽 if 聽(token聽 == 聽 null ) 聽聽聽聽聽聽聽聽{ 聽聽聽聽聽聽聽聽聽聽聽聽 throw 聽 new 聽XFireFault( " Request聽must聽include聽authentication聽token. " , 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽XFireFault.SENDER); 聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽String聽username聽 = 聽token.getChild( " Username " ,聽TOKEN_NS).getValue(); 聽聽聽聽聽聽聽聽String聽password聽 = 聽token.getChild( " Password " ,聽TOKEN_NS).getValue(); 聽聽聽聽聽聽聽聽System.out.println( " username= " + username);聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽System.out.println( " password= " + password); 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽 if (username == null || password == null ) 聽聽聽聽聽聽聽聽聽聽聽聽 throw 聽 new 聽XFireFault( " Supplied聽Username聽and聽Password聽Please " , 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽XFireFault.SENDER); 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽 /** 聽聽聽聽聽聽聽聽聽*聽媯(gè)鏌ョ敤鎴峰悕瀵嗙爜鏄惁姝g‘ 聽聽聽聽聽聽聽聽聽*/ 聽聽聽聽聽聽聽聽PasswordAuthenticationManager聽pamanager= new 聽PasswordAuthenticationManager(); 聽聽聽聽聽聽聽聽 if ( ! pamanager.authenticate(username,password)) 聽聽聽聽聽聽聽聽聽聽聽聽 throw 聽 new 聽XFireFault( " Authentication聽Fail!聽Check聽username/password " , 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽XFireFault.SENDER); 聽 聽聽聽聽聽聽聽聽 聽聽聽聽} } 娉ㄦ剰錛孹FireFault寮傚父鏄線瀹㈡埛绔姏鐨勶紝W(xué)ebservice Client搴旇瀛︿細(xì)catch XFireFault. 鏈嶅姟鍣ㄧ灝辨槸榪欎箞綆鍗曪紝鐪嬬湅瀹㈡埛绔殑TestCasepackage 聽org.springside.bookstore.plugins.webservice.service; import 聽java.lang.reflect.Proxy; import 聽java.net.MalformedURLException; import 聽java.util.List; import 聽org.codehaus.xfire.client.Client; import 聽org.codehaus.xfire.client.XFireProxy; import 聽org.codehaus.xfire.client.XFireProxyFactory; import 聽org.codehaus.xfire.service.Service; import 聽org.codehaus.xfire.service.binding.ObjectServiceFactory; import 聽org.springside.bookstore.commons.domain.Book; import 聽org.springside.bookstore.plugins.webservice.authentication.ClientAuthHandler; import 聽junit.framework.TestCase; public 聽 class 聽BookServiceWithAuthenticationTestCase聽 extends 聽TestCase聽{ 聽聽聽聽 protected 聽 void 聽setUp()聽 throws 聽Exception聽{ 聽聽聽聽聽聽聽聽 super .setUp(); 聽聽聽聽} 聽聽聽聽 protected 聽 void 聽tearDown()聽 throws 聽Exception聽{ 聽聽聽聽聽聽聽聽 super .tearDown(); 聽聽聽聽} 聽聽聽聽 聽聽聽聽 public 聽 void 聽getBookFromWebservice()聽 throws 聽Exception{ 聽聽聽聽 聽聽聽聽聽聽聽聽聽聽Service聽serviceModel聽 = 聽 new 聽ObjectServiceFactory() 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽.create(BookService. class ); 聽聽聽聽聽聽聽聽BookService聽service聽 = 聽 null ; 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽 try 聽{ 聽聽聽聽聽聽聽聽聽聽聽聽service = (BookService)聽 new 聽XFireProxyFactory().create( 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽serviceModel, 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 " http://localhost:8080/springside/service/BookService " ); 聽聽聽聽聽聽聽聽}聽 catch 聽(MalformedURLException聽e)聽{ 聽聽聽聽聽聽聽聽聽聽聽聽e.printStackTrace(); 聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽Client聽client聽 = 聽((XFireProxy)聽Proxy.getInvocationHandler(service)).getClient(); 聽聽聽聽聽聽聽聽 // 鎸備笂ClientAuthHandler錛屾彁渚涜璇?/span>聽聽聽聽聽聽聽聽client.addOutHandler( new 聽ClientAuthHandler()); 聽聽聽聽聽聽聽聽List聽list聽 = 聽service.findBooksByCategory( null ); 聽聽聽聽聽聽聽聽assertNotNull(list); 聽聽聽聽聽聽聽聽 for ( int 聽i = 0 ;i < list.size();i ++ ) 聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(((Book)list.get(i)).getName()); 聽聽聽聽} }
浣犲簲璇ョ湅鍒頒笂闈㈢殑client.addOutHandler(new ClientAuthHandler()); 娌¢敊錛屽畠璺熸湇鍔″櫒绔殑AuthenticationHandler鏄竴瀵癸紝涓璧蜂嬌鐢ㄧ殑錛?br />涔熷氨鏄紝姣忎釜琚佸線WebService鏈嶅姟鐨勮姹傞兘琚獵lientAuthHandler澶勭悊榪囦簡銆?br />鐪嬬湅ClientAuthHandler鍋氫簡浜涗粈涔堬細(xì)package 聽org.springside.bookstore.plugins.webservice.authentication; import 聽org.apache.log4j.Logger; import 聽org.codehaus.xfire.MessageContext; import 聽org.codehaus.xfire.handler.AbstractHandler; import 聽org.jdom.Element; import 聽org.jdom.Namespace; /** 聽*聽瀹㈡埛绔鐨勮璇佹ā鍧楋紝鍥炶皟澶勭悊妯″潡 聽*聽姣忎釜闇瑕佽璇佺殑WebService鏂規(guī)硶閮藉彲浠ユ寕榪欎釜Handler 聽*聽 聽*聽浠呯敤浜嶥emo錛屼粠瑙h﹀拰鏄撶敤鎬у嚭鍙戯紝 聽*聽娌℃湁璺烝cegi緇撳悎錛屼綘鍙互浠繪剰鎵╁睍 聽*聽榛樿鐢ㄦ埛鍚?瀵嗙爜鏄痑dmin/admin 聽*聽 聽*聽ClientAuthHandler璺烝uthenticationHandler瑕佷竴璧風(fēng)敤錛屾垨鑰呴兘涓嶇敤 聽*聽 聽*聽@author 聽聽david.turing 聽* 聽*聽@blog聽openssl.blogjava.net 聽 */ 聽聽聽聽 public 聽 class 聽ClientAuthHandler聽 extends 聽AbstractHandler聽{ 聽聽聽聽聽聽聽聽 private 聽 static 聽 final 聽Logger聽log聽 = 聽Logger.getLogger(ClientAuthHandler. class ); 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽 // 瀹㈡埛绔嚜宸遍厤緗敤鎴峰悕瀵嗙爜鎴栬呮洿瀹夊叏鐨凨eyStore鏂瑰紡 聽聽聽聽聽聽聽聽 private 聽String聽username聽 = 聽 " admin " ; 聽聽聽聽聽聽聽聽 private 聽String聽password聽 = 聽 " admin " ; 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽 public 聽ClientAuthHandler()聽{ 聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽 public 聽ClientAuthHandler(String聽username,String聽password)聽{ 聽聽聽聽聽聽聽聽聽聽聽聽 this .username聽 = 聽username; 聽聽聽聽聽聽聽聽聽聽聽聽 this .password聽 = 聽password; 聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽 public 聽 void 聽setUsername(String聽username)聽{ 聽聽聽聽聽聽聽聽聽聽聽聽 this .username聽 = 聽username; 聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽 public 聽 void 聽setPassword(String聽password)聽{ 聽聽聽聽聽聽聽聽聽聽聽聽 this .password聽 = 聽password; 聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽 public 聽 void 聽invoke(MessageContext聽context)聽 throws 聽Exception聽{ 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽聽聽聽聽 /** ***************************************** 聽聽聽聽聽聽聽聽聽聽聽聽聽*聽Soap聽Header鏂瑰紡 聽聽聽聽聽聽聽聽聽聽聽聽聽*聽浠嶴oap聽Header涓幏鍙栫敤鎴峰悕瀵嗙爜 聽聽聽聽聽聽聽聽聽聽聽聽聽****************************************** */ 聽聽聽聽聽聽聽聽聽聽聽聽final 聽Namespace聽ns聽 = 聽Namespace.getNamespace( " SpringSide " , " http://service.webservice.plugins.bookstore.springside.org " );聽聽 聽聽聽聽聽聽聽聽聽聽聽聽Element聽el聽 = 聽 new 聽Element( " header " ,ns); 聽聽聽聽聽聽聽聽聽聽聽聽Element聽auth聽 = 聽 new 聽Element( " AuthenticationToken " ,聽ns); 聽聽聽聽聽聽聽聽聽聽聽聽Element聽username_el聽 = 聽 new 聽Element( " Username " ,ns); 聽聽聽聽聽聽聽聽聽聽聽聽username_el.addContent(username); 聽聽聽聽聽聽聽聽聽聽聽聽Element聽password_el聽 = 聽 new 聽Element( " Password " ,ns); 聽聽聽聽聽聽聽聽聽聽聽聽password_el.addContent(password); 聽聽聽聽聽聽聽聽聽聽聽聽auth.addContent(username_el); 聽聽聽聽聽聽聽聽聽聽聽聽auth.addContent(password_el); 聽聽聽聽聽聽聽聽聽聽聽聽el.addContent(auth);聽聽聽聽聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽聽聽聽聽context.getCurrentMessage().setHeader(el);聽聽聽聽聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽聽聽聽聽log.info( " ClientAuthHandler聽done! " ); 聽聽聽聽聽聽聽聽} 聽聽聽聽} 涓嶅氨鏄線header閲岄潰娉ㄥ叆username,password錛?br /> 鍦⊿pringSide涓紝鎵鏈夌殑Spring閰嶇疆鏂囦歡閮借灝忕櫧鍒嗘暎鍒板悇涓狹odule涓幓浜嗭紝W(xué)uyu鍘熷厛鏄湪Plugin涓彁渚沇ebservice鍔熻兘錛屽洜姝わ紝鎴戜粛鐒跺湪Plugin涓垱寤篨Fire鎺ュ彛銆?br />SpringSide鐨凷pring閰嶇疆鏂囦歡鏀懼湪:SpringSide -bookstore\webapp\WEB-INF\springmvc-servlet.xml 璇ユ枃浠跺畾涔変簡Plugin鐨剎ml: AuthenticationHandler榪欎釜Bean闇瑕佸厛瀹氫箟鍦≒lugins-servlet.xml涓紝鍏跺畠寰堢畝鍗曪紝澶у鍘籘ry涓涓嬪氨鐭ラ亾浜嗐?img src ="http://m.tkk7.com/security/aggbug/60090.html" width = "1" height = "1" /> ]]> How to use Java produce Signature by USBKey under CryptoAPI/CSP http://m.tkk7.com/security/archive/2006/07/11/java_cryptoapi_csp_signature.htmldavid.turing david.turing Tue, 11 Jul 2006 05:24:00 GMT http://m.tkk7.com/security/archive/2006/07/11/java_cryptoapi_csp_signature.html http://m.tkk7.com/security/comments/57638.html http://m.tkk7.com/security/archive/2006/07/11/java_cryptoapi_csp_signature.html#Feedback 1 http://m.tkk7.com/security/comments/commentRss/57638.html http://m.tkk7.com/security/services/trackbacks/57638.html 闃呰鍏ㄦ枃 ]]> A Java Sample For jCaptcha http://m.tkk7.com/security/archive/2006/06/20/jcaptcha_sample.htmldavid.turing david.turing Tue, 20 Jun 2006 14:10:00 GMT http://m.tkk7.com/security/archive/2006/06/20/jcaptcha_sample.html http://m.tkk7.com/security/comments/54077.html http://m.tkk7.com/security/archive/2006/06/20/jcaptcha_sample.html#Feedback 0 http://m.tkk7.com/security/comments/commentRss/54077.html http://m.tkk7.com/security/services/trackbacks/54077.html 闃呰鍏ㄦ枃 ]]> CAS鍗忚鐨勬姄鍖呭垎鏋?/title> http://m.tkk7.com/security/archive/2006/05/26/sso_cas_traffic.htmldavid.turing david.turing Fri, 26 May 2006 03:27:00 GMT http://m.tkk7.com/security/archive/2006/05/26/sso_cas_traffic.html http://m.tkk7.com/security/comments/48284.html http://m.tkk7.com/security/archive/2006/05/26/sso_cas_traffic.html#Feedback 0 http://m.tkk7.com/security/comments/commentRss/48284.html http://m.tkk7.com/security/services/trackbacks/48284.html 闃呰鍏ㄦ枃 ]]> 灝嗛偖浠朵笌PGP緇戝畾錛屽緩绔嬪畨鍏ㄨ韓浠借璇佸熀紜 http://m.tkk7.com/security/archive/2006/05/10/45547.htmldavid.turing david.turing Wed, 10 May 2006 14:24:00 GMT http://m.tkk7.com/security/archive/2006/05/10/45547.html http://m.tkk7.com/security/comments/45547.html http://m.tkk7.com/security/archive/2006/05/10/45547.html#Feedback 13 http://m.tkk7.com/security/comments/commentRss/45547.html http://m.tkk7.com/security/services/trackbacks/45547.html 闃呰鍏ㄦ枃 ]]> 鍏充簬[娣卞叆Java 2騫沖彴瀹夊叏--浣撶郴鏋舵瀯銆丄PI璁捐鍜屽疄鐜幫紙絎簩鐗堬級]鐨勭炕璇戣川閲?/title> http://m.tkk7.com/security/archive/2006/05/03/44452.htmldavid.turing david.turing Wed, 03 May 2006 08:26:00 GMT http://m.tkk7.com/security/archive/2006/05/03/44452.html http://m.tkk7.com/security/comments/44452.html http://m.tkk7.com/security/archive/2006/05/03/44452.html#Feedback 1 http://m.tkk7.com/security/comments/commentRss/44452.html http://m.tkk7.com/security/services/trackbacks/44452.html 娣卞叆Java 2騫沖彴瀹夊叏--浣撶郴鏋舵瀯銆丄PI璁捐鍜屽疄鐜幫紙絎簩鐗堬級>>榪欐湰涔﹀凡緇忓嚭鐗堬細(xì)http://www.china-pub.com/computers/common/info.asp?id=14712 鑻辨枃鍘熺増鐨勪功鍚嶆槸Inside Sun 鈩?2 Platform Security: Architecture, API Design, and Implementation, Second Edition
鎴戠矖鐪嬩簡涓涓嬶紝鍙戠幇涔﹁瘎涓緢澶氬鏈功緲昏瘧璐ㄩ噺鐨勬鐤戯紝涓嬭澆浜哠ample绔犺妭錛岀矖鐪嬩簡涓涓嬶紝鍙戠幇鏈?br />灝戒漢鎰忥紝紜疄浼?xì)缁欒鑰呯殑鐞嗚В甯︽潵寰堝ぇ鐨勫洶闅俱?br />鎴戣寰桽ecurity鐨勫叴瓚h呮棤闇澶叧娉ㄤ腑鏂囪瘧浣滐紝涔熶笉闇璐ㄧ枒璇戣呭拰鍑虹増鍟嗭紝鍥犱負(fù)緲昏瘧Security Topic鐨勪功綾?br />鏈韓鏄竴浠墮潪甯稿洶闅劇殑浜嬫儏錛岄櫎闈炶瘧鑰呭Java Security鐨勬蹇甸潪甯告竻鏅幫紝鍚﹀垯鍗充嬌鍝曟槸涓涓蹇典笂鐨勮璇戯紝 鍒板彲鑳戒細(xì)瀵艱嚧璇昏呬駭鐢熷緢紱昏氨鐨勮瑙c?br />Sun Security鐨勫唴瀹逛笉璞′竴浜涘疄璺墊х殑topic錛屽Spring錛孒ibernate錛孉jax閭f牱錛屽彲浠ラ氳繃澶ч噺鐨凷ample鏉ヨВ閲婏紝 瀹冮渶瑕佽鑰呭叿澶囦竴瀹氱殑Security姒傚康鍩虹鍚庯紝鎵嶈兘瑙i噴娓呮錛堝嵆姒傚康鐨勭悊瑙i棬妲涙瘮杈冮珮錛夈?br />鎵浠ワ紝鎴戣繕鏄緩璁紝瀵逛簬瀹姏澶х墰鐨勫ぇ浣滐紝榪樻槸涓誨紶鐪嬭嫳鏂囩増鍜孞DK Specification錛屽叾瀹濻un鐨凧ava Security鐨?br />Spesification寰堝閮芥槸鍑鴻嚜瀹姏涔嬫墜錛岀湅鐫浜汼pesification褰撶劧娌℃湁鐪嬫晠浜嬩功閭d箞鑸掓湇錛屼絾璁ょ湡鍜鍤煎嚑嬈★紝鏁堟灉 鎬繪瘮鐪嬮偅浜涘鏄撳鑷磋瑙g殑璇戜綔瑕佸ソ寰楀銆?br /> 鐩墠錛孞ava Security鐨勪功鍩烘湰涓婃湁涓ゆ湰錛?br />IBM涓撳緇勪滑緙栧啓鐨勶細(xì) Sun涓撳緇勭紪鍐欑殑錛?br />Inside Sun 鈩?2 Platform Security: Architecture, API Design, and Implementation, Second Edition By Li聽Gong , Gary聽Ellison , Mary聽Dageforde 聽 Publisher : Addison Wesley Pub Date : June 06, 2003 ISBN : 0-201-78791-1 Pages : 384 Slots : 1
榪欎袱鏈功錛屽墠鑰呮洿鍏蟲敞浜嶫2EE瀹炶返鐨勮搴﹀嚭鍙戯紝鍚庤呮洿鍋忛噸浜庝粠鍩虹姒傚康涓嶫ava Platform鐨勮搴﹀嚭鍙戯紝閮芥槸寰堝ソ鐨勪功錛?br />寰堝鏄撳氨鑳紼mule鍒拌繖涓ゆ湰涔︺?br />鎴戜釜浜烘洿鍋忓悜寤鴻璇昏呭厛緇嗚鍚庝竴鏈紝鐒跺悗鍐嶇矖鐪嬪墠涓鏈功鐨勪竴浜泃opic銆?br />涓ゆ湰涔﹂兘鍩烘湰涓婇兘娌℃湁鑺卞緢澶у姏鍘昏В鏋怞ava娌欑(SandBox)錛孞ava鏉冮檺鎺у埗妯″瀷絳夎繖浜涙瘮杈冮毦鎼炲緱姒傚康錛屾湁鐐歸仐鎲撅紝甯屾湜 鑷繁涔熻兘灝藉揩鎶芥椂闂存彁渚涗竴綃囨繁鍏ユ祬鍑轟簬Java Security鐨勬枃绔?) ]]> 濡備綍浠巔fx/p12鏂囦歡涓彁鍙朢SA瀵嗛挜闀垮害鍙?qiáng)鍏朵粬鐩稿叧淇℃?/title> http://m.tkk7.com/security/archive/2006/04/29/Java_Pfx_Pkcs12_x509.htmldavid.turing david.turing Sat, 29 Apr 2006 01:38:00 GMT http://m.tkk7.com/security/archive/2006/04/29/Java_Pfx_Pkcs12_x509.html http://m.tkk7.com/security/comments/43934.html http://m.tkk7.com/security/archive/2006/04/29/Java_Pfx_Pkcs12_x509.html#Feedback 12 http://m.tkk7.com/security/comments/commentRss/43934.html http://m.tkk7.com/security/services/trackbacks/43934.html 闃呰鍏ㄦ枃 ]]> 鍓栨瀽CAS Proxy鐨勮璁″師鐞?/title> http://m.tkk7.com/security/archive/2006/04/26/SSO_CASProxy.htmldavid.turing david.turing Wed, 26 Apr 2006 15:54:00 GMT http://m.tkk7.com/security/archive/2006/04/26/SSO_CASProxy.html http://m.tkk7.com/security/comments/43441.html http://m.tkk7.com/security/archive/2006/04/26/SSO_CASProxy.html#Feedback 0 http://m.tkk7.com/security/comments/commentRss/43441.html http://m.tkk7.com/security/services/trackbacks/43441.html 闃呰鍏ㄦ枃 ]]> Confluence鍜孉D鐨勯泦鎴愯璇?/title> http://m.tkk7.com/security/archive/2006/04/24/confluence_sso_with_AD_authentication.htmldavid.turing david.turing Mon, 24 Apr 2006 14:42:00 GMT http://m.tkk7.com/security/archive/2006/04/24/confluence_sso_with_AD_authentication.html http://m.tkk7.com/security/comments/42907.html http://m.tkk7.com/security/archive/2006/04/24/confluence_sso_with_AD_authentication.html#Feedback 0 http://m.tkk7.com/security/comments/commentRss/42907.html http://m.tkk7.com/security/services/trackbacks/42907.html http://confluence.atlassian.com/display/DOC/Enable+LDAP+authentication 璇ユ枃妗f槸瀹屾暣騫朵笖姝g‘鐨勶紝閰嶇疆涔熼潪甯哥畝鍗曪紝Rayman寰堝揩灝遍厤緗ソ浜嗐傛垜鍚庢潵鍙戠幇浠栫殑閰嶇疆鏂規(guī)硶璺熶笂榪版柟娉曚笉涓鏍鳳紝浠栨槸鏍規(guī)嵁浠ヤ笅鐨勬枃妗i厤緗殑錛?br />http://confluence.atlassian.com/display/DEV/Confluence+LDAP+Integration 榪欎袱縐嶉厤緗柟寮忕敱姣旇緝澶х殑鍖哄埆錛氬鏋滀綘鐨凜onfluence璺烰IRA鎹嗙粦錛岃浣跨敤鍓嶈咃紝鍚﹀垯錛屽緩璁敤鍚庤呫?br /> 鏈鍚庯紝闅嗛噸鎺ㄨ崘Rayman鐨凚log錛?a >http://raymanzhang.cnblogs.com/ 涓涓浘緇忕紪鍐欎簡MDict鐨勫ソ鍚屽織 ]]> WeblogicServer緇戝畾AD璁よ瘉 http://m.tkk7.com/security/archive/2006/04/02/38718.htmldavid.turing david.turing Sun, 02 Apr 2006 04:05:00 GMT http://m.tkk7.com/security/archive/2006/04/02/38718.html http://m.tkk7.com/security/comments/38718.html http://m.tkk7.com/security/archive/2006/04/02/38718.html#Feedback 0 http://m.tkk7.com/security/comments/commentRss/38718.html http://m.tkk7.com/security/services/trackbacks/38718.html 2錛屾瀯閫犺鍩熼噷闈㈢殑鐢ㄦ埛 weblogic The default administration user DefaultAuthenticator user0001 weblogic DefaultAuthenticator user0002 user0002 DefaultAuthenticator 3錛屽緩绔嬩竴涓粍錛寃eblogicAdmin錛屽悓鏃跺湪AD涓篃寤虹珛涓涓繖鏍風(fēng)殑緇?br />娉ㄦ剰錛屽湪AD涓殑users鑰屼笉鏄疊uiltin閲岄潰寤虹粍錛屽洜涓轟袱鑰呯殑DN鏄笉涓鏍風(fēng)殑銆?br />4錛屽皢鎵鏈塛eblogic涓殑user0001鐢ㄦ埛閮藉姞鍏ュ埌鏀圭粍銆?br />5錛屾祴璇旳D鐨勫彲榪炴帴鎬э紝涓嬭澆涓涓狶DAP Browser銆?br />6錛屽湪Weblogic Console涓殑Security->Realm鐨凙uthentication閰嶇疆涓涓柊鐨凩DAP Provider錛岀被鍨嬩負(fù)錛欳onfigure a new Active Directory Authenticator... 7錛岄厤緗弬鏁幫細(xì) i) 杞埌Active Directory閭d竴Tab,鐪嬪埌HOST浜嗗惂錛?br />HOST涓轟綘鐨凙D鐨処P鎴栬呬富鏈哄悕錛孉D榛樿绔彛鏄?89 ii) Principal涓篊N=user0001,CN=Users,DC=dlsvr,DC=com 鍏朵腑錛孌C=dlsvr,DC=com涓烘垜鐨勬湇鍔″櫒鐨凴ootDN錛堜緥濡侱C=ibm錛孌C=com錛?br />寰堣鍘孉D鐨勪竴涓湴鏂規(guī)槸瀹冮噰鐢ㄤ笌鍏朵粬LDAP涓嶄竴鏍風(fēng)殑鍛藉悕鏂規(guī)硶錛屼粬鐢–N=User鑰屼笉鏄疧U=....錛屾墍浠ユ垜鍓嶉潰鐨勬楠ゆ墠闇瑕佸緩绔嬩竴涓獁elogicAdmin鐨勭粍銆?br />iii)Credential涓篈D涓璾ser0001鐨勫瘑鐮併?br />娉ㄦ剰錛歩i)鍜宨ii)鏄敤浜庤繛鎺D鐢ㄧ殑錛屾瀯閫犱竴涓狶DAPConnection闇瑕佺敤鎴峰悕瀵嗙爜鐨勶紝鎳備笉鎳傦細(xì)錛?br />杞埌user tab iv) User Name Attribute錛歶ser0001 v) User Base DN錛欳N=Users,DC=dlsvr,DC=com 杞埌group tab vi) Group Base DN:CN=weblogicAdmin,CN=Users,DC=dlsvr,DC=com vii) weblogicAdmin 淇濆瓨 鍏抽敭鐨勬楠ゅ埌浜嗭細(xì) Security->Realms->myrealm->Providers->Authentication 鏈夋病鏈夌湅鍒癛e-order the Configured Authentication Providers 瀵癸紝灝辨槸榪欓噷闇瑕佽皟鏁翠竴涓嬮『搴忋?br />鎶夾ctiveDirectoryAuthenticator璋冩暣鍒版渶涓婇潰錛堜紭鍏堢駭鏈楂橈級 鐒跺悗璁劇疆ActiveDirectoryAuthenticator鐨凣eneral欏甸噷闈㈢殑Control Flag涓篟equired銆?br />鎺ョ潃DefaultAuthenticator閲岄潰鐨勮鎴愭槸OPTIONAL銆?br />浜庢槸錛孉D鍙栦唬浜嗕互鍓嶇殑DefaultAuthenticator浜嗭紝濡傛灉涓や釜閮絉equried錛岄偅涔堜篃浣犺鎺ュ彈鍙岄噸璁よ瘉錛屾睏......涓鑸笉闇瑕佽繖鏍楓?br />娉ㄦ剰:boot.properties閲岄潰鐨勯粯璁ょ殑Weblogic鍚姩璐﹀彿鍚屾牱鍙桝D褰卞搷錛屼綘濡傛灉鍦ˋD閲岄潰紱佹浜哤eblogic榪欎釜璐﹀彿錛屾垜淇濊瘉浣燱LS鍚姩涓嶄簡 ]]> CAS闆嗘垚Weblogic鐨凷ervletAuthentication璋冪敤 http://m.tkk7.com/security/archive/2006/04/02/38716.htmldavid.turing david.turing Sun, 02 Apr 2006 04:02:00 GMT http://m.tkk7.com/security/archive/2006/04/02/38716.html http://m.tkk7.com/security/comments/38716.html http://m.tkk7.com/security/archive/2006/04/02/38716.html#Feedback 1 http://m.tkk7.com/security/comments/commentRss/38716.html http://m.tkk7.com/security/services/trackbacks/38716.html 鏈潵錛屼嬌鐢╦_security_check鏄渶綆鍗曠殑Build-in璁よ瘉鏂瑰紡錛屼絾CAS鏈夎嚜宸辯殑鐧誨綍鍏ュ彛錛屽嵆login servlet錛屽鏋滅敤璇ervlet錛屽繀欏昏嚜宸卞姩鎵嬪畬鎴怞AAS鐨勭櫥褰曘備簬鏄紝寮濮嬫墿灞旵AS鐨別du.yale.its.tp.cas.auth.provider錛屽湪璇ュ寘涓殑provider閮芥墿灞曡嚜authHandler鎺ュ彛錛岃孋AS鏄湪web.xml涓畾涔変簡鏈緇堜嬌鐢ㄥ摢涓涓猘uthHandler銆?br /> edu.yale.its.tp.cas.authHandler edu.yale.its.tp.cas.auth.provider.WeblogicHandler
鎴戣嚜宸卞啓浜嗕竴涓猈eblogicHandler(edu.yale.its.tp.cas.auth.provider鍖呬腑)錛屼笓闂ㄨCAS鐧誨綍鍒癢eblogic Server錛屼簨瀹炰笂錛屽皢鏉ュ鏋滀笉鐢╓LS錛岃繕鍙兘浣跨敤Websphere錛孞boss錛孉D涔嬬被銆?/p>
鍚庢潵鍙戠幇錛岃櫧鐒惰兘loginContext鎷垮埌Subject錛屼絾璇ubject鐨凱rincipal涓嶈兘琚〉闈㈢殑request.getPrincipal()鎵鍙栧緱錛岄啋鎮(zhèn)熻嚜宸卞湪鍋欽AAS Login錛屾煡鐪媤eblogic鏂囨。錛屽師鏉eblogic鎻愪緵浜?br />weblogic.servlet.security.ServletAuthentication 鐢ㄤ簬鍦⊿ervlet绔皟鐢↗AAS鎺ュ彛榪涜鐧誨綍錛岄氳繃璇ユ帴鍙g櫥褰曞悗錛屽氨濡傚悓User浣跨敤浜嗘爣鍑嗙殑鐧誨綍鏈哄埗鐧誨叆浜哤eblogic銆?br />浜庢槸錛岀珛鍗充慨鏀逛簡login servlet嫻嬭瘯涓涓嬶紝鍔犲叆 try { CallbackHandler handler = new SimpleCallbackHandler( request.getParameter("username"), request.getParameter("password")); Subject mySubject = weblogic.security.services.Authentication .login(handler); weblogic.servlet.security.ServletAuthentication.runAs( mySubject, request); System.out.println("mySubject[" +mySubject.toString()+"]"+ "鍐欏叆Session"); } catch (LoginException e) { // TODO Auto-generated catch block e.printStackTrace(); }
鐒跺悗錛岄〉闈㈡灉鐒跺氨鑳芥嬁鍒癙incipal浜嗐?/p>
]]>Tomcat(鐩磋嚦5.5.9鐗堟湰)涓嶆敮鎸並eyStore鍜孠eyEntry浣跨敤涓嶅悓鐨刾assword http://m.tkk7.com/security/archive/2006/04/02/38715.htmldavid.turing david.turing Sun, 02 Apr 2006 04:00:00 GMT http://m.tkk7.com/security/archive/2006/04/02/38715.html http://m.tkk7.com/security/comments/38715.html http://m.tkk7.com/security/archive/2006/04/02/38715.html#Feedback 0 http://m.tkk7.com/security/comments/commentRss/38715.html http://m.tkk7.com/security/services/trackbacks/38715.html 浠婂ぉ錛屾湁鏈嬪弸鍦ㄩ厤緗甌omcat SSL鐨勬椂鍊欙紝鍑虹幇濡備笅鐨勫紓甯革細(xì) java.security.UnrecoverableKeyException: Cannot recover key 鑰屼笖浠栧凡緇忔紜厤緗簡keystoreFile鍜宬eystorePass銆?br />鍚庢潵鎴戝彂鐜幫紝浠栧Keystore涓殑Key浣跨敤浜哖assword淇濇姢錛岃屼笖 淇濇姢榪欎釜KeyEntry鐨凨eyPass!=KeyStore鐨凨eypass錛屽鑷村嚭閿欙紝 Tomcat SSL瑕佹眰榪欎袱涓瘑鐮佸繀欏葷浉絳夈?br />瑙e喅鍔炴硶錛?br />keytool -keypasswd -v -alias mykeyalias -keypass noequalpass -new equalpass -keystore mykeystore.jks -storepass equalpass 鍏朵腑錛?mykeyalias鏄痥ey鍦╧eystore涓殑鍒悕錛?keypass鍚庨潰璺焝ey鐨勬棫瀵嗙爜"noequalpass", -new 鏄柊瀵嗙爜"equalpass",娉ㄦ剰鏂板瘑鐮佽窡storepass涓鑷淬?/p>
闄勶細(xì)Weblogic鏄敮鎸佷笉涓鑷寸殑KeystorePass鍜孠eyPass鐨勩?/p>
]]> JVM鏄庢ǎ閫茶鎺堟瑠鎺у埗鐨?/title> http://m.tkk7.com/security/archive/2006/04/02/38714.htmldavid.turing david.turing Sun, 02 Apr 2006 03:53:00 GMT http://m.tkk7.com/security/archive/2006/04/02/38714.html http://m.tkk7.com/security/comments/38714.html http://m.tkk7.com/security/archive/2006/04/02/38714.html#Feedback 0 http://m.tkk7.com/security/comments/commentRss/38714.html http://m.tkk7.com/security/services/trackbacks/38714.html 闃呰鍏ㄦ枃 ]]> 鍙戝竷SecureX 2.0.0鈥斺擪eyTool Eclipse Plugin+CryptoAPI Integrated+Java Watermark http://m.tkk7.com/security/archive/2006/03/17/SecureX.htmldavid.turing david.turing Fri, 17 Mar 2006 02:38:00 GMT http://m.tkk7.com/security/archive/2006/03/17/SecureX.html http://m.tkk7.com/security/comments/35781.html http://m.tkk7.com/security/archive/2006/03/17/SecureX.html#Feedback 8 http://m.tkk7.com/security/comments/commentRss/35781.html http://m.tkk7.com/security/services/trackbacks/35781.html 鐗堟湰1.0.0 闃呰鍏ㄦ枃 ]]> 浣跨敤PGP浣犵殑鏂囩珷榪涜絳懼悕 http://m.tkk7.com/security/archive/2006/03/09/34511.htmldavid.turing david.turing Thu, 09 Mar 2006 09:24:00 GMT http://m.tkk7.com/security/archive/2006/03/09/34511.html http://m.tkk7.com/security/comments/34511.html http://m.tkk7.com/security/archive/2006/03/09/34511.html#Feedback 5 http://m.tkk7.com/security/comments/commentRss/34511.html http://m.tkk7.com/security/services/trackbacks/34511.html 闃呰鍏ㄦ枃 ]]>
主站蜘蛛池模板:
在线观看片免费人成视频播放 |
亚洲男人天堂2018av |
a毛片免费观看完整 |
亚洲人成色99999在线观看 |
一本色道久久88亚洲综合 |
中国一级毛片免费看视频 |
亚洲伊人久久精品 |
国产视频精品免费 |
两个人看的www免费视频中文 |
国产精品成人亚洲 |
亚洲精品高清视频 |
麻豆国产VA免费精品高清在线 |
国产精品hd免费观看 |
亚洲午夜电影一区二区三区 |
亚洲V无码一区二区三区四区观看 |
色播精品免费小视频 |
国产亚洲精彩视频 |
亚洲日韩国产欧美一区二区三区 |
亚洲美免无码中文字幕在线 |
97国产在线公开免费观看 |
亚洲国产成人久久综合 |
亚洲国产精品嫩草影院在线观看 |
成人午夜性A级毛片免费 |
黄桃AV无码免费一区二区三区 |
美女视频黄.免费网址 |
亚洲国产情侣一区二区三区 |
亚洲AV日韩精品久久久久久
|
亚洲精品WWW久久久久久 |
中文字幕视频免费 |
久久大香伊焦在人线免费 |
免费的黄网站男人的天堂 |
亚洲人成电影在线观看青青 |
亚洲午夜电影在线观看高清 |
亚洲ts人妖网站 |
久久亚洲国产欧洲精品一 |
国产亚洲真人做受在线观看 |
国产一级大片免费看 |
日韩毛片免费无码无毒视频观看 |
色播在线永久免费视频网站 |
免费无码一区二区三区蜜桃
|
久久久久久久免费视频 |