Package com.vmware.nsx_policy.model
Class FileTransferProtocol.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.FileTransferProtocol.Builder
-
- Enclosing class:
- FileTransferProtocol
public static final class FileTransferProtocol.Builder extends java.lang.Object
Builder class forFileTransferProtocol
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofFileTransferProtocol
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileTransferProtocol
build()
FileTransferProtocol.Builder
setAuthenticationScheme(FileTransferAuthenticationScheme authenticationScheme)
FileTransferProtocol.Builder
setProtocolName(java.lang.String protocolName)
Possible values are:FileTransferProtocol.PROTOCOL_NAME_SFTP
Protocol nameFileTransferProtocol.Builder
setSshFingerprint(java.lang.String sshFingerprint)
The expected SSH fingerprint of the server.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofFileTransferProtocol
.
-
-
Method Detail
-
setAuthenticationScheme
public FileTransferProtocol.Builder setAuthenticationScheme(FileTransferAuthenticationScheme authenticationScheme)
- Parameters:
authenticationScheme
- New value for the property.
-
setProtocolName
public FileTransferProtocol.Builder setProtocolName(java.lang.String protocolName)
Possible values are: Protocol name- Parameters:
protocolName
- New value for the property.
-
setSshFingerprint
public FileTransferProtocol.Builder setSshFingerprint(java.lang.String sshFingerprint)
The expected SSH fingerprint of the server. If the server's fingerprint does not match this fingerprint, the connection will be terminated. Only ECDSA fingerprints hashed with SHA256 are supported. To obtain the host's ssh fingerprint, you should connect via some method other than SSH to obtain this information. You can use one of these commands to view the key's fingerprint: 1. ssh-keygen -l -E sha256 -f ssh_host_ecdsa_key.pub 2. awk '{print $2}' ssh_host_ecdsa_key.pub | base64 -d | sha256sum -b | sed 's/ .*$//' | xxd -r -p | base64 | sed 's/.//44g' | awk '{print \"SHA256:\"$1}'- Parameters:
sshFingerprint
- New value for the property.
-
build
public FileTransferProtocol build()
-
-