public Optional < Field > checkInputEncrypt ( Field field ) throws StageException { if ( UNSUPPORTED_TYPES . contains ( field . getType ( ) ) ) { throw new StageException ( CRYPTO_03 , field . getType ( ) ) ; } return Optional . of ( field ) ; }
Checks that the encryption input is a supported type otherwise sends the record to StageException .