part2
Interface RSAPublicKey

All Known Implementing Classes:
SimpleRSAPublicKey

public interface RSAPublicKey

An interface defining the methods required of an RSA public key.


Method Summary
 java.math.BigInteger encrypt(java.math.BigInteger m)
          A method to encrypt the big integer m using this public key.
 java.util.AbstractList encrypt(java.lang.String s)
          A method to encrypt the string s using this public key.
 

Method Detail

encrypt

public java.math.BigInteger encrypt(java.math.BigInteger m)
                             throws java.lang.Exception
A method to encrypt the big integer m using this public key.

Throws:
Exception.
java.lang.Exception

encrypt

public java.util.AbstractList encrypt(java.lang.String s)
                               throws java.lang.Exception
A method to encrypt the string s using this public key.

Throws:
Exception.
java.lang.Exception