An example of using RSA to encrypt a single asymmetric key. : RSA algorithm « Security « Java Tutorial.
www.java2s.com