1 19 20 package com.maverick.crypto.publickey; 21 22 import java.math.BigInteger ; 23 24 public abstract class RsaKey { 25 26 protected BigInteger modulus; 27 28 public RsaKey() { 29 } 30 31 public RsaKey(BigInteger modulus) { 32 this.modulus = modulus; 33 } 34 35 public BigInteger getModulus() { 36 return modulus; 37 } 38 39 protected void setModulus(BigInteger modulus) { 40 this.modulus = modulus; 41 } 42 43 public int getBitLength() { 44 return modulus.bitLength(); 45 } 46 47 } 48 | Popular Tags |