Class RSAPublicKey

  • All Implemented Interfaces:
    JSONable

    public class RSAPublicKey
    extends PublicKey
    The Public Key for the RSA Algorithm
    Version:
    July 31, 2016
    Author:
    Javier Rojas Blum
    • Constructor Detail

      • RSAPublicKey

        public RSAPublicKey​(java.math.BigInteger modulus,
                            java.math.BigInteger publicExponent)
      • RSAPublicKey

        public RSAPublicKey​(java.lang.String modulus,
                            java.lang.String publicExponent)
    • Method Detail

      • getModulus

        public java.math.BigInteger getModulus()
      • setModulus

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

        public java.math.BigInteger getPublicExponent()
      • setPublicExponent

        public void setPublicExponent​(java.math.BigInteger publicExponent)
      • 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