Package org.filestack
Class Config
java.lang.Object
org.filestack.Config
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs basic configuration forClient
class without any security policy.Deprecated.Constructs configuration forClient
class.Deprecated.useConfig(String, String, String)
instead and manually pass returnUrl toCloudServiceUtil.buildBaseJson(Config, String, String)
if necessaryConstructs configuration forClient
class. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.boolean
-
Field Details
-
apiKey
-
policy
-
signature
-
returnUrl
-
-
Constructor Details
-
Config
Constructs configuration forClient
class.- Parameters:
apiKey
- - an API key obtained from the Developer Portalpolicy
- - access policy, one can be created withPolicy.Builder
-
Config
Constructs basic configuration forClient
class without any security policy.- Parameters:
apiKey
- - an API key obtained from the Developer Portal
-
Config
Deprecated.useConfig(String)
instead and manually pass returnUrl toCloudServiceUtil.buildBaseJson(Config, String, String)
if necessaryConstructs basic configuration forClient
class without any security policy.- Parameters:
apiKey
- - an API key obtained from the Developer PortalreturnUrl
- - returnUrl used for building JSON bodies withCloudServiceUtil
-
Config
Constructs configuration forClient
class.- Parameters:
apiKey
- - an API key obtained from the Developer PortalencodedPolicy
- - encoded policy, obtain one usingPolicy.getEncodedPolicy()
signature
- - policy signature, obtain one usingPolicy.getSignature()
-
Config
@Deprecated public Config(String apiKey, @Nullable String returnUrl, @Nullable String encodedPolicy, @Nullable String signature) Deprecated.useConfig(String, String, String)
instead and manually pass returnUrl toCloudServiceUtil.buildBaseJson(Config, String, String)
if necessaryConstructs configuration forClient
class.- Parameters:
apiKey
- - an API key obtained from the Developer PortalreturnUrl
- - returnUrl used for building JSON bodies withCloudServiceUtil
encodedPolicy
- - encoded policy, obtain one usingPolicy.getEncodedPolicy()
signature
- - policy signature, obtain one usingPolicy.getSignature()
-
-
Method Details
-
getApiKey
-
getReturnUrl
Deprecated. -
hasSecurity
public boolean hasSecurity() -
getPolicy
-
getSignature
-
Config(String)
instead and manually pass returnUrl toCloudServiceUtil.buildBaseJson(Config, String, String)
if necessary