public StaticCredentialsProvider(IClientProfile clientProfile) {IClientProfile clientProfile1 = clientProfile;Credential legacyCredential = clientProfile1.getCredential();if (null != legacyCredential.getSecurityToken()) {this.credentials = new BasicSessionCredentials(legacyCredential.getAccessKeyId(), legacyCredential.getAccessSecret(), legacyCredential.getSecurityToken());} else {this.credentials = new LegacyCredentials(legacyCredential);}}

public StaticCredentialsProvider ( IClientProfile clientProfile ) { IClientProfile clientProfile1 = clientProfile ; Credential legacyCredential = clientProfile1 . getCredential ( ) ; if ( null != legacyCredential . getSecurityToken ( ) ) { this . credentials = new BasicSessionCredentials ( legacyCredential . getAccessKeyId ( ) , legacyCredential . getAccessSecret ( ) , legacyCredential . getSecurityToken ( ) ) ; } else { this . credentials = new LegacyCredentials ( legacyCredential ) ; } }
public StaticCredentialsProvider(IClientProfile clientProfile){this.clientProfile = clientProfile;var legacyCredential = this.clientProfile.GetCredential();if (null != legacyCredential.SecurityToken){credentials = new BasicSessionCredentials(legacyCredential.AccessKeyId,legacyCredential.AccessSecret,legacyCredential.SecurityToken);}else{credentials = new LegacyCredentials(legacyCredential);}}
