class HubEidasAttributeQueryRequestBuilder {

    public HubEidasAttributeQueryRequest createHubAttributeQueryRequest(EidasAttributeQueryRequestDto dto) {
        return new HubEidasAttributeQueryRequest(
                dto.getRequestId(),
                hubEntityId,
                DateTime.now(),
                new PersistentId(dto.getPersistentId().getNameId()),
                dto.getAssertionConsumerServiceUri(),
                dto.getAuthnRequestIssuerEntityId(),
                dto.getEncryptedIdentityAssertion(),
                AuthnContext.valueOf(dto.getLevelOfAssurance().name()),
                createCycle3Assertion(dto),
                dto.getUserAccountCreationAttributes(),
                dto.getCountrySignedResponseContainer());
    }

    @Inject public  HubEidasAttributeQueryRequestBuilder(@Named("HubEntityId") String hubEntityId);

}