Class UsernamePasswordCredentials

java.lang.Object
com.luciad.loaders.UsernamePasswordCredentials
All Implemented Interfaces:
Credentials, AutoCloseable

public final class UsernamePasswordCredentials extends Object implements AutoCloseable, Credentials
Represents the user credentials.
  • Constructor Details

    • UsernamePasswordCredentials

      public UsernamePasswordCredentials(@NotNull String user, @NotNull String password)
      Constructs the user credentials.
      Parameters:
      user - the user name.
      password - the user password.
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getUser

      @NotNull public String getUser()
      Returns the user name.
      Returns:
      the user name.
    • getPassword

      @NotNull public String getPassword()
      Returns the user password.
      Returns:
      the user password.