rsapubkey.java

来自「DNS Java 是java实现的DNS」· Java 代码 · 共 56 行

JAVA
56
字号
// 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 an RSA public key * * @author Brian Wellington */class RSAPubKey implements RSAPublicKey {private BigInteger Modulus, Exponent;/** Create an RSA public key from its parts */publicRSAPubKey(BigInteger modulus, BigInteger exponent) {	Modulus = modulus;	Exponent = exponent;}/** Obtain the modulus of an RSA public key */public BigIntegergetModulus() {	return Modulus;}/** Obtain the exponent of an RSA public key */public BigIntegergetPublicExponent() {	return Exponent;}/** Obtain the algorithm of an RSA public key */public StringgetAlgorithm() {	return "RSA";}/** Obtain the format of an RSA public key (unimplemented) */public StringgetFormat() {	return null;}/** Obtain the encoded representation of an RSA public key (unimplemented) */public byte []getEncoded() {	return null;}}

⌨️ 快捷键说明

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