Interface OnBehalfOfDocumentGateway
- All Known Implementing Classes:
RestOnBehalfOfDocumentGateway
public interface OnBehalfOfDocumentGateway
Port to the documents on the resource server, read on behalf of a user: the subject token of the user is exchanged
for a token for the resource server (RFC 8693). An implementation never returns
null and reports every
failure as a DocumentAccessException, so no transport or framework type reaches its callers.-
Method Summary
Modifier and TypeMethodDescriptionlistDocumentsAs(String subjectToken) Lists the documents the user may see.
-
Method Details
-
listDocumentsAs
Lists the documents the user may see.- Parameters:
subjectToken- access token of the user, which is exchanged and never logged.- Returns:
- the documents, empty when there are none.
- Throws:
DocumentAccessException- if the exchange is refused, the resource server refuses the exchanged token or cannot be reached.
-