Class TokenFactory

java.lang.Object
ai.clarity.codeartifact.TokenFactory

public class TokenFactory extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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 when profileName is null.
    static software.amazon.awssdk.services.codeartifact.model.GetAuthorizationTokenResponse
    getAuthorizationToken(String codeArtifactUrl, String profileName)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 when profileName is null.
    • 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.