CredentialContext¶
Creating Instance¶
CredentialContext
takes the following to be created:
- Storage Scheme
- Storage Base (e.g., S3 bucket)
- Privileges
- Locations
CredentialContext
is created using CredentialContext.create factory method.
Create CredentialContext¶
create
builds a CredentialContext
for the given privileges
and the storage locationURI
.
CredentialContext
holds the following extra information based on the storage locationURI
:
URI Component | Value |
---|---|
Storage Scheme | The [<scheme>:]<scheme-specific-part>[#<fragment>] part |
Storage Base | The [<scheme>:]<scheme-specific-part>[#<fragment>] part followed by :// and [//<authority>]<path>[?<query>] |
Locations | The storage locationURI |
Static Method
create
is a Java class method to be invoked without a reference to a particular object.
Learn more in the Java Language Specification.
create
is used when:
CredentialOperations
is requested to vend credentialsFileIOFactory
is requested to getCredentialContextFromTableLocationTableConfigService
is requested to getTableConfig