com.microsoft.tfs.core.httpclient.auth
Class WindowsUser

java.lang.Object
  extended by com.microsoft.tfs.core.httpclient.auth.WindowsUser

public class WindowsUser
extends java.lang.Object


Constructor Summary
WindowsUser(java.lang.String usernameAndOptionalDomain)
           Constructs a WindowsUser from the given username (and optionally, domain) string.
 
Method Summary
 java.lang.String getDomain()
           
 java.lang.String getUsername()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsUser

public WindowsUser(java.lang.String usernameAndOptionalDomain)

Constructs a WindowsUser from the given username (and optionally, domain) string. These styles are supported:

If a separator is found at the beginning or end of the input, the username or domain will be considered empty, respectively.

Parameters:
usernameAndOptionalDomain - the username and optional domain string
Method Detail

getUsername

public java.lang.String getUsername()

getDomain

public java.lang.String getDomain()


© 2015 Microsoft. All rights reserved.