public class CredentialDetails
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Obtain credentials for your source from the administrator of the source.
Modifier and Type | Class and 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.
|
Modifier and Type | Method and 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.
|
public CredentialDetails.Builder newBuilder()
public String 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`.
public String clientId()
The **client_id** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `oauth2`.
public String enterpriseId()
The **enterprise_id** of the Box site that these credentials connect to. Only valid, and required, with a **source_type** of `box`.
public String 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`.
public String 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`.
public String organizationUrl()
The **organization_url** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `saml`.
public String siteCollectionPath()
The **site_collection.path** of the source that these credentials connect to. Only valid, and required, with a **source_type** of `sharepoint`.
public String 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**.
public String 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**.
public String 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**.
public String 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**.
public String 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**.
public String 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.
public String sourceVersion()
The type of Sharepoint repository to connect to. Only valid, and required, with a **source_type** of `sharepoint`.
public String 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.
public String domain()
The domain used to log in to your OnPrem SharePoint account. Only valid, and required, with a **source_version** of `2016`.
public String 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`.
public String 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).
public String 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).
Copyright © 2023 IBM Cloud. All rights reserved.