Class NTCredentials

    • Constructor Detail

      • NTCredentials

        @Deprecated
        public NTCredentials​(String usernamePassword)
        Deprecated.
        (4.5) will be replaced with String, char[] in 5.0
        The constructor with the fully qualified username and password combined string argument.
        Parameters:
        usernamePassword - the domain/username:password formed string
      • NTCredentials

        public NTCredentials​(String userName,
                             String password,
                             String workstation,
                             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.
        workstation - The workstation the authentication request is originating from. Essentially, the computer name for this machine.
        domain - The domain to authenticate within.
    • Method Detail

      • getUserName

        public String getUserName()
      • getDomain

        public String getDomain()
        Retrieves the name to authenticate with.
        Returns:
        String the domain these credentials are intended to authenticate with.
      • getWorkstation

        public String getWorkstation()
        Retrieves the workstation name of the computer originating the request.
        Returns:
        String the workstation the user is logged into.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object