crypto-lib/src/main/java/com/streamsets/pipeline/stage/processor/crypto/FieldEncrypter.java
public Optional<Field> checkInputEncrypt(Record record, Field field) {
    if (UNSUPPORTED_TYPES.contains(field.getType())) {
      getContext().toError(record, CRYPTO_03, field.getType());
      return Optional.empty();
    }
    return Optional.of(field);
  }
public Optional<Field> checkInputEncrypt(Record record, Field field) {
    if (UNSUPPORTED_TYPES.contains(field.getType())) {
      getContext().toError(record, CRYPTO_03, field.getType());
      return Optional.empty();
    }
    return Optional.of(field);
  }
public Optional < Field > checkInputEncrypt ( Record record , Field field ) { if ( UNSUPPORTED_TYPES . contains ( field . getType ( ) ) ) { getContext ( ) . toError ( record , CRYPTO_03 , field . getType ( ) ) ; return Optional . empty ( ) ; } return Optional . of ( field ) ; }
Checks that the encryption input is a supported type, otherwise sends the
record to error.

@param record {@link Record}
@param field {@link Field}
@return empty {@link Optional} if the record was sent to error
Checks that the encryption input is a supported type otherwise sends the record to error .