All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.camel.component.file.remote.FtpsConfiguration Maven / Gradle / Ivy

There is a newer version: 4.8.0
Show newest version
/*
 * 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
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * 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.camel.component.file.remote;

import java.net.URI;

import org.apache.camel.spi.UriParam;
import org.apache.camel.spi.UriParams;

/**
 * FTP Secure (FTP over SSL/TLS) configuration
 */
@UriParams
public class FtpsConfiguration extends FtpConfiguration {

    @UriParam(defaultValue = "TLSv1.3", label = "security")
    private String securityProtocol = "TLSv1.3";
    @UriParam(label = "security")
    private boolean implicit;
    @UriParam(label = "security")
    private boolean disableSecureDataChannelDefaults;
    @UriParam(label = "security")
    private String execProt;
    @UriParam(label = "security")
    private Long execPbsz;

    public FtpsConfiguration() {
        setProtocol("ftps");
    }

    public FtpsConfiguration(URI uri) {
        super(uri);
    }

    /**
     * Returns the underlying security protocol.
     */
    public String getSecurityProtocol() {
        return securityProtocol;
    }

    /**
     * Set the underlying security protocol.
     */
    public void setSecurityProtocol(String securityProtocol) {
        this.securityProtocol = securityProtocol;
    }

    /**
     * Returns the security mode(Implicit/Explicit). true - Implicit Mode / False - Explicit Mode
     */
    public boolean isImplicit() {
        return implicit;
    }

    /**
     * Set the security mode (Implicit/Explicit). true - Implicit Mode / False - Explicit Mode
     */
    public void setImplicit(boolean implicit) {
        this.implicit = implicit;
    }

    public boolean isDisableSecureDataChannelDefaults() {
        return disableSecureDataChannelDefaults;
    }

    /**
     * Use this option to disable default options when using secure data channel.
     * 

* This allows you to be in full control what the execPbsz and execProt setting should be used. *

* Default is false * * @see #setExecPbsz(Long) * @see #setExecProt(String) */ public void setDisableSecureDataChannelDefaults(boolean disableSecureDataChannelDefaults) { this.disableSecureDataChannelDefaults = disableSecureDataChannelDefaults; } public String getExecProt() { return execProt; } /** * The exec protection level *

* PROT command. C - Clear S - Safe(SSL protocol only) E - Confidential(SSL protocol only) P - Private * * @param execProt either C, S, E or P */ public void setExecProt(String execProt) { this.execProt = execProt; } public Long getExecPbsz() { return execPbsz; } /** * When using secure data channel you can set the exec protection buffer size * * @param execPbsz the buffer size */ public void setExecPbsz(Long execPbsz) { this.execPbsz = execPbsz; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy