class RpAuthnResponseGeneratorService {

    public AuthnResponseFromHubContainerDto generate(ResponseFromHubDto responseFromHub) {
        try{
            return createSuccessResponse(responseFromHub);
        } catch (Exception e) {
            throw new UnableToGenerateSamlException("Unable to generate RP authn response", e, Level.ERROR);
        }
    }

    @Inject public  RpAuthnResponseGeneratorService(OutboundResponseFromHubToResponseTransformerFactory outboundResponseFromHubToResponseTransformerFactory,
                                           @Named("HubEntityId") String hubEntityId,
                                           final AssignableEntityToEncryptForLocator entityToEncryptForLocator);

}