Code example for RSAPublicKey

Methods: getModulus, getPublicExponent

0
    } 
 
    BCRSAPublicKey( 
        RSAPublicKey key)
    { 
        this.modulus = key.getModulus();
        this.publicExponent = key.getPublicExponent();
    } 
 
    BCRSAPublicKey( 
        SubjectPublicKeyInfo info)
    { 
        try 
        { 
            org.bouncycastle.asn1.pkcs.RSAPublicKey  pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInstance(info.parsePublicKey());
 
            this.modulus = pubKey.getModulus();
            this.publicExponent = pubKey.getPublicExponent();
        } 
        catch (IOException e)
        {