Examples of AWSSecurityTokenServiceClient


Examples of com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient

     *            The AWS ARN of the Role to be assumed.
     */
    public STSAssumeRoleSessionCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider,
            String roleArn) {
        this.roleArn = roleArn;
        securityTokenService = new AWSSecurityTokenServiceClient(longLivedCredentialsProvider);
    }
View Full Code Here

Examples of com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient

     *            Client configuration connection parameters.
     */
    public STSAssumeRoleSessionCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider, String roleArn,
            ClientConfiguration clientConfiguration) {
        this.roleArn = roleArn;
        securityTokenService = new AWSSecurityTokenServiceClient(longLivedCredentialsProvider, clientConfiguration);
    }
View Full Code Here

Examples of com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient

     *            The main AWS credentials for a user's account.
     * @param clientConfiguration
     *            Client configuration connection parameters.
     */
    public STSSessionCredentialsProvider(AWSCredentials longLivedCredentials, ClientConfiguration clientConfiguration) {
        securityTokenService = new AWSSecurityTokenServiceClient(longLivedCredentials, clientConfiguration);
    }
View Full Code Here

Examples of com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient

     * @param longLivedCredentialsProvider
     *            Credentials provider for the main AWS credentials for a user's
     *            account.
     */
    public STSSessionCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider) {
        securityTokenService = new AWSSecurityTokenServiceClient(longLivedCredentialsProvider);
    }
View Full Code Here

Examples of com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient

     *            account.
     * @param clientConfiguration
     *            Client configuration connection parameters.
     */
    public STSSessionCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider, ClientConfiguration clientConfiguration) {
        securityTokenService = new AWSSecurityTokenServiceClient(longLivedCredentialsProvider, clientConfiguration);
    }
View Full Code Here

Examples of com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient

     *            The ARN of the IAM Role that will be assumed
     * @param clientConfiguation
     *            Configuration to apply to STS client created
     */
    public WebIdentityFederationSessionCredentialsProvider(String wifToken, String wifProvider, String roleArn, ClientConfiguration clientConfiguration) {
        this(wifToken, wifProvider, roleArn, new AWSSecurityTokenServiceClient(new AnonymousAWSCredentials(), clientConfiguration));
    }
View Full Code Here

Examples of com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient

   *            Primary AWS account credentials.
   * @param sessionDurationSeconds
   *            The duration, in seconds, for each session to last.
   */
    public STSSessionCredentials(AWSCredentials credentials, int sessionDurationSeconds) {
        this.securityTokenService = new AWSSecurityTokenServiceClient(credentials);
        this.sessionDurationSeconds = sessionDurationSeconds;
    }
View Full Code Here

Examples of com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient

     *
     * @param longLivedCredentials
     *            The main AWS credentials for a user's account.
     */
    public STSSessionCredentialsProvider(AWSCredentials longLivedCredentials) {
        securityTokenService = new AWSSecurityTokenServiceClient(longLivedCredentials);
    }
View Full Code Here

Examples of com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient

     * @param longLivedCredentialsProvider
     *            Credentials provider for the main AWS credentials for a user's
     *            account.
     */
    public STSSessionCredentialsProvider(AWSCredentialsProvider longLivedCredentialsProvider) {
        securityTokenService = new AWSSecurityTokenServiceClient(longLivedCredentialsProvider);
    }
View Full Code Here

Examples of com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient

        if(proxyHost != null && proxyPort != null) {
            clientConfig.setProxyHost(proxyHost);
            clientConfig.setProxyPort(Integer.parseInt(proxyPort));
        }
        s3Client = new AmazonS3Client(awsCredentialsProvider, clientConfig);
        securityClient = new AWSSecurityTokenServiceClient(awsCredentialsProvider, clientConfig);
        if (System.getProperty("EC2_REGION") != null && !"us-east-1".equals(System.getProperty("EC2_REGION"))) {
            if ("global".equals(System.getProperty("EC2_REGION"))) {
                s3Client.setEndpoint("s3.amazonaws.com");
            }
            else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.