org.springbyexample.httpclient.auth
Class Credentials

java.lang.Object
  extended by org.springbyexample.httpclient.auth.Credentials
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NTCredentials

public class Credentials
extends Object
implements Serializable

Credentials bean used to create org.apache.commons.httpclient.UsernamePasswordCredentials and org.apache.commons.httpclient.auth.AuthScope.

Note: User authorization scope's host, authorization scope's port, name, password are both required.

Author:
David Winterfeldt
See Also:
Serialized Form

Field Summary
protected  String authScopeHost
           
protected  int authScopePort
           
protected  String password
           
protected  String userName
           
 
Constructor Summary
Credentials()
          Constructor
Credentials(String authScopeHost, int authScopePort, String userName, String password)
          Constructor
 
Method Summary
 String getAuthScopeHost()
          Gets authorization scope's host.
 int getAuthScopePort()
          Gets authorization scope's port.
 String getPassword()
          Gets password.
 String getUserName()
          Gets user name.
 void setAuthScopeHost(String autoScopeHost)
          Sets authorization scope's host.
 void setAuthScopePort(int authScopePort)
          Sets authorization scope's port.
 void setPassword(String password)
          Sets password.
 void setUserName(String userName)
          Sets user name.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

authScopeHost

protected String authScopeHost

authScopePort

protected int authScopePort

userName

protected String userName

password

protected String password
Constructor Detail

Credentials

public Credentials()
Constructor


Credentials

public Credentials(String authScopeHost,
                   int authScopePort,
                   String userName,
                   String password)
Constructor

Method Detail

getAuthScopeHost

public String getAuthScopeHost()
Gets authorization scope's host.


setAuthScopeHost

public void setAuthScopeHost(String autoScopeHost)
Sets authorization scope's host.


getAuthScopePort

public int getAuthScopePort()
Gets authorization scope's port.


setAuthScopePort

public void setAuthScopePort(int authScopePort)
Sets authorization scope's port.


getUserName

public String getUserName()
Gets user name.


setUserName

public void setUserName(String userName)
Sets user name.


getPassword

public String getPassword()
Gets password.


setPassword

public void setPassword(String password)
Sets password.


toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object


Copyright © 2008-2009 Spring by Example. All Rights Reserved.