Class RSAPublicKey


  • public class RSAPublicKey
    extends Key
    This class implements the RSA cryptographic cipher public key.
    • Constructor Summary

      Constructors 
      Constructor Description
      RSAPublicKey​(byte[] e, byte[] n)
      Creates a new RSAPublicKey object, given the public exponent and the modulus.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getModulus()
      Returns a copy of the byte array containing the modulus.
      byte[] getPublicExponent()
      Returns a copy of the byte array containing the public exponent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RSAPublicKey

        public RSAPublicKey​(byte[] e,
                            byte[] n)
        Creates a new RSAPublicKey object, given the public exponent and the modulus.
        Parameters:
        e - A byte array containing the public exponent.
        n - A byte array containing the modulus.
    • Method Detail

      • getModulus

        public byte[] getModulus()
        Returns a copy of the byte array containing the modulus.
        Returns:
        A copy of the byte array containing the modulus.
      • getPublicExponent

        public byte[] getPublicExponent()
        Returns a copy of the byte array containing the public exponent.
        Returns:
        A copy of the byte array containing the public exponent.