Class EcrExtendedAuth
- java.lang.Object
-
- io.fabric8.maven.docker.access.ecr.EcrExtendedAuth
-
public class EcrExtendedAuth extends Object
Exchange local stored credentials for temporary ecr credentials- Since:
- 2016-12-9
- Author:
- chas
-
-
Constructor Summary
Constructors Constructor Description EcrExtendedAuth(Logger logger, String registry)Initialize an extended authentication for ecr registry.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthConfigextendedAuth(AuthConfig localCredentials)Perform extended authentication.booleanisAwsRegistry()Is the registry an ecr registry?static booleanisAwsRegistry(String registry)Is given the registry an ecr registry?
-
-
-
Method Detail
-
isAwsRegistry
public static boolean isAwsRegistry(String registry)
Is given the registry an ecr registry?- Parameters:
registry- the registry name- Returns:
- true, if the registry matches the ecr pattern
-
isAwsRegistry
public boolean isAwsRegistry()
Is the registry an ecr registry?- Returns:
- true, if the registry matches the ecr pattern
-
extendedAuth
public AuthConfig extendedAuth(AuthConfig localCredentials) throws IOException, org.apache.maven.plugin.MojoExecutionException
Perform extended authentication. Use the provided credentials as IAM credentials and get a temporary ECR token.- Parameters:
localCredentials- IAM id/secret- Returns:
- ECR base64 encoded username:password
- Throws:
IOExceptionorg.apache.maven.plugin.MojoExecutionException
-
-