Class AuthenticationInformation
- java.lang.Object
-
- com.saperion.ngc.model.authorization.AuthenticationInformation
-
- All Implemented Interfaces:
java.io.Serializable
public class AuthenticationInformation extends java.lang.Object implements java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationInformation(java.lang.String userName, java.lang.String pwd, java.lang.String usersMandant, UserType userType)
Literal constructor.AuthenticationInformation(java.lang.String name, java.lang.String password, java.lang.String mandant, UserType type, com.saperion.connector.authentication.SessionInfo sessionInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getMandant()
java.lang.String
getName()
java.lang.String
getPassword()
com.saperion.connector.authentication.SessionInfo
getSessionInfo()
UserType
getType()
int
hashCode()
AuthenticationInformation
mergePassword(java.lang.String newPassword)
Merges a new AuthenticationInformation with another password.AuthenticationInformation
mergeShortName(java.lang.String loginName)
Merges a new AuthenticationInformation with another login name.java.lang.String
toString()
-
-
-
Constructor Detail
-
AuthenticationInformation
public AuthenticationInformation(java.lang.String userName, java.lang.String pwd, java.lang.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(java.lang.String name, java.lang.String password, java.lang.String mandant, UserType type, com.saperion.connector.authentication.SessionInfo sessionInfo)
- Parameters:
name
-password
-mandant
-type
-sessionInfo
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- The name to log in with
-
getPassword
public java.lang.String getPassword()
- Returns:
- The password to log in with
-
getMandant
public java.lang.String getMandant()
- Returns:
- The mandant to log on to
-
getType
public UserType getType()
- Returns:
- The type to log in as
-
getSessionInfo
public com.saperion.connector.authentication.SessionInfo getSessionInfo()
- Returns:
- The web session information
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
mergeShortName
public AuthenticationInformation mergeShortName(java.lang.String loginName)
Merges a new AuthenticationInformation with another login name.- Parameters:
loginName
- The name to login as- Returns:
- The merged AuthenticationInformation
-
mergePassword
public AuthenticationInformation mergePassword(java.lang.String newPassword)
Merges a new AuthenticationInformation with another password.- Parameters:
newPassword
- The new password- Returns:
- The merged AuthenticationInformation
-
-