@Component public class ConsentHeadersBuilder extends Object
| Constructor and Description |
|---|
ConsentHeadersBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ResponseHeaders |
buildCreateConsentHeaders(@Nullable String authorisationId,
@NotNull String selfLink)
Builds response headers for successful create consent request
|
ResponseHeaders |
buildStartConsentAuthorisationHeaders(@NotNull String authorisationId)
Builds response headers for successful start consent authorisation request
|
ResponseHeaders |
buildUpdateConsentsPsuDataHeaders(@NotNull String authorisationId)
Builds response headers for successful update consents PSU Data request
|
public ResponseHeaders buildCreateConsentHeaders(@Nullable @Nullable String authorisationId, @NotNull @NotNull String selfLink)
authorisationId - id of the authorisation, if it was created implicitlyselfLink - link to the newly created consentpublic ResponseHeaders buildStartConsentAuthorisationHeaders(@NotNull @NotNull String authorisationId)
authorisationId - id of the created authorisationpublic ResponseHeaders buildUpdateConsentsPsuDataHeaders(@NotNull @NotNull String authorisationId)
authorisationId - id of the authorisation, used in the requestCopyright © 2019. All rights reserved.