OBSSTSCredentialProvider Class Reference
| Inherits from | NSObject | 
|---|---|
| Conforms to | OBSServiceCredentialProvider | 
| Declared in | OBSServiceCredentialProvider.h OBSServiceCredentialProvider.m  | 
– initWithAccessKey:secretKey:stsToken:
	Initialize the credential for temporary access. V4 authentication is used by default.
- (instancetype)initWithAccessKey:(NSString *)accessKey secretKey:(NSString *)secretKey stsToken:(NSString *)stsTokenParameters
accessKey | 
						AK in the temporary access key  | 
					
|---|---|
secretKey | 
						SK in the temporary access key  | 
					
stsToken | 
						Security token  | 
					
Return Value
Object obtained after the initialization
Declared In
OBSServiceCredentialProvider.h
– initWithAccessKey:secretKey:stsToken:authVersion:
	Initialize the credential for temporary access.
- (instancetype)initWithAccessKey:(NSString *)accessKey secretKey:(NSString *)secretKey stsToken:(NSString *)stsToken authVersion:(OBSAuthVersion)authVersionParameters
accessKey | 
						AK in the temporary access key  | 
					
|---|---|
secretKey | 
						SK in the temporary access key  | 
					
stsToken | 
						Security token  | 
					
authVersion | 
						Authentication version (OBSAuthVersionV2 OBSAuthVersionV4)  | 
					
Return Value
Object obtained after the initialization
Declared In
OBSServiceCredentialProvider.h