Class NTLMAuthentication

java.lang.Object
com.ebasetech.xi.services.auth.NTLMAuthentication
All Implemented Interfaces:
Authentication

public class NTLMAuthentication
extends java.lang.Object
implements Authentication
NTLM Authentication holding the username, password, domain, workstation for HTTP NTLM Authentication

If the username is specified as <domain-name>\\<username> then the the domain should be left as null.

If the workstation is null then the workstation will automatically use the computer name from where the Ebase Xi server is running.

Since:
v5.1
  • Field Summary

  • Constructor Summary

    Constructors
    Constructor Description
    NTLMAuthentication()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDomain()
    Returns the domain of where to authenticate.
    java.lang.String getPassword()
    Returns the password to be authenticated
    int getType()
    Returns the Authentication type ID
    java.lang.String getUsername()
    Returns the username to be authenticated
    java.lang.String getWorkstation()
    Returns the workstation of the machine to authenticate.
    void setDomain​(java.lang.String domain)
    Returns the domain of where to authenticate.
    void setPassword​(java.lang.String password)
    Sets the password to be authenticated
    void setUsername​(java.lang.String username)
    Sets the username to be authenticated
    void setWorkstation​(java.lang.String workstation)
    Sets the workstation of the machine to authenticate.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NTLMAuthentication

      public NTLMAuthentication()
  • Method Details

    • getUsername

      public java.lang.String getUsername()
      Returns the username to be authenticated
      Since:
      v5.1
    • setUsername

      public void setUsername​(java.lang.String username)
      Sets the username to be authenticated
      Since:
      v5.1
    • getPassword

      public java.lang.String getPassword()
      Returns the password to be authenticated
      Since:
      v5.1
    • setPassword

      public void setPassword​(java.lang.String password)
      Sets the password to be authenticated
      Since:
      v5.1
    • getWorkstation

      public java.lang.String getWorkstation()
      Returns the workstation of the machine to authenticate. This can be null.

      If the workstation is null then the workstation will automatically use the computer name from where the Ebase server is running.

      Since:
      v5.1
    • setWorkstation

      public void setWorkstation​(java.lang.String workstation)
      Sets the workstation of the machine to authenticate. This can be null.
      Since:
      v5.1
      See Also:
      getWorkstation()
    • getDomain

      public java.lang.String getDomain()
      Returns the domain of where to authenticate. This can be null if this is specified as part of the username.
      Since:
      v5.1
    • setDomain

      public void setDomain​(java.lang.String domain)
      Returns the domain of where to authenticate.
      Since:
      v5.1
      See Also:
      getDomain()
    • getType

      public int getType()
      Description copied from interface: Authentication
      Returns the Authentication type ID
      Specified by:
      getType in interface Authentication