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 SummaryConstructorsConstructorDescriptionProvides the LoginContext needed to perform a login.TSLoginContext(String sClassName) Provides the LoginContext needed to perform a login.
- 
Method SummaryModifier 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- 
loginPerforms the login functionality.- Specified by:
- loginin interface- TSLoginContextInterface
- Parameters:
- usr- the username to login
- pwd- the password of user
- Throws:
- Exception
 
- 
loginThis 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 interface- TSLoginContextInterface
- Parameters:
- useralias- - alias is used to pick up the certificate from keystore
- Throws:
- Exception
 
- 
loginThis login method is used for certificate based login- Specified by:
- loginin interface- TSLoginContextInterface
- Parameters:
- useralias- - alias used to pickup the certificate from keystore
- keystore- - keystore file
- keyPass- - keystore password
- Throws:
- Exception
 
- 
logoutPerforms logout.- Specified by:
- logoutin interface- TSLoginContextInterface
 
 
-