⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dsapubkey.java

📁 linux下建立JAVA虚拟机的源码KAFFE
💻 JAVA
字号:
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)package org.xbill.DNS.security;import java.math.*;import java.security.interfaces.*;/** * A stub implementation of a DSA (Digital Signature Algorithm) public key * * @author Brian Wellington */class DSAPubKey implements DSAPublicKey {static class SimpleDSAParams implements DSAParams {	private BigInteger P, Q, G;	public	SimpleDSAParams(BigInteger p, BigInteger q, BigInteger g) {		P = p;		Q = q;		G = g;	}	public BigInteger	getP() {		return P;	}			public BigInteger	getQ() {		return Q;	}			public BigInteger	getG() {		return G;	}}private DSAParams params;private BigInteger Y;/** Create a DSA public key from its parts */publicDSAPubKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y) {	params = (DSAParams) new SimpleDSAParams(p, q, g);	Y = y;}/** Obtain the public value of a DSA public key */public BigIntegergetY() {	return Y;}/** Obtain the parameters of a DSA public key */public DSAParamsgetParams() {	return params;}/** Obtain the algorithm of a DSA public key */public StringgetAlgorithm() {	return "DSA";}/** Obtain the format of a DSA public key (unimplemented) */public StringgetFormat() {	return null;}/** Obtain the encoded representation of a DSA public key (unimplemented) */public byte []getEncoded() {	return null;}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -