org.xbill.DNS.security.RSAPubKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of browsermob-proxy Show documentation
Show all versions of browsermob-proxy Show documentation
A programmatic HTTP/S designed for performance and functional testing
// Copyright (c) 1999-2004 Brian Wellington ([email protected])
package org.xbill.DNS.security;
import java.math.BigInteger;
import java.security.interfaces.RSAPublicKey;
/**
* 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 */
public
RSAPubKey(BigInteger modulus, BigInteger exponent) {
Modulus = modulus;
Exponent = exponent;
}
/** Obtain the modulus of an RSA public key */
public BigInteger
getModulus() {
return Modulus;
}
/** Obtain the exponent of an RSA public key */
public BigInteger
getPublicExponent() {
return Exponent;
}
/** Obtain the algorithm of an RSA public key */
public String
getAlgorithm() {
return "RSA";
}
/** Obtain the format of an RSA public key (unimplemented) */
public String
getFormat() {
return null;
}
/** Obtain the encoded representation of an RSA public key (unimplemented) */
public byte []
getEncoded() {
return null;
}
}