Class Identity

java.lang.Object
com.helixframework.aws.sts.Identity

public class Identity extends Object
Utility for retrieving info about the current account and caller entity within AWS.
  • Constructor Details

    • Identity

      public Identity()
      Creates a new instance of Identity with default token service.
    • Identity

      public Identity(com.amazonaws.services.securitytoken.AWSSecurityTokenService awsSecurityTokenService)
      Creates a new instance of Identity with custom token service.
      Parameters:
      awsSecurityTokenService - aws security token service
  • Method Details

    • getAccountId

      public String getAccountId()
      Gets the AWS account id.
      Returns:
      aws account id
    • getCallerId

      public String getCallerId()
      Gets the id of the calling entity.
      Returns:
      calling entity id
    • getCallerArn

      public String getCallerArn()
      Gets the ARN of the calling entity.
      Returns:
      calling entity arn