Class CredentialDetails
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CredentialDetails
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Obtain credentials for your source from the administrator of the source.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CredentialDetails.Builder
Builder.static interface
CredentialDetails.CredentialType
The authentication method for this credentials definition.static interface
CredentialDetails.SourceVersion
The type of Sharepoint repository to connect to. -
Method Summary
Modifier and Type Method Description String
accessKeyId()
Gets the accessKeyId.String
clientId()
Gets the clientId.String
clientSecret()
Gets the clientSecret.String
credentialType()
Gets the credentialType.String
domain()
Gets the domain.String
endpoint()
Gets the endpoint.String
enterpriseId()
Gets the enterpriseId.String
gatewayId()
Gets the gatewayId.CredentialDetails.Builder
newBuilder()
New builder.String
organizationUrl()
Gets the organizationUrl.String
passphrase()
Gets the passphrase.String
password()
Gets the password.String
privateKey()
Gets the privateKey.String
publicKeyId()
Gets the publicKeyId.String
secretAccessKey()
Gets the secretAccessKey.String
siteCollectionPath()
Gets the siteCollectionPath.String
sourceVersion()
Gets the sourceVersion.String
url()
Gets the url.String
username()
Gets the username.String
webApplicationUrl()
Gets the webApplicationUrl.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a CredentialDetails builder
-
credentialType
Gets the credentialType.The authentication method for this credentials definition. The **credential_type** specified must be supported by the **source_type**. The following combinations are possible:
- `"source_type": "box"` - valid `credential_type`s: `oauth2` - `"source_type": "salesforce"` - valid `credential_type`s: `username_password` - `"source_type": "sharepoint"` - valid `credential_type`s: `saml` with **source_version** of `online`, or `ntlm_v1` with **source_version** of `2016` - `"source_type": "web_crawl"` - valid `credential_type`s: `noauth` or `basic` - "source_type": "cloud_object_storage"` - valid `credential_type`s: `aws4_hmac`.
- Returns:
- the credentialType
-
clientId
Gets the clientId.The **client_id** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `oauth2`.
- Returns:
- the clientId
-
enterpriseId
Gets the enterpriseId.The **enterprise_id** of the Box site that these credentials connect to. Only valid, and required, with a **source_type** of `box`.
- Returns:
- the enterpriseId
-
url
Gets the url.The **url** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `username_password`, `noauth`, and `basic`.
- Returns:
- the url
-
username
Gets the username.The **username** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `saml`, `username_password`, `basic`, or `ntlm_v1`.
- Returns:
- the username
-
organizationUrl
Gets the organizationUrl.The **organization_url** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `saml`.
- Returns:
- the organizationUrl
-
siteCollectionPath
Gets the siteCollectionPath.The **site_collection.path** of the source that these credentials connect to. Only valid, and required, with a **source_type** of `sharepoint`.
- Returns:
- the siteCollectionPath
-
clientSecret
Gets the clientSecret.The **client_secret** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `oauth2`. This value is never returned and is only used when creating or modifying **credentials**.
- Returns:
- the clientSecret
-
publicKeyId
Gets the publicKeyId.The **public_key_id** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `oauth2`. This value is never returned and is only used when creating or modifying **credentials**.
- Returns:
- the publicKeyId
-
privateKey
Gets the privateKey.The **private_key** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `oauth2`. This value is never returned and is only used when creating or modifying **credentials**.
- Returns:
- the privateKey
-
passphrase
Gets the passphrase.The **passphrase** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `oauth2`. This value is never returned and is only used when creating or modifying **credentials**.
- Returns:
- the passphrase
-
password
Gets the password.The **password** of the source that these credentials connect to. Only valid, and required, with **credential_type**s of `saml`, `username_password`, `basic`, or `ntlm_v1`.
**Note:** When used with a **source_type** of `salesforce`, the password consists of the Salesforce password and a valid Salesforce security token concatenated. This value is never returned and is only used when creating or modifying **credentials**.
- Returns:
- the password
-
gatewayId
Gets the gatewayId.The ID of the **gateway** to be connected through (when connecting to intranet sites). Only valid with a **credential_type** of `noauth`, `basic`, or `ntlm_v1`. Gateways are created using the `/v1/environments/{environment_id}/gateways` methods.
- Returns:
- the gatewayId
-
sourceVersion
Gets the sourceVersion.The type of Sharepoint repository to connect to. Only valid, and required, with a **source_type** of `sharepoint`.
- Returns:
- the sourceVersion
-
webApplicationUrl
Gets the webApplicationUrl.SharePoint OnPrem WebApplication URL. Only valid, and required, with a **source_version** of `2016`. If a port is not supplied, the default to port `80` for http and port `443` for https connections are used.
- Returns:
- the webApplicationUrl
-
domain
Gets the domain.The domain used to log in to your OnPrem SharePoint account. Only valid, and required, with a **source_version** of `2016`.
- Returns:
- the domain
-
endpoint
Gets the endpoint.The endpoint associated with the cloud object store that your are connecting to. Only valid, and required, with a **credential_type** of `aws4_hmac`.
- Returns:
- the endpoint
-
accessKeyId
Gets the accessKeyId.The access key ID associated with the cloud object store. Only valid, and required, with a **credential_type** of `aws4_hmac`. This value is never returned and is only used when creating or modifying **credentials**. For more infomation, see the [cloud object store documentation](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-using-hmac-credentials#using-hmac-credentials).
- Returns:
- the accessKeyId
-
secretAccessKey
Gets the secretAccessKey.The secret access key associated with the cloud object store. Only valid, and required, with a **credential_type** of `aws4_hmac`. This value is never returned and is only used when creating or modifying **credentials**. For more infomation, see the [cloud object store documentation](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-using-hmac-credentials#using-hmac-credentials).
- Returns:
- the secretAccessKey
-