com.sapportals.wcm.util.http

Class UserInfo

java.lang.Object
  extended bycom.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)

hashCode

public int hashCode()

toString

public String toString()


Copyright 2006 SAP AG Complete Copyright Notice