Add method header for getClass helper

This commit is contained in:
Ethan Katnic 2024-09-04 10:38:15 -07:00
parent 892cc79dfc
commit 90d984b670

View file

@ -175,6 +175,14 @@ class AwsCredentialsProviderPropertyValueDecoder implements IPropertyValueDecode
return null; return null;
} }
/**
* Resolves the class for the given provider name and arguments.
*
* @param providerName A string containing the provider name.
*
* @return The Class object representing the resolved AwsCredentialsProvider implementation,
* or null if the class cannot be resolved or does not extend AwsCredentialsProvider.
*/
private static Class<? extends AwsCredentialsProvider> getClass(String providerName) { private static Class<? extends AwsCredentialsProvider> getClass(String providerName) {
String className = providerName.replace( String className = providerName.replace(
"software.amazon.awssdk.auth.credentials.StsAssumeRoleCredentialsProvider", "software.amazon.awssdk.auth.credentials.StsAssumeRoleCredentialsProvider",