Class Credentials
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Credentials
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Credentials.Builder
Builder.static interface
Credentials.SourceType
The source that this credentials object connects to.static interface
Credentials.Status
The current status of this set of credentials. -
Method Summary
Modifier and Type Method Description CredentialDetails
credentialDetails()
Gets the credentialDetails.String
credentialId()
Gets the credentialId.Credentials.Builder
newBuilder()
New builder.String
sourceType()
Gets the sourceType.String
status()
Gets the status.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a Credentials builder
-
credentialId
Gets the credentialId.Unique identifier for this set of credentials.
- Returns:
- the credentialId
-
sourceType
Gets the sourceType.The source that this credentials object connects to. - `box` indicates the credentials are used to connect an instance of Enterprise Box. - `salesforce` indicates the credentials are used to connect to Salesforce. - `sharepoint` indicates the credentials are used to connect to Microsoft SharePoint Online. - `web_crawl` indicates the credentials are used to perform a web crawl. = `cloud_object_storage` indicates the credentials are used to connect to an IBM Cloud Object Store.
- Returns:
- the sourceType
-
credentialDetails
Gets the credentialDetails.Object containing details of the stored credentials.
Obtain credentials for your source from the administrator of the source.
- Returns:
- the credentialDetails
-
status
Gets the status.The current status of this set of credentials. `connected` indicates that the credentials are available to use with the source configuration of a collection. `invalid` refers to the credentials (for example, the password provided has expired) and must be corrected before they can be used with a collection.
- Returns:
- the status
-