Class STSTokensImpl

java.lang.Object
com.eqixiac.equinix.sts.client.implementation.STSTokensImpl
All Implemented Interfaces:
STSTokens

public class STSTokensImpl extends Object implements STSTokens
  • Constructor Details

    • STSTokensImpl

      public STSTokensImpl()
  • Method Details

    • generate

      public StsToken generate(TokenRequest request)
      Description copied from interface: STSTokens
      Exchanges an ID token for an STS access token (RFC 8693 token exchange).
      Specified by:
      generate in interface STSTokens
      Parameters:
      request - the token-exchange request (grant type, subject token and optional scope)
      Returns:
      the issued access token
    • listAccessPoliciesGranted

      public GrantedAccessPolicyPage listAccessPoliciesGranted(ListPoliciesGrantedRequest request)
      Description copied from interface: STSTokens
      Lists the access policies granted to the subject identified by the given token within a project (first page or the page identified by the request's pageToken).
      Specified by:
      listAccessPoliciesGranted in interface STSTokens
      Parameters:
      request - the granted-policies request (project, subject token and pagination)
      Returns:
      a page of granted access policy ids