Example usage for com.amazonaws.services.securitytoken.model Credentials setSecretAccessKey

List of usage examples for com.amazonaws.services.securitytoken.model Credentials setSecretAccessKey

Introduction

In this page you can find the example usage for com.amazonaws.services.securitytoken.model Credentials setSecretAccessKey.

Prototype


public void setSecretAccessKey(String secretAccessKey) 

Source Link

Document

The secret access key that can be used to sign requests.

Usage

From source file:com.yahoo.athenz.zts.ZTSClientMock.java

License:Apache License

@Override
Credentials assumeAWSRole(String account, String roleName) {

    Credentials creds = new Credentials();
    creds.setAccessKeyId("access");
    creds.setSecretAccessKey("secret");
    creds.setSessionToken("token");
    return creds;
}