@Override protected Cipher getCipher() { return RsaCipherFactory.create(); }
static Cipher create() { return SpiLoader.load(RsaCipherFactory.class).get(); } }
@Override public void init(Channel channel, boolean security) { this.channel = channel; this.context = new SessionContext(); this.lastReadTime = System.currentTimeMillis(); this.status = STATUS_CONNECTED; if (security) { this.context.changeCipher(RsaCipherFactory.create()); } }