wendang for java. 124342423 432

源代码在线查看: import.java

软件大小: 98 K
上传用户: xx87293767
关键词: 124342423 wendang java for
下载地址: 免注册下载 普通下载 VIP

相关代码

				package javasec.samples.ch09;								import java.security.*;				import java.security.spec.*;				import java.io.*;				import java.math.*;								public class Import {				    public static void main(String args[]) {				        try {				            FileInputStream fis = new FileInputStream("exportedKey");				            ObjectInputStream ois = new ObjectInputStream(fis);				            DSAPrivateKeySpec ks = new DSAPrivateKeySpec(				                        (BigInteger) ois.readObject(),				                        (BigInteger) ois.readObject(),				                        (BigInteger) ois.readObject(),				                        (BigInteger) ois.readObject());				            KeyFactory kf = KeyFactory.getInstance("DSA");				            PrivateKey pk = kf.generatePrivate(ks);				            System.out.println("Got private key");				        } catch (Exception e) {				            e.printStackTrace();				        }				    }				}							

相关资源