java.lang.Object
com.irurueta.authserver.serviceclient.infrastructure.resourceserver.OnBehalfOfDocumentsApis

@Component public class OnBehalfOfDocumentsApis extends Object
Builds the documents client of a user: its requests carry the access token that the authorization server issues in exchange for the user's own token.
  • Field Details

    • documentsApis

      private final DocumentsApis documentsApis
      Builds the documents clients.
    • principalMapper

      private final PrincipalMapper principalMapper
      Builds the principals the authorized client manager caches tokens under.
  • Constructor Details

    • OnBehalfOfDocumentsApis

      public OnBehalfOfDocumentsApis()
  • Method Details

    • forSubject

      public DocumentsApi forSubject(String subjectToken)
      Builds the client of one user.
      Parameters:
      subjectToken - access token of the user, which is exchanged and never logged.
      Returns:
      the documents client.