use of uk.gov.ida.hub.policy.domain.controller.WaitingForMatchingServiceResponseStateController in project verify-hub by alphagov.
the class MatchingServiceResponseService method handleNoMatchResponseFromMatchingService.
private void handleNoMatchResponseFromMatchingService(SessionId sessionId, InboundResponseFromMatchingServiceDto inboundResponseFromMatchingServiceDto) {
NoMatchFromMatchingService noMatchFromMatchingService = new NoMatchFromMatchingService(inboundResponseFromMatchingServiceDto.getIssuer(), inboundResponseFromMatchingServiceDto.getInResponseTo());
WaitingForMatchingServiceResponseStateController stateController = (WaitingForMatchingServiceResponseStateController) sessionRepository.getStateController(sessionId, WaitingForMatchingServiceResponseState.class);
stateController.handleNoMatchResponseFromMatchingService(noMatchFromMatchingService);
}
use of uk.gov.ida.hub.policy.domain.controller.WaitingForMatchingServiceResponseStateController in project verify-hub by alphagov.
the class MatchingServiceResponseService method handleMatchResponseFromMatchingService.
private void handleMatchResponseFromMatchingService(SessionId sessionId, InboundResponseFromMatchingServiceDto inboundResponseFromMatchingServiceDto) {
MatchFromMatchingService matchFromMatchingService = new MatchFromMatchingService(inboundResponseFromMatchingServiceDto.getIssuer(), inboundResponseFromMatchingServiceDto.getInResponseTo(), inboundResponseFromMatchingServiceDto.getEncryptedMatchingServiceAssertion().get(), inboundResponseFromMatchingServiceDto.getLevelOfAssurance());
WaitingForMatchingServiceResponseStateController stateController = (WaitingForMatchingServiceResponseStateController) sessionRepository.getStateController(sessionId, WaitingForMatchingServiceResponseState.class);
stateController.handleMatchResponseFromMatchingService(matchFromMatchingService);
}
use of uk.gov.ida.hub.policy.domain.controller.WaitingForMatchingServiceResponseStateController in project verify-hub by alphagov.
the class MatchingServiceResponseService method handleUserAccountCreationFailedResponseFromMatchingService.
private void handleUserAccountCreationFailedResponseFromMatchingService(SessionId sessionId) {
WaitingForMatchingServiceResponseStateController stateController = (WaitingForMatchingServiceResponseStateController) sessionRepository.getStateController(sessionId, WaitingForMatchingServiceResponseState.class);
stateController.handleUserAccountCreationFailedResponseFromMatchingService();
}
use of uk.gov.ida.hub.policy.domain.controller.WaitingForMatchingServiceResponseStateController in project verify-hub by alphagov.
the class MatchingServiceResponseService method handleUserAccountCreatedResponseFromMatchingService.
private void handleUserAccountCreatedResponseFromMatchingService(SessionId sessionId, InboundResponseFromMatchingServiceDto inboundResponseFromMatchingServiceDto) {
UserAccountCreatedFromMatchingService userAccountCreatedFromMatchingService = new UserAccountCreatedFromMatchingService(inboundResponseFromMatchingServiceDto.getIssuer(), inboundResponseFromMatchingServiceDto.getInResponseTo(), inboundResponseFromMatchingServiceDto.getEncryptedMatchingServiceAssertion().get(), inboundResponseFromMatchingServiceDto.getLevelOfAssurance());
WaitingForMatchingServiceResponseStateController stateController = (WaitingForMatchingServiceResponseStateController) sessionRepository.getStateController(sessionId, WaitingForMatchingServiceResponseState.class);
stateController.handleUserAccountCreatedResponseFromMatchingService(userAccountCreatedFromMatchingService);
}
use of uk.gov.ida.hub.policy.domain.controller.WaitingForMatchingServiceResponseStateController in project verify-hub by alphagov.
the class MatchingServiceResponseService method handleHubMatchingServiceRequestFailure.
private void handleHubMatchingServiceRequestFailure(SessionId sessionId) {
WaitingForMatchingServiceResponseStateController stateController = (WaitingForMatchingServiceResponseStateController) sessionRepository.getStateController(sessionId, WaitingForMatchingServiceResponseState.class);
stateController.handleRequestFailure();
}
Aggregations