posts - 66,  comments - 40,  trackbacks - 0

package test;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;

public class MyX509TrustManager implements X509TrustManager {

 /* (non-Javadoc)
  * @see javax.net.ssl.X509TrustManager#checkClientTrusted(java.security.cert.X509Certificate[], java.lang.String)
  */
 public void checkClientTrusted(X509Certificate[] arg0, String arg1)
  throws CertificateException {

 }

 /* (non-Javadoc)
  * @see javax.net.ssl.X509TrustManager#checkServerTrusted(java.security.cert.X509Certificate[], java.lang.String)
  */
 public void checkServerTrusted(X509Certificate[] arg0, String arg1)
  throws CertificateException {

 }

 /* (non-Javadoc)
  * @see javax.net.ssl.X509TrustManager#getAcceptedIssuers()
  */
 public X509Certificate[] getAcceptedIssuers() {
  return null;
 }

}

posted on 2007-01-18 09:53 happytian 阅读(384) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 
<2007年1月>
31123456
78910111213
14151617181920
21222324252627
28293031123
45678910

Welcome here, my friend!

常用链接

留言簿(12)

随笔档案(66)

文章分类

文章档案(63)

web

最新随笔

搜索

  •  

积分与排名

  • 积分 - 88768
  • 排名 - 646

最新评论

阅读排行榜

评论排行榜