public final class ProjectServerCredentials extends Object
Credentials which are used to connect to Project Online or on-premise instance of Project Server.
Constructor and Description |
---|
ProjectServerCredentials(String siteUrl,
String authToken)
Initializes a new instance of the
ProjectServerCredentials class using URL of SharePoint site and valid
authorization token for SharePoint site. |
ProjectServerCredentials(String siteUrl,
String userName,
String password)
Initializes a new instance of the
ProjectServerCredentials class using URL of SharePoint site, user name
and password. |
Modifier and Type | Method and Description |
---|---|
String |
getAuthToken()
Gets the authorization token for the SharePoint instance.
|
String |
getSiteUrl()
Gets the URL of PWA at SharePoint site or URL of on-premise Project Server.
|
String |
getUserName()
Gets the user name for SharePoint site.
|
String |
toString()
Returns a string representation of this instance.
|
public ProjectServerCredentials(String siteUrl, String authToken)
Initializes a new instance of the ProjectServerCredentials
class using URL of SharePoint site and valid
authorization token for SharePoint site.
siteUrl
- The URL of PWA (Project Web Access) API of Project Online.authToken
- The authorization token for SharePoint site.
public ProjectServerCredentials(String siteUrl, String userName, String password)
Initializes a new instance of the ProjectServerCredentials
class using URL of SharePoint site, user name
and password.
siteUrl
- The URL of PWA (Project Web Access) API of Project Online.userName
- The user name for the SharePoint site.password
- The password for the SharePoint site.
public final String getAuthToken()
Gets the authorization token for the SharePoint instance.
public final String getSiteUrl()
Gets the URL of PWA at SharePoint site or URL of on-premise Project Server. For example, https://your_company_name.sharepoint.com/sites/pwa";
public final String getUserName()
Gets the user name for SharePoint site.