public class SftpServiceDescriptor extends TransportServiceDescriptor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_AUTH |
static int |
DEFAULT_PORT |
static java.lang.String |
PASSWORD_AUTH
Password authentication type.
|
static java.lang.String |
PK_AUTH
Public key authentication type.
|
static java.lang.String |
PWD_AND_PK_AUTH
Password AND public key authentication type.
|
static java.lang.String |
PWD_OR_PK_AUTH
Password OR public key authentication type.
|
static java.lang.String[] |
SUPPORTED_TYPES |
| Constructor and Description |
|---|
SftpServiceDescriptor()
This constructor is used by serialization sub-system
and is not intended to use directly in client code.
|
SftpServiceDescriptor(SftpServiceDescriptor that) |
SftpServiceDescriptor(java.lang.String host,
int port,
java.lang.String authenticationType,
java.lang.String keyAlias)
Creates a new descriptor instance.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
copy() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAuthenticationType()
Returns authentication type.
|
java.lang.String |
getHost()
Returns binding host/IP.
|
java.lang.String |
getKeyAlias()
Returns key alias.
|
int |
getPort()
Returns binding port.
|
int |
hashCode() |
void |
setAuthenticationType(java.lang.String value)
Sets authentication type.
|
void |
setHost(java.lang.String value)
Sets binding host/IP.
|
void |
setKeyAlias(java.lang.String value)
Sets key alias.
|
void |
setPort(int value)
Sets binding port.
|
java.lang.String |
toString() |
getVersion, setVersionpublic static final int DEFAULT_PORT
public static final java.lang.String PASSWORD_AUTH
public static final java.lang.String PK_AUTH
public static final java.lang.String PWD_OR_PK_AUTH
public static final java.lang.String PWD_AND_PK_AUTH
public static final java.lang.String DEFAULT_AUTH
public static final java.lang.String[] SUPPORTED_TYPES
public SftpServiceDescriptor(java.lang.String host,
int port,
java.lang.String authenticationType,
java.lang.String keyAlias)
host - binding host/IPport - binding portauthenticationType - authentication typekeyAlias - key aliaspublic SftpServiceDescriptor(SftpServiceDescriptor that)
public SftpServiceDescriptor()
public java.lang.String getHost()
public void setHost(java.lang.String value)
value - binding host/IPpublic int getPort()
public void setPort(int value)
value - binding portpublic java.lang.String getAuthenticationType()
public void setAuthenticationType(java.lang.String value)
value - authentication typepublic java.lang.String getKeyAlias()
public void setKeyAlias(java.lang.String value)
value - key aliaspublic Configuration copy()
copy in class Configurationpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2023. Redwood Software Inc. All rights reserved.