org.springbyexample.httpclient.auth
Class NTCredentials

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

public class NTCredentials
extends Credentials
implements Serializable

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

Note: User name, password, host, and domain are required.

Author:
David Winterfeldt
See Also:
Serialized Form

Field Summary
protected  String domain
           
protected  String host
           
 
Fields inherited from class org.springbyexample.httpclient.auth.Credentials
authScopeHost, authScopePort, password, userName
 
Constructor Summary
NTCredentials()
          Constructor
NTCredentials(String authScopeHost, int authScopePort, String userName, String password, String host, String domain)
          Constructor
 
Method Summary
 String getDomain()
          Gets domain.
 String getHost()
          Gets host.
 void setDomain(String domain)
          Sets domain.
 void setHost(String host)
          Sets host.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class org.springbyexample.httpclient.auth.Credentials
getAuthScopeHost, getAuthScopePort, getPassword, getUserName, setAuthScopeHost, setAuthScopePort, setPassword, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

host

protected String host

domain

protected String domain
Constructor Detail

NTCredentials

public NTCredentials()
Constructor


NTCredentials

public NTCredentials(String authScopeHost,
                     int authScopePort,
                     String userName,
                     String password,
                     String host,
                     String domain)
Constructor

Method Detail

getHost

public String getHost()
Gets host.


setHost

public void setHost(String host)
Sets host.


getDomain

public String getDomain()
Gets domain.


setDomain

public void setDomain(String domain)
Sets domain.


toString

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

Overrides:
toString in class Credentials


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