`
djandeclipse
  • 浏览: 37406 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
最近受栋兄影响接触了webservice并参照他的例子下做了一个练习.在此纪录下来以便日后使用.附件为axis.jar包 webService类中写待测试的几个方法. package com; public class WebService { public boolean login(String name, String password) { if (name.equals("a") && password.equals("b")) { return true; } return false; ...
public class E { public String ALGORITHM = "RSA"; public String public_key = "publickey"; public String private_key = "privatekey"; public Map<String, Object> initKey() throws Exception { Map<String, Object> result = new HashMap<String, Object ...
import java.security.Key; import java.security.SecureRandom; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.DESKeySpec; public class C { private Key getKey(String key) throws ...
最近整了一个TimerTask 要求每天定点执行某一任务. import java.util.Calendar; import java.util.Date; import java.util.Timer; import java.util.TimerTask; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import org.apache.log4j.Logger; ...
Global site tag (gtag.js) - Google Analytics