Package zowe.client.sdk.core
Class ZosConnectionFactory
- java.lang.Object
-
- zowe.client.sdk.core.ZosConnectionFactory
-
public class ZosConnectionFactory extends Object
Factory class for creating ZosConnection objects with different authentication types- Version:
- 5.0
- Author:
- Frank Giordano
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZosConnectioncreateBasicConnection(String host, String port, String user, String password)Creates a ZosConnection with basic authenticationstatic ZosConnectioncreateBasicConnection(String host, String port, String user, String password, String basePath)Creates a ZosConnection with basic authenticationstatic ZosConnectioncreateSslConnection(String host, String port, String certFilePath, String certPassword)Creates a ZosConnection with SSL certificate authentication with isSecurestatic ZosConnectioncreateSslConnection(String host, String port, String certFilePath, String certPassword, String basePath)Creates a ZosConnection with SSL certificate authentication with isSecurestatic ZosConnectioncreateTokenConnection(String host, String port, kong.unirest.core.Cookie token)Creates a ZosConnection with token authenticationstatic ZosConnectioncreateTokenConnection(String host, String port, kong.unirest.core.Cookie token, String basePath)Creates a ZosConnection with token authentication
-
-
-
Method Detail
-
createBasicConnection
public static ZosConnection createBasicConnection(String host, String port, String user, String password)
Creates a ZosConnection with basic authentication- Parameters:
host- Host address of the z/OSMF serverport- Port number of the z/OSMF serveruser- Username for authenticationpassword- Password for authentication- Returns:
- ZosConnection configured for basic authentication
-
createBasicConnection
public static ZosConnection createBasicConnection(String host, String port, String user, String password, String basePath)
Creates a ZosConnection with basic authentication- Parameters:
host- Host address of the z/OSMF serverport- Port number of the z/OSMF serveruser- Username for authenticationpassword- Password for authenticationbasePath- base path for z/OSMF REST endpoints- Returns:
- ZosConnection configured for basic authentication
-
createTokenConnection
public static ZosConnection createTokenConnection(String host, String port, kong.unirest.core.Cookie token)
Creates a ZosConnection with token authentication- Parameters:
host- Host address of the z/OSMF serverport- Port number of the z/OSMF servertoken- Authentication token cookie- Returns:
- ZosConnection configured for token authentication
-
createTokenConnection
public static ZosConnection createTokenConnection(String host, String port, kong.unirest.core.Cookie token, String basePath)
Creates a ZosConnection with token authentication- Parameters:
host- Host address of the z/OSMF serverport- Port number of the z/OSMF servertoken- Authentication token cookiebasePath- base path for z/OSMF REST endpoints- Returns:
- ZosConnection configured for token authentication
-
createSslConnection
public static ZosConnection createSslConnection(String host, String port, String certFilePath, String certPassword)
Creates a ZosConnection with SSL certificate authentication with isSecure- Parameters:
host- Host address of the z/OSMF serverport- Port number of the z/OSMF servercertFilePath- Path to the certificate file (.p12)certPassword- Password for the certificate- Returns:
- ZosConnection configured for SSL authentication
-
createSslConnection
public static ZosConnection createSslConnection(String host, String port, String certFilePath, String certPassword, String basePath)
Creates a ZosConnection with SSL certificate authentication with isSecure- Parameters:
host- Host address of the z/OSMF serverport- Port number of the z/OSMF servercertFilePath- Path to the certificate file (.p12)certPassword- Password for the certificatebasePath- base path for z/OSMF REST endpoints- Returns:
- ZosConnection configured for SSL authentication
-
-