public Optional < Field > checkInputDecrypt ( Field field ) throws StageException { if ( field . getType ( ) != Field . Type . BYTE_ARRAY ) { throw new StageException ( CRYPTO_02 , field . getType ( ) ) ; } return Optional . of ( field ) ; }
Checks that the decryption input is a valid type otherwise sends the record to StageException .