Class ListDocumentsOnBehalfOfUseCase
java.lang.Object
com.irurueta.authserver.serviceclient.application.documents.ListDocumentsOnBehalfOfUseCase
Use case that lists the documents a user may see, on behalf of that user (token exchange).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OnBehalfOfDocumentGatewayPort to the documents on the resource server on behalf of a user. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
onBehalfOfDocumentGateway
Port to the documents on the resource server on behalf of a user.
-
-
Constructor Details
-
ListDocumentsOnBehalfOfUseCase
public ListDocumentsOnBehalfOfUseCase()
-
-
Method Details
-
execute
Lists the documents the user may see.- Parameters:
subjectToken- access token of the user.- Returns:
- the documents, empty when there are none.
- Throws:
IllegalArgumentException- if the subject token is null or blank.
-