Class AppUserCredentials

java.lang.Object
com.okta.sdk.resource.model.AppUserCredentials
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T16:19:57.008753975Z[Etc/UTC]", comments="Generator version: 7.8.0") public class AppUserCredentials extends Object implements Serializable
Specifies a user's credentials for the app. This parameter can be omitted for apps with [sign-on mode](/openapi/okta-management/management/tag/Application/#tag/Application/operation/getApplication!c=200&path=0/signOnMode&t=response) (`signOnMode`) or [authentication schemes](/openapi/okta-management/management/tag/Application/#tag/Application/operation/getApplication!c=200&path=0/credentials/scheme&t=response) (`credentials.scheme`) that don't require credentials.
See Also:
  • Field Details

  • Constructor Details

    • AppUserCredentials

      public AppUserCredentials()
  • Method Details

    • password

      public AppUserCredentials password(AppUserPasswordCredential password)
    • getPassword

      @Nullable public AppUserPasswordCredential getPassword()
      Get password
      Returns:
      password
    • setPassword

      public void setPassword(AppUserPasswordCredential password)
    • userName

      public AppUserCredentials userName(String userName)
    • getUserName

      @Nullable public String getUserName()
      The user's username in the app > **Note:** The [userNameTemplate](/openapi/okta-management/management/tag/Application/#tag/Application/operation/createApplication!path=0/credentials/userNameTemplate&t=request) in the Application object defines the default username generated when a user is assigned to that app. > If you attempt to assign a username or password to an app with an incompatible [authentication scheme](/openapi/okta-management/management/tag/Application/#tag/Application/operation/createApplication!path=0/credentials/scheme&t=request), the following error is returned: > \"Credentials should not be set on this resource based on the scheme.\"
      Returns:
      userName
    • setUserName

      public void setUserName(String userName)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object