@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 |
buildErrorCreateConsentHeaders()
Builds response headers for create consent request that resulted in some error
|
ResponseHeaders |
buildErrorStartConsentAuthorisationHeaders()
Builds response headers for start consent authorisation request that resulted in some error
|
ResponseHeaders |
buildErrorUpdateConsentsPsuDataHeaders(@NotNull String authorisationId)
Builds response headers for start consent authorisation request that resulted in some error
|
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 buildErrorCreateConsentHeaders()
public ResponseHeaders buildStartConsentAuthorisationHeaders(@NotNull @NotNull String authorisationId)
authorisationId - id of the created authorisationpublic ResponseHeaders buildErrorStartConsentAuthorisationHeaders()
public ResponseHeaders buildUpdateConsentsPsuDataHeaders(@NotNull @NotNull String authorisationId)
authorisationId - id of the authorisation, used in the requestpublic ResponseHeaders buildErrorUpdateConsentsPsuDataHeaders(@NotNull @NotNull String authorisationId)
authorisationId - id of the authorisation, used in the requestCopyright © 2019. All rights reserved.