public class SsoProfileCredentialsProviderFactory extends Object implements ProfileCredentialsProviderFactory
ProfileCredentialsProviderFactory that allows users to get SSO role credentials using the startUrl
specified in either a Profile or environment variables.| Constructor and Description |
|---|
SsoProfileCredentialsProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
AwsCredentialsProvider |
create(Profile profile,
ProfileFile profileFile,
SdkTokenProvider tokenProvider)
Alternative method to create the
SsoProfileCredentialsProvider with a customized SsoAccessTokenProvider. |
AwsCredentialsProvider |
create(ProfileProviderCredentialsContext credentialsContext)
Default method to create the
SsoProfileCredentialsProvider with a SsoAccessTokenProvider object created
with the start url from Profile in the ProfileProviderCredentialsContext or environment variables and the
default token file directory. |
public SsoProfileCredentialsProviderFactory()
public AwsCredentialsProvider create(ProfileProviderCredentialsContext credentialsContext)
SsoProfileCredentialsProvider with a SsoAccessTokenProvider object created
with the start url from Profile in the ProfileProviderCredentialsContext or environment variables and the
default token file directory.create in interface ProfileCredentialsProviderFactorypublic AwsCredentialsProvider create(Profile profile, ProfileFile profileFile, SdkTokenProvider tokenProvider)
SsoProfileCredentialsProvider with a customized SsoAccessTokenProvider.
This method is only used for testing.Copyright © 2023. All rights reserved.