Config2_GatewayProfileManager

Manager for gateway authentication server profiles.

Instances of this class are obtained from:

Methods

MethodReturnsDescription
add() Config2_GatewayProfile

Add a new gateway profile by URI.

get() Config2_GatewayProfile

Get a gateway profile by server address.

remove() void

Remove a gateway profile by server address.

toArray() Array.<Config2_GatewayProfile>

Get all gateway profiles as an array.

Method Details

add(uri) → {Config2_GatewayProfile}

Description:
  • Add a new gateway profile by URI.

Parameters:
Name Type Description
uri String

Connection URI (e.g., 'sftp://server.example.com:22')

Returns:

Created profile object

Type
Config2_GatewayProfile

get(serverAddress) → {Config2_GatewayProfile|null}

Description:
  • Get a gateway profile by server address.

Parameters:
Name Type Description
serverAddress String

Remote server address

Returns:

Profile object or null if not found

Type
Config2_GatewayProfile | null

remove(serverAddress)

Description:
  • Remove a gateway profile by server address.

Parameters:
Name Type Description
serverAddress String

Remote server address to remove

toArray() → {Array.<Config2_GatewayProfile>}

Description:
  • Get all gateway profiles as an array.

Returns:

Array of all profile objects

Type
Array.<Config2_GatewayProfile>