Package totalcross.crypto.cipher
Class RSAPublicKey
- java.lang.Object
-
- totalcross.crypto.cipher.Key
-
- totalcross.crypto.cipher.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.
-
-
-
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.
-
-