code: private AuthConfig extendedAuthentication(AuthConfig standardAuthConfig, String registry) throws IOException, MojoExecutionException {
          EcrExtendedAuth ecr = new EcrExtendedAuth(log, registry);
          if (ecr.isAwsRegistry()) {
              return ecr.extendedAuth(standardAuthConfig);
          }
          return standardAuthConfig;
      }
docs: Try various extended authentication method.  Currently only supports amazon ECR
  
  @param standardAuthConfig The locally stored credentials.
  @param registry The registry to authenticated against.
  @return The given credentials, if registry does not need extended authentication;
  else, the credentials after authentication.
  @throws IOException
  @throws MojoExecutionException