OBSStaticCredentialProvider Class Reference

Inherits from NSObject
Conforms to OBSServiceCredentialProvider
Declared in OBSServiceCredentialProvider.h
OBSServiceCredentialProvider.m

– initWithAccessKey:secretKey:

Use the AK to initialize the credential. V2 authentication is used by default.

- (instancetype)initWithAccessKey:(NSString *)accessKey secretKey:(NSString *)secretKey

Parameters

accessKey

AK provided by the cloud console

secretKey

SK provided by the cloud console

Return Value

Object obtained after the initialization

Declared In

OBSServiceCredentialProvider.h

– initWithAccessKey:secretKey:authVersion:

Use the AK to initialize credentials.

- (instancetype)initWithAccessKey:(NSString *)accessKey secretKey:(NSString *)secretKey authVersion:(OBSAuthVersion)authVersion

Parameters

accessKey

AK provided by the cloud console

secretKey

SK provided by the cloud console

authVersion

Authentication version (OBSAuthVersionV2 OBSAuthVersionV4)

Return Value

Object obtained after the initialization

Declared In

OBSServiceCredentialProvider.h