Skip to content

CredentialContext

Create CredentialContext

CredentialContext create(
  URI locationURI,
  Set<Privilege> privileges)

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: