Class 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 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 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​(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 class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.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