// fallback to the BC implementation for jdk1.4.2 as JCE RSA not available
RSAEngine eng = new RSAEngine();
PKCS1Encoding padded_eng = new PKCS1Encoding( eng );
CipherParameters param = RSAUtil.generatePublicKeyParameter(public_key);
param = new ParametersWithRandom(param, RandomUtils.SECURE_RANDOM);
padded_eng.init( true, param );
encryped_session_key = padded_eng.processBlock(secret_bytes, 0, secret_bytes.length);
}
}catch( Throwable e ){
e.printStackTrace();