Search in sources :

Example 1 with CountrySelectedState

use of uk.gov.ida.hub.policy.domain.state.CountrySelectedState in project verify-hub by alphagov.

the class CountrySelectedStateController method selectCountry.

@Override
public void selectCountry(String countryEntityId) {
    CountrySelectedState countrySelectedState = new CountrySelectedState(countryEntityId, state.getRelayState(), state.getRequestId(), state.getRequestIssuerEntityId(), state.getSessionExpiryTimestamp(), state.getAssertionConsumerServiceUri(), state.getSessionId(), state.getTransactionSupportsEidas(), state.getLevelsOfAssurance());
    stateTransitionAction.transitionTo(countrySelectedState);
    hubEventLogger.logCountrySelectedEvent(countrySelectedState);
}
Also used : CountrySelectedState(uk.gov.ida.hub.policy.domain.state.CountrySelectedState)

Example 2 with CountrySelectedState

use of uk.gov.ida.hub.policy.domain.state.CountrySelectedState in project verify-hub by alphagov.

the class SessionStartedStateController method selectCountry.

@Override
public void selectCountry(String countryEntityId) {
    CountrySelectedState countrySelectedState = new CountrySelectedState(countryEntityId, state.getRelayState(), state.getRequestId(), state.getRequestIssuerEntityId(), state.getSessionExpiryTimestamp(), state.getAssertionConsumerServiceUri(), state.getSessionId(), state.getTransactionSupportsEidas(), // TODO: EID-154 will plug in a real LOA
    Collections.singletonList(LevelOfAssurance.LEVEL_2));
    stateTransitionAction.transitionTo(countrySelectedState);
    hubEventLogger.logCountrySelectedEvent(countrySelectedState);
}
Also used : CountrySelectedState(uk.gov.ida.hub.policy.domain.state.CountrySelectedState)

Aggregations

CountrySelectedState (uk.gov.ida.hub.policy.domain.state.CountrySelectedState)2