AWSBasicSessionCredentialsProvider
Objective-C
@interface AWSBasicSessionCredentialsProvider
: NSObject <AWSCredentialsProvider>
Swift
class AWSBasicSessionCredentialsProvider : NSObject, AWSCredentialsProvider
Warning
This credentials provider is intended only for testing purposes. We strongly discourage embedding AWS credentials in your production apps because they can be easily extracted and abused. Consider usingAWSCognitoCredentialsProvider
.
Simple session credentials with keys and session token.
-
Instantiates a static credentials provider.
Declaration
Objective-C
- (nonnull instancetype)initWithAccessKey:(nonnull NSString *)accessKey secretKey:(nonnull NSString *)secretKey sessionToken:(nonnull NSString *)sessionToken;
Swift
init(accessKey: String, secretKey: String, sessionToken: String)
Parameters
accessKey
An AWS Access key.
secretKey
An AWS Secret key.
sessionToken
The session token for this session.
Return Value
An AWS credentials object.