Interface STSApi

    • Method Detail

      • createTemporaryCredentials

        @Named("GetSessionToken")
        @POST
        @Path("/")
        SessionCredentials createTemporaryCredentials()
        Returns a set of temporary credentials for an AWS account or IAM user, with a default timeout
      • assumeRole

        @Named("AssumeRole")
        @POST
        @Path("/")
        UserAndSessionCredentials assumeRole​(@FormParam("RoleArn")
                                             String roleArn,
                                             @FormParam("RoleSessionName")
                                             String sessionName)
        Assumes a role for a specified session. Only IAM users can assume a role.
        Parameters:
        sessionName - An identifier for the assumed role session, included as part of User#getId.
        roleArn - The Amazon Resource Name (ARN) of the role that the caller is assuming.
      • createFederatedUser

        @Named("GetFederationToken")
        @POST
        @Path("/")
        UserAndSessionCredentials createFederatedUser​(@FormParam("Name")
                                                      String userName)
        Returns a set of temporary credentials for a federated user with the user name specified.
        Parameters:
        userName - The name of the federated user, included as part of User#getId.