Package com.sun.ts.lib.porting

# Interface TSLoginContextInterface

All Known Implementing Classes:
  `TSLoginContext`

public interface TSLoginContextInterface
TSLoginContextInterface provides the interface that must be implemented to provide the implementation specific login code to login as a specified user.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `login(String alias)`
  This login method is used for Certificate based login Note: This method also uses keystore and keystore password from the TS configuration file
  `void`
  `login(String usr, String pwd)`
  This method is used for login with username and password.
  `void`
  `login(String alias, String keystore, String keyPass)`
  This login method is used for Certificate based login
  `Boolean`
  `logout()`
  This method is used for logout

- ## Method Details

  - ### login

    void login(String usr, String pwd) throws Exception
    This method is used for login with username and password.
    Parameters:
      `usr` - - string username
      `pwd` - - string password
    Throws:
      `Exception`

  - ### login

    void login(String alias) throws Exception
    This login method is used for Certificate based login Note: This method also uses keystore and keystore password from the TS configuration file
    Parameters:
      `alias` - - alias is used to pick up the certificate from keystore
    Throws:
      `Exception`

  - ### login

    void login(String alias, String keystore, String keyPass) throws Exception
    This login method is used for Certificate based login
    Parameters:
      `alias` - - alias is used to pick up the certificate from keystore
      `keystore` - - keystore file
      `keyPass` - - keystore password
    Throws:
      `Exception`

  - ### logout

    Boolean logout()
    This method is used for logout