Class BasicCredentials

java.lang.Object
com.sap.cloud.sdk.cloudplatform.security.BasicCredentials
All Implemented Interfaces:
Credentials

public class BasicCredentials extends Object implements Credentials
Simple credential implementation based on a username and password.
  • Constructor Details

    • BasicCredentials

      public BasicCredentials(@Nonnull String username, @Nonnull String password)
      Creates a new instance based on the given username and password.
      Parameters:
      username - The username to use for authentication.
      password - The password to use for authentication.
  • Method Details

    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • getUsername

      @Nonnull public String getUsername()
    • getPassword

      @Nonnull public String getPassword()
    • getHttpHeaderValue

      @Nonnull public String getHttpHeaderValue()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object