edu.wisc.my.webproxy.beans.http
Class NtCredentials

java.lang.Object
  extended by edu.wisc.my.webproxy.beans.http.ICredentials
      extended by edu.wisc.my.webproxy.beans.http.NtCredentials
All Implemented Interfaces:
Serializable

public class NtCredentials
extends ICredentials

ICredentials for use with the NTLM authentication scheme which requires additional information

Version:
$Revision: 20993 $
Author:
Eric Dalquist edalquist@unicon.net
See Also:
Serialized Form

Constructor Summary
NtCredentials()
          Default constructor.
NtCredentials(String userName, String password, String host, String domain)
          Constructor.
 
Method Summary
 String getDomain()
          Retrieves the domain name to authenticate with.
 String getHost()
          Retrieves the host name of the computer originating the request.
 void setDomain(String domain)
          Sets the domain to authenticate with.
 void setHost(String host)
          Sets the host name of the computer originating the request.
 
Methods inherited from class edu.wisc.my.webproxy.beans.http.ICredentials
getPassword, getUserName, setPassword, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NtCredentials

public NtCredentials()
Default constructor.


NtCredentials

public NtCredentials(String userName,
                     String password,
                     String host,
                     String domain)
Constructor.

Parameters:
userName - The user name. This should not include the domain to authenticate with. For example: "user" is correct whereas "DOMAIN\\user" is not.
password - The password.
host - The host the authentication request is originating from. Essentially, the computer name for this machine.
domain - The domain to authenticate within.
Method Detail

getDomain

public String getDomain()
Retrieves the domain name to authenticate with.

Returns:
String the domain these credentials are intended to authenticate with.
See Also:
setDomain(String)

getHost

public String getHost()
Retrieves the host name of the computer originating the request.

Returns:
String the host the user is logged into.

setDomain

public void setDomain(String domain)
Sets the domain to authenticate with. The domain may not be null.

Parameters:
domain - the NT domain to authenticate in.
See Also:
getDomain()

setHost

public void setHost(String host)
Sets the host name of the computer originating the request. The host name may not be null.

Parameters:
host - the Host the user is logged into.


Copyright © 2010 Jasig. All Rights Reserved.