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 | Field and Description |
---|---|
protected java.lang.String |
accessKeyId |
protected java.lang.String |
clientId |
protected java.lang.String |
clientSecret |
protected java.lang.String |
credentialType |
protected java.lang.String |
domain |
protected java.lang.String |
endpoint |
protected java.lang.String |
enterpriseId |
protected java.lang.String |
gatewayId |
protected java.lang.String |
organizationUrl |
protected java.lang.String |
passphrase |
protected java.lang.String |
password |
protected java.lang.String |
privateKey |
protected java.lang.String |
publicKeyId |
protected java.lang.String |
secretAccessKey |
protected java.lang.String |
siteCollectionPath |
protected java.lang.String |
sourceVersion |
protected java.lang.String |
url |
protected java.lang.String |
username |
protected java.lang.String |
webApplicationUrl |
Modifier | Constructor and Description |
---|---|
protected |
CredentialDetails(CredentialDetails.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
accessKeyId()
Gets the accessKeyId.
|
java.lang.String |
clientId()
Gets the clientId.
|
java.lang.String |
clientSecret()
Gets the clientSecret.
|
java.lang.String |
credentialType()
Gets the credentialType.
|
java.lang.String |
domain()
Gets the domain.
|
java.lang.String |
endpoint()
Gets the endpoint.
|
java.lang.String |
enterpriseId()
Gets the enterpriseId.
|
java.lang.String |
gatewayId()
Gets the gatewayId.
|
CredentialDetails.Builder |
newBuilder()
New builder.
|
java.lang.String |
organizationUrl()
Gets the organizationUrl.
|
java.lang.String |
passphrase()
Gets the passphrase.
|
java.lang.String |
password()
Gets the password.
|
java.lang.String |
privateKey()
Gets the privateKey.
|
java.lang.String |
publicKeyId()
Gets the publicKeyId.
|
java.lang.String |
secretAccessKey()
Gets the secretAccessKey.
|
java.lang.String |
siteCollectionPath()
Gets the siteCollectionPath.
|
java.lang.String |
sourceVersion()
Gets the sourceVersion.
|
java.lang.String |
url()
Gets the url.
|
java.lang.String |
username()
Gets the username.
|
java.lang.String |
webApplicationUrl()
Gets the webApplicationUrl.
|
@SerializedName(value="credential_type") protected java.lang.String credentialType
@SerializedName(value="client_id") protected java.lang.String clientId
@SerializedName(value="enterprise_id") protected java.lang.String enterpriseId
protected java.lang.String url
protected java.lang.String username
@SerializedName(value="organization_url") protected java.lang.String organizationUrl
@SerializedName(value="site_collection.path") protected java.lang.String siteCollectionPath
@SerializedName(value="client_secret") protected java.lang.String clientSecret
@SerializedName(value="public_key_id") protected java.lang.String publicKeyId
@SerializedName(value="private_key") protected java.lang.String privateKey
protected java.lang.String passphrase
protected java.lang.String password
@SerializedName(value="gateway_id") protected java.lang.String gatewayId
@SerializedName(value="source_version") protected java.lang.String sourceVersion
@SerializedName(value="web_application_url") protected java.lang.String webApplicationUrl
protected java.lang.String domain
protected java.lang.String endpoint
@SerializedName(value="access_key_id") protected java.lang.String accessKeyId
@SerializedName(value="secret_access_key") protected java.lang.String secretAccessKey
protected CredentialDetails(CredentialDetails.Builder builder)
public CredentialDetails.Builder newBuilder()
public java.lang.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 java.lang.String clientId()
The **client_id** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `oauth2`.
public java.lang.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 java.lang.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 java.lang.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 java.lang.String organizationUrl()
The **organization_url** of the source that these credentials connect to. Only valid, and required, with a **credential_type** of `saml`.
public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String sourceVersion()
The type of Sharepoint repository to connect to. Only valid, and required, with a **source_type** of `sharepoint`.
public java.lang.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 java.lang.String domain()
The domain used to log in to your OnPrem SharePoint account. Only valid, and required, with a **source_version** of `2016`.
public java.lang.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 java.lang.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 java.lang.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).