nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olegz <>
Subject [GitHub] nifi pull request: Eorgad patch nifi 539
Date Mon, 16 May 2016 21:10:20 GMT
Github user olegz commented on a diff in the pull request:
    --- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/
    @@ -0,0 +1,682 @@
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.nifi.processors.standard.util;
    +import java.nio.file.Path;
    +import java.nio.file.Paths;
    +import java.text.DateFormat;
    +import java.text.SimpleDateFormat;
    +import java.util.ArrayList;
    +import java.util.Date;
    +import java.util.List;
    +import java.util.Locale;
    +import java.util.Properties;
    +import java.util.Vector;
    +import java.util.concurrent.TimeUnit;
    +import java.util.regex.Pattern;
    +import org.apache.nifi.components.PropertyDescriptor;
    +import org.apache.nifi.components.PropertyValue;
    +import org.apache.nifi.flowfile.FlowFile;
    +import org.apache.nifi.logging.ProcessorLog;
    +import org.apache.nifi.processor.ProcessContext;
    +import org.apache.nifi.processor.util.StandardValidators;
    +import org.slf4j.LoggerFactory;
    +import com.jcraft.jsch.ChannelSftp;
    +import com.jcraft.jsch.ChannelSftp.LsEntry;
    +import com.jcraft.jsch.ChannelSftp.LsEntrySelector;
    +import com.jcraft.jsch.JSch;
    +import com.jcraft.jsch.JSchException;
    +import com.jcraft.jsch.Session;
    +import com.jcraft.jsch.SftpException;
    +public class SCPTransfer implements FileTransfer {
    +    public static final PropertyDescriptor PRIVATE_KEY_PATH = new PropertyDescriptor.Builder()
    +            .name("Private Key Path")
    +            .description("The fully qualified path to the Private Key file")
    +            .required(false)
    +            .addValidator(StandardValidators.FILE_EXISTS_VALIDATOR)
    +            .build();
    +    public static final PropertyDescriptor PRIVATE_KEY_PASSPHRASE = new PropertyDescriptor.Builder()
    +            .name("Private Key Passphrase")
    +            .description("Password for the private key")
    +            .required(false)
    +            .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
    --- End diff --
    I'll take it back after discussing it with @alopresto. Passphrase could be a blank string
with length > 0. So you're ok here.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message