code: public AWSCredentials getCredentials() {
          if (credentialProvider != null) {
              return credentialProvider.getCredentials();
          } else {
              credentialProvider = new JsonStaticCredentialsProvider(credentials);
              return credentialProvider.getCredentials();
          }
      }
docs: Returns the IBM credentials.