Search in sources :

Example 6 with MatchingServiceConfigEntityDataDto

use of uk.gov.ida.hub.policy.contracts.MatchingServiceConfigEntityDataDto in project verify-hub by alphagov.

the class IdpSelectedStateController method createAttributeQuery.

public AttributeQueryRequestDto createAttributeQuery(SuccessFromIdp successFromIdp) {
    String authnStatementAssertion = successFromIdp.getAuthnStatementAssertion();
    final String encryptedMatchingDatasetAssertion = successFromIdp.getEncryptedMatchingDatasetAssertion();
    String matchingServiceEntityId = getMatchingServiceEntityId();
    MatchingServiceConfigEntityDataDto matchingServiceConfig = matchingServiceConfigProxy.getMatchingService(matchingServiceEntityId);
    return AttributeQueryRequestDto.createCycle01MatchingServiceRequest(state.getRequestId(), encryptedMatchingDatasetAssertion, authnStatementAssertion, state.getRequestIssuerEntityId(), state.getAssertionConsumerServiceUri(), matchingServiceEntityId, DateTime.now().plus(policyConfiguration.getMatchingServiceResponseWaitPeriod()), successFromIdp.getLevelOfAssurance(), successFromIdp.getPersistentId(), assertionRestrictionFactory.getAssertionExpiry(), matchingServiceConfig.getUri(), matchingServiceConfig.isOnboarding());
}
Also used : MatchingServiceConfigEntityDataDto(uk.gov.ida.hub.policy.contracts.MatchingServiceConfigEntityDataDto)

Aggregations

MatchingServiceConfigEntityDataDto (uk.gov.ida.hub.policy.contracts.MatchingServiceConfigEntityDataDto)6 EidasAttributeQueryRequestDto (uk.gov.ida.hub.policy.contracts.EidasAttributeQueryRequestDto)3 URI (java.net.URI)2 Test (org.junit.Test)1 MatchingServiceConfigEntityDataDtoBuilder.aMatchingServiceConfigEntityDataDto (uk.gov.ida.hub.policy.builder.MatchingServiceConfigEntityDataDtoBuilder.aMatchingServiceConfigEntityDataDto)1 Cycle3Dataset (uk.gov.ida.hub.policy.domain.Cycle3Dataset)1 PersistentId (uk.gov.ida.hub.policy.domain.PersistentId)1