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());
}
Aggregations