Package com.sun.ts.lib.porting
Class TSLoginContext
java.lang.Object
com.sun.ts.lib.porting.TSLoginContext
- All Implemented Interfaces:
TSLoginContextInterface
TSLoginContext provides the implementation specific code for allowing a program to login as a specific user. This
class is implemented as a wrapper class around Sun's login implementation code.
-
Constructor Summary
ConstructorsConstructorDescriptionProvides the LoginContext needed to perform a login.TSLoginContext
(String sClassName) Provides the LoginContext needed to perform a login. -
Method Summary
Modifier and TypeMethodDescriptionvoid
This login method is used for certificate based login Note: This method also uses keystore and keystore password from the TS configuration filevoid
Performs the login functionality.void
This login method is used for certificate based loginlogout()
Performs logout.
-
Constructor Details
-
Method Details
-
login
Performs the login functionality.- Specified by:
login
in interfaceTSLoginContextInterface
- Parameters:
usr
- the username to loginpwd
- the password of user- Throws:
Exception
-
login
This login method is used for certificate based login Note: This method also uses keystore and keystore password from the TS configuration file- Specified by:
login
in interfaceTSLoginContextInterface
- Parameters:
useralias
- - alias is used to pick up the certificate from keystore- Throws:
Exception
-
login
This login method is used for certificate based login- Specified by:
login
in interfaceTSLoginContextInterface
- Parameters:
useralias
- - alias used to pickup the certificate from keystorekeystore
- - keystore filekeyPass
- - keystore password- Throws:
Exception
-
logout
Performs logout.- Specified by:
logout
in interfaceTSLoginContextInterface
-