com.sapportals.wcm.util.http

Class UserInfo

java.lang.Object
  extended by com.sapportals.wcm.util.http.UserInfo

public final class UserInfo
extends Object

Keeps username and password.

Copyright (c) SAP AG 2001-2002


Field Summary
static UserInfo ANONYMOUS
           
 
Method Summary
 boolean equals(Object other)
           
 String getPassword()
          Returns password, alway !
 String getUser()
          Returns user, alway !
 int hashCode()
           
 String toString()
           
static UserInfo valueOf(String user, String password)
          Creates a new WDuserInfo object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ANONYMOUS

public static final UserInfo ANONYMOUS
Method Detail

valueOf

public static UserInfo valueOf(String user,
                               String password)
Creates a new WDuserInfo object.

Parameters:
user - the user
password - of user (maybe null )
Returns:
WDuserInfo
Throws:
IllegalArgumentException - if user is null

getUser

public String getUser()
Returns user, alway != null .

Returns:
user

getPassword

public String getPassword()
Returns password, alway != null .

Returns:
password

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice