Class ZosmfLogout


  • public class ZosmfLogout
    extends Object
    Provides z/OSMF authentication logout service

    z/OSMF REST API

    Version:
    3.0
    Author:
    Esteban Sandoval, Frank Giordano
    • Constructor Detail

      • ZosmfLogout

        public ZosmfLogout​(ZosConnection connection)
        ZosmfLogout constructor
        Parameters:
        connection - connection information, see ZosConnection object
      • ZosmfLogout

        public ZosmfLogout​(ZosConnection connection,
                           ZosmfRequest request)
        Alternative Logout 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 object
        request - any compatible ZoweRequest Interface object
    • Method Detail

      • logout

        public Response logout​(kong.unirest.core.Cookie cookie)
                        throws ZosmfRequestException
        Request to log out of server and delete authentication cookie token
        Parameters:
        cookie - Cookie Object
        Returns:
        Response object
        Throws:
        ZosmfRequestException - request error state