Class ZosmfLogin
- java.lang.Object
-
- zowe.client.sdk.zosmfauth.methods.ZosmfLogin
-
public class ZosmfLogin extends Object
Provides z/OSMF authentication login and token service- Version:
- 3.0
- Author:
- Esteban Sandoval, Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description ZosmfLogin(ZosConnection connection)ZosmfLogin constructorZosmfLogin(ZosConnection connection, ZosmfRequest request)Alternative Login constructor with ZosmfRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZosmfLoginResponselogin()Request to log into server and obtain authentication tokens
-
-
-
Constructor Detail
-
ZosmfLogin
public ZosmfLogin(ZosConnection connection)
ZosmfLogin constructor- Parameters:
connection- connection information, see ZosConnection object
-
ZosmfLogin
public ZosmfLogin(ZosConnection connection, ZosmfRequest request)
Alternative Login constructor with ZosmfRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.- Parameters:
connection- connection information, see ZosConnection objectrequest- any compatible ZoweRequest Interface object
-
-
Method Detail
-
login
public ZosmfLoginResponse login() throws ZosmfRequestException
Request to log into server and obtain authentication tokens- Returns:
- ZosmfLoginResponse object
- Throws:
ZosmfRequestException- request error state
-
-