Class AuthenticationInformation

java.lang.Object
com.saperion.ngc.model.authorization.AuthenticationInformation
All Implemented Interfaces:
Serializable

public class AuthenticationInformation extends Object implements 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 Details

    • AuthenticationInformation

      public AuthenticationInformation(String userName, String pwd, String usersMandant, UserType userType)
      Literal constructor.
      Parameters:
      userName - The name to log in with
      pwd - The password to authenticate with
      usersMandant - The mandant to log in to
      userType - 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

      public String getName()
      Returns:
      The name to log in with
    • getPassword

      public String getPassword()
      Returns:
      The password to log in with
    • getMandant

      public 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • mergeShortName

      public AuthenticationInformation mergeShortName(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(String newPassword)
      Merges a new AuthenticationInformation with another password.
      Parameters:
      newPassword - The new password
      Returns:
      The merged AuthenticationInformation