1 2 package java.security.spec; 3 4 import java.math.BigInteger; 5 6 public class RSAPublicKeySpec extends Object implements KeySpec 7 { 8 private BigInteger modulus; 9 private BigInteger publicExponent; 10 RSAPublicKeySpec( BigInteger modulus, BigInteger publicExponent)11 public RSAPublicKeySpec( 12 BigInteger modulus, 13 BigInteger publicExponent) 14 { 15 this.modulus = modulus; 16 this.publicExponent = publicExponent; 17 } 18 getModulus()19 public BigInteger getModulus() 20 { 21 return modulus; 22 } 23 getPublicExponent()24 public BigInteger getPublicExponent() 25 { 26 return publicExponent; 27 } 28 } 29