List of usage examples for org.bouncycastle.jce.provider JCERSAPrivateKey getPrivateExponent
public BigInteger getPrivateExponent()
From source file:TorJava.Common.Encryption.java
License:Open Source License
public static RSAPrivateKeyStructure getRSAPrivateKeyStructureFromJCERSAPrivateKey(JCERSAPrivateKey key, JCERSAPublicKey pubkey) {/*from ww w.j a v a 2s. c o m*/ return new RSAPrivateKeyStructure(key.getModulus(), pubkey.getPublicExponent(), key.getPrivateExponent(), null, null, null, null, null); }