@Service public class ProtocolResultHandler extends Object
Constructor and Description |
---|
ProtocolResultHandler() |
Modifier and Type | Method and Description |
---|---|
protected <RESULT> AuthSession |
addAuthorizationSessionData(Result<RESULT> result,
AuthSession authSession,
FacadeServiceableRequest request,
ServiceContext session,
FacadeResultRedirectable<RESULT,?> mappedResult) |
protected <REQUEST,RESULT extends FacadeServiceableGetter> |
addAuthorizationSessionDataIfAvailable(Result<REQUEST> result,
FacadeServiceableRequest request,
ServiceContext<RESULT> session,
FacadeResultRedirectable mappedResult) |
protected <RESULT> FacadeRedirectResult<RESULT,AuthStateBody> |
doHandleAbortAuthorization(RedirectionResult<RESULT,?> result,
UUID xRequestId,
ServiceContext session) |
protected <RESULT> FacadeResult<RESULT> |
handleConsentAcquired(ConsentAcquiredResult<RESULT,?> result) |
protected <RESULT,REQUEST extends FacadeServiceableGetter> |
handleError(ErrorResult<RESULT> result,
UUID xRequestId,
ServiceContext<REQUEST> session,
FacadeServiceableRequest request) |
protected <RESULT,REQUEST extends FacadeServiceableGetter> |
handleNonRedirectableError(ErrorResult<RESULT> result,
UUID xRequestId,
ServiceContext<REQUEST> session) |
protected <RESULT,REQUEST extends FacadeServiceableGetter> |
handleRedirect(RedirectionResult<RESULT,?> result,
FacadeServiceableRequest request,
ServiceContext<REQUEST> session,
SecretKeyWithIv sessionKey) |
protected <RESULT,REQUEST extends FacadeServiceableGetter> |
handleRedirectableError(ErrorResult<RESULT> result,
UUID xRequestId,
ServiceContext<REQUEST> session,
FacadeServiceableRequest request) |
<RESULT,REQUEST extends FacadeServiceableGetter> |
handleResult(Result<RESULT> result,
FacadeServiceableRequest request,
ServiceContext<REQUEST> session)
This class must ensure that it is separate transaction - so it won't join any other as is used with
CompletableFuture.
|
protected <RESULT,REQUEST extends FacadeServiceableGetter> |
handleSuccess(SuccessResult<RESULT> result,
UUID xRequestId,
ServiceContext<REQUEST> session) |
protected AuthStateBody |
mapCause(RedirectionResult result) |
protected <RESULT> void |
setAspspRedirectCodeIfRequired(RedirectionResult<RESULT,?> result,
AuthSession session,
ServiceContext context) |
@Transactional(propagation=REQUIRES_NEW) public <RESULT,REQUEST extends FacadeServiceableGetter> FacadeResult<RESULT> handleResult(Result<RESULT> result, FacadeServiceableRequest request, ServiceContext<REQUEST> session)
@NotNull protected <RESULT,REQUEST extends FacadeServiceableGetter> @NotNull FacadeResult<RESULT> handleSuccess(SuccessResult<RESULT> result, UUID xRequestId, ServiceContext<REQUEST> session)
protected <RESULT,REQUEST extends FacadeServiceableGetter> FacadeResult<RESULT> handleError(ErrorResult<RESULT> result, UUID xRequestId, ServiceContext<REQUEST> session, FacadeServiceableRequest request)
protected <RESULT,REQUEST extends FacadeServiceableGetter> FacadeResult<RESULT> handleNonRedirectableError(ErrorResult<RESULT> result, UUID xRequestId, ServiceContext<REQUEST> session)
protected <RESULT,REQUEST extends FacadeServiceableGetter> FacadeResult<RESULT> handleRedirectableError(ErrorResult<RESULT> result, UUID xRequestId, ServiceContext<REQUEST> session, FacadeServiceableRequest request)
protected <RESULT> FacadeResult<RESULT> handleConsentAcquired(ConsentAcquiredResult<RESULT,?> result)
protected <RESULT,REQUEST extends FacadeServiceableGetter> FacadeResultRedirectable<RESULT,AuthStateBody> handleRedirect(RedirectionResult<RESULT,?> result, FacadeServiceableRequest request, ServiceContext<REQUEST> session, SecretKeyWithIv sessionKey)
protected <RESULT> FacadeRedirectResult<RESULT,AuthStateBody> doHandleAbortAuthorization(RedirectionResult<RESULT,?> result, UUID xRequestId, ServiceContext session)
protected <RESULT> void setAspspRedirectCodeIfRequired(RedirectionResult<RESULT,?> result, AuthSession session, ServiceContext context)
protected <REQUEST,RESULT extends FacadeServiceableGetter> void addAuthorizationSessionDataIfAvailable(Result<REQUEST> result, FacadeServiceableRequest request, ServiceContext<RESULT> session, FacadeResultRedirectable mappedResult)
protected <RESULT> AuthSession addAuthorizationSessionData(Result<RESULT> result, AuthSession authSession, FacadeServiceableRequest request, ServiceContext session, FacadeResultRedirectable<RESULT,?> mappedResult)
protected AuthStateBody mapCause(RedirectionResult result)
Copyright © 2020. All rights reserved.