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 TypeMethodDescriptionvoidThis login method is used for certificate based login Note: This method also uses keystore and keystore password from the TS configuration filevoidPerforms the login functionality.voidThis login method is used for certificate based loginlogout()Performs logout.
-
Constructor Details
-
Method Details
-
login
Performs the login functionality.- Specified by:
loginin 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:
loginin 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:
loginin interfaceTSLoginContextInterface- Parameters:
useralias- - alias used to pickup the certificate from keystorekeystore- - keystore filekeyPass- - keystore password- Throws:
Exception
-
logout
Performs logout.- Specified by:
logoutin interfaceTSLoginContextInterface
-