getCredentialsValue (DataService - Java)

Read-only. Can be used as an alternative to return the same credential values as getAppPath(), getUserName(), and getPassword() and so on. The method looks directly at the "credentials" values found in the VCAP_SERVICES environment variable.

Defined in

DataService

Syntax

public String getAppPath(String)
       throws NotesException: 

Usage

This method can be used as follows:

  • getCredentialsValue("apppath") returns the same as getAppPath()
  • getCredentialsValue("username") returns the same as getUserName()
  • getCredentialsValue("host") returns the same as getHost()

This method looks directly at the "credentials" values found in the VCAP_SERVICES environment variable.

For detailed descriptions of the VCAP_SERVICES environment variables, refer to the Bluemix documentation on environment variables for more information.

Language cross-reference

getCredentialsValue method in JavaScript DataService object.