Class UsernamePasswordCredentials


  • public final class UsernamePasswordCredentials
    extends CredentialsBase
    Username and password credentials.
    • Constructor Detail

      • UsernamePasswordCredentials

        public UsernamePasswordCredentials()
    • Method Detail

      • username

        public String username()
        Get the username property: Username to be presented as part of the credentials.
        Returns:
        the username value.
      • withUsername

        public UsernamePasswordCredentials withUsername​(String username)
        Set the username property: Username to be presented as part of the credentials.
        Parameters:
        username - the username value to set.
        Returns:
        the UsernamePasswordCredentials object itself.
      • password

        public String password()
        Get the password property: Password to be presented as part of the credentials. It is recommended that this value is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API requests.
        Returns:
        the password value.
      • withPassword

        public UsernamePasswordCredentials withPassword​(String password)
        Set the password property: Password to be presented as part of the credentials. It is recommended that this value is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API requests.
        Parameters:
        password - the password value to set.
        Returns:
        the UsernamePasswordCredentials object itself.