Class ZOSCredentialsFactory
- java.lang.Object
-
- com.compuware.api.topaz.hostcredentials.zos.ZOSCredentialsFactory
-
public final class ZOSCredentialsFactory extends Object
This factory is used to create z/OS credentials for connecting to z/OS hosts.This class is not intended to be instantiated or extended by clients.
- Since:
- 1.0.0
- Version:
- 2.0.0
- See Also:
IZOSHostConnection.connect(IZOSCredentials)
- Restriction:
- This class is not intended to be extended by clients.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IZOSCredentials
createZOSCredentials(String digitalCertificate)
Creates z/OS credentials using the specified digital certificate.static IZOSCredentials
createZOSCredentials(String digitalCertificate, CodePage codePage)
Creates z/OS credentials using the specified digital certificate and code page.static IZOSCredentials
createZOSCredentials(String userID, String password)
Creates z/OS credentials using the specified user ID and password.static IZOSCredentials
createZOSCredentials(String userID, String password, CodePage codePage)
Creates z/OS credentials using the specified user ID, password, and code page.static IZOSCredentials
createZOSCredentials(String userID, String password, String groupID)
Creates z/OS credentials using the specified user ID, password, and group ID.static IZOSCredentials
createZOSCredentials(String userID, String password, String groupID, CodePage codePage)
Creates z/OS credentials using the specified user ID, password, group ID, and code page.
-
-
-
Method Detail
-
createZOSCredentials
public static IZOSCredentials createZOSCredentials(String digitalCertificate)
Creates z/OS credentials using the specified digital certificate. Code page 1047 is assumed.- Parameters:
digitalCertificate
- a Base64-encoded string that represents a digital certificate- Returns:
- z/OS credentials
- Throws:
IllegalArgumentException
- ifdigitalCertificate
isnull
or empty- Since:
- 1.0.0
-
createZOSCredentials
public static IZOSCredentials createZOSCredentials(String digitalCertificate, CodePage codePage)
Creates z/OS credentials using the specified digital certificate and code page.- Parameters:
digitalCertificate
- a Base64-encoded string that represents a digital certificatecodePage
- the code page (ifnull
, code page 1047 is assumed)- Returns:
- z/OS credentials
- Throws:
IllegalArgumentException
- ifdigitalCertificate
isnull
or empty- Since:
- 1.0.0
-
createZOSCredentials
public static IZOSCredentials createZOSCredentials(String userID, String password)
Creates z/OS credentials using the specified user ID and password. Code page 1047 is assumed.- Parameters:
userID
- the user IDpassword
- the password- Returns:
- z/OS credentials
- Throws:
IllegalArgumentException
- ifuserID
orpassword
isnull
or empty- Since:
- 1.0.0
-
createZOSCredentials
public static IZOSCredentials createZOSCredentials(String userID, String password, String groupID)
Creates z/OS credentials using the specified user ID, password, and group ID. Code page 1047 is assumed.- Parameters:
userID
- the user IDpassword
- the passwordgroupID
- the group ID ornull
to not specify a group ID- Returns:
- z/OS credentials
- Throws:
IllegalArgumentException
- ifuserID
orpassword
isnull
or empty- Since:
- 1.0.0
-
createZOSCredentials
public static IZOSCredentials createZOSCredentials(String userID, String password, CodePage codePage)
Creates z/OS credentials using the specified user ID, password, and code page.- Parameters:
userID
- the user IDpassword
- the passwordcodePage
- the code page (ifnull
, code page 1047 is assumed)- Returns:
- z/OS credentials
- Throws:
IllegalArgumentException
- ifuserID
orpassword
isnull
or empty- Since:
- 1.0.0
-
createZOSCredentials
public static IZOSCredentials createZOSCredentials(String userID, String password, String groupID, CodePage codePage)
Creates z/OS credentials using the specified user ID, password, group ID, and code page.- Parameters:
userID
- the user IDpassword
- the passwordgroupID
- the group ID ornull
to not specify a group IDcodePage
- the code page (ifnull
, code page 1047 is assumed)- Returns:
- z/OS credentials
- Throws:
IllegalArgumentException
- ifuserID
orpassword
isnull
or empty- Since:
- 1.0.0
-
-