Example usage for org.bouncycastle.jce.provider JCERSAPrivateKey getPrivateExponent

List of usage examples for org.bouncycastle.jce.provider JCERSAPrivateKey getPrivateExponent

Introduction

In this page you can find the example usage for org.bouncycastle.jce.provider JCERSAPrivateKey getPrivateExponent.

Prototype

public BigInteger getPrivateExponent() 

Source Link

Usage

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);
}