Class AuthenticationInformation
java.lang.Object
com.saperion.ngc.model.authorization.AuthenticationInformation
- All Implemented Interfaces:
Serializable
Represents the information needed to log in to the saperion system.
Created by IntelliJ IDEA.
User: jsc
Date: 07.03.12
Time: 13:48
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationInformation
(String userName, String pwd, String usersMandant, UserType userType) Literal constructor.AuthenticationInformation
(String name, String password, String mandant, UserType type, com.saperion.connector.authentication.SessionInfo sessionInfo) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
com.saperion.connector.authentication.SessionInfo
getType()
int
hashCode()
mergePassword
(String newPassword) Merges a new AuthenticationInformation with another password.mergeShortName
(String loginName) Merges a new AuthenticationInformation with another login name.toString()
-
Constructor Details
-
AuthenticationInformation
public AuthenticationInformation(String userName, String pwd, String usersMandant, UserType userType) Literal constructor.- Parameters:
userName
- The name to log in withpwd
- The password to authenticate withusersMandant
- The mandant to log in touserType
- The user type to log on as
-
AuthenticationInformation
public AuthenticationInformation(String name, String password, String mandant, UserType type, com.saperion.connector.authentication.SessionInfo sessionInfo) - Parameters:
name
-password
-mandant
-type
-sessionInfo
-
-
-
Method Details
-
getName
- Returns:
- The name to log in with
-
getPassword
- Returns:
- The password to log in with
-
getMandant
- Returns:
- The mandant to log on to
-
getType
- Returns:
- The type to log in as
-
getSessionInfo
public com.saperion.connector.authentication.SessionInfo getSessionInfo()- Returns:
- The web session information
-
equals
-
hashCode
public int hashCode() -
toString
-
mergeShortName
Merges a new AuthenticationInformation with another login name.- Parameters:
loginName
- The name to login as- Returns:
- The merged AuthenticationInformation
-
mergePassword
Merges a new AuthenticationInformation with another password.- Parameters:
newPassword
- The new password- Returns:
- The merged AuthenticationInformation
-