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

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

Introduction

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

Prototype

public BigInteger getModulus() 

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  2 s  . c  o m
    return new RSAPrivateKeyStructure(key.getModulus(), pubkey.getPublicExponent(), key.getPrivateExponent(),
            null, null, null, null, null);
}