Package ai.clarity.codeartifact
Class TokenFactory
java.lang.Object
ai.clarity.codeartifact.TokenFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic software.amazon.awssdk.services.codeartifact.model.GetAuthorizationTokenResponsegetAuthorizationToken(ai.clarity.codeartifact.CodeArtifactUrl codeArtifactUrl, CodeArtifactCredentials credentials) Requests the token with the static credentials of a service account, bypassing the local AWS profiles.static software.amazon.awssdk.services.codeartifact.model.GetAuthorizationTokenResponsegetAuthorizationToken(ai.clarity.codeartifact.CodeArtifactUrl codeArtifactUrl, String profileName) Requests the token with the given AWS profile, or with the default credentials provider chain whenprofileNameisnull.static software.amazon.awssdk.services.codeartifact.model.GetAuthorizationTokenResponsegetAuthorizationToken(String codeArtifactUrl, String profileName)
-
Constructor Details
-
TokenFactory
public TokenFactory()
-
-
Method Details
-
getAuthorizationToken
public static software.amazon.awssdk.services.codeartifact.model.GetAuthorizationTokenResponse getAuthorizationToken(String codeArtifactUrl, String profileName) throws MalformedURLException - Throws:
MalformedURLException
-
getAuthorizationToken
public static software.amazon.awssdk.services.codeartifact.model.GetAuthorizationTokenResponse getAuthorizationToken(ai.clarity.codeartifact.CodeArtifactUrl codeArtifactUrl, String profileName) Requests the token with the given AWS profile, or with the default credentials provider chain whenprofileNameisnull. -
getAuthorizationToken
public static software.amazon.awssdk.services.codeartifact.model.GetAuthorizationTokenResponse getAuthorizationToken(ai.clarity.codeartifact.CodeArtifactUrl codeArtifactUrl, CodeArtifactCredentials credentials) Requests the token with the static credentials of a service account, bypassing the local AWS profiles.
-