org.springframework.cloud.dataflow.shell

## Class TargetCredentials

- java.lang.Object
- - org.springframework.cloud.dataflow.shell.TargetCredentials

-     public class TargetCredentials
      extends Object

  Encapsulates the credentials to the Data Flow Server Target, such as `username` and `password`. Maybe also, depending on security settings, include a list of `roles`s that are associated with the user account.
  Since:
    1.0
  Author:
    Gunnar Hillert

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TargetCredentials(boolean usesAccessToken)`
    `TargetCredentials(String username, String password)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getDisplayableContents()`
    `String` | `getPassword()`
    `List<RoleType>` | `getRoles()`
    `String` | `getUsername()`
    `void` | `setRoles(List<String> roles)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### TargetCredentials

          public TargetCredentials(String username,
                                   String password)

    - #### TargetCredentials

          public TargetCredentials(boolean usesAccessToken)

  - ### Method Detail

    - #### getUsername

          public String getUsername()

    - #### getPassword

          public String getPassword()

    - #### getDisplayableContents

          public String getDisplayableContents()

    - #### getRoles

          public List<RoleType> getRoles()

    - #### setRoles

          public void setRoles(List<String> roles)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.