/** * Decode data using session key then is decoded using private key. * * @param message the message * @param encodedKey the encoded key * @return the byte[] * @throws GeneralSecurityException the general security exception */ public byte[] decodeData(byte[] message, byte[] encodedKey) throws GeneralSecurityException { sessionCipherPair = null; decodeSessionKey(encodedKey); return decodeData(message); }