Class RSAPrivateKey

  • All Implemented Interfaces:
    JSONable

    public class RSAPrivateKey
    extends PrivateKey
    The Private Key for the RSA Algorithm
    Version:
    July 31, 2016
    Author:
    Javier Rojas Blum
    • Constructor Detail

      • RSAPrivateKey

        public RSAPrivateKey​(SignatureAlgorithm signatureAlgorithm,
                             java.math.BigInteger modulus,
                             java.math.BigInteger privateExponent)
      • RSAPrivateKey

        public RSAPrivateKey​(SignatureAlgorithm signatureAlgorithm,
                             java.lang.String modulus,
                             java.lang.String privateExponent)
    • Method Detail

      • getModulus

        public java.math.BigInteger getModulus()
      • setModulus

        public void setModulus​(java.math.BigInteger modulus)
      • getPrivateExponent

        public java.math.BigInteger getPrivateExponent()
      • setPrivateExponent

        public void setPrivateExponent​(java.math.BigInteger privateExponent)
      • toJSONObject

        public org.json.JSONObject toJSONObject()
                                         throws org.json.JSONException
        Throws:
        org.json.JSONException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object