The SendGrid Java library no longer uses a username / password strategy to authenticate, and now requires an API key. This documentation seems outdated as result.
Also, the current service broker for SendGrid in use on PWS does not expose this API key through the VCAP environment variables. Until it's updated you'll need to login in to SendGrid directly and generate an API key to use it.
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.
The labels on this github issue will be updated when the story is started.
https://github.com/pivotal-cf/docs-pws-services/blob/6846542b85fb998b87e0e88217dfcb53042b6de6/services/sendgrid.html.md.erb#L91
The SendGrid Java library no longer uses a username / password strategy to authenticate, and now requires an API key. This documentation seems outdated as result.
Also, the current service broker for SendGrid in use on PWS does not expose this API key through the VCAP environment variables. Until it's updated you'll need to login in to SendGrid directly and generate an API key to use it.