Search in sources :

Example 1 with SamlAuthnResponseTranslatorDtoFactory

use of uk.gov.ida.hub.policy.factories.SamlAuthnResponseTranslatorDtoFactory in project verify-hub by alphagov.

the class PolicyModule method configure.

@Override
protected void configure() {
    bind(RestfulClientConfiguration.class).to(PolicyConfiguration.class).in(Scopes.SINGLETON);
    bind(AssertionLifetimeConfiguration.class).to(PolicyConfiguration.class).in(Scopes.SINGLETON);
    bind(Client.class).toProvider(DefaultClientProvider.class).in(Scopes.SINGLETON);
    bind(KeyStore.class).toProvider(KeyStoreProvider.class).in(Scopes.SINGLETON);
    bind(KeyStoreLoader.class).toInstance(new KeyStoreLoader());
    bind(InfinispanStartupTasks.class).asEagerSingleton();
    bind(JsonResponseProcessor.class);
    bind(ObjectMapper.class).toInstance(new ObjectMapper());
    bind(EventSinkProxy.class).to(EventSinkHttpProxy.class);
    bind(HubEventLogger.class);
    bind(SessionService.class);
    bind(CountriesService.class);
    bind(AuthnRequestFromTransactionHandler.class);
    bind(SessionRepository.class);
    bind(StateControllerFactory.class);
    bind(SamlEngineProxy.class);
    bind(TransactionsConfigProxy.class);
    bind(IdentityProvidersConfigProxy.class);
    bind(AuthnResponseFromIdpService.class);
    bind(AuthnResponseFromCountryService.class);
    bind(SamlAuthnResponseTranslatorDtoFactory.class).toInstance(new SamlAuthnResponseTranslatorDtoFactory());
    bind(IdGenerator.class).toInstance(new IdGenerator());
    bind(AttributeQueryService.class);
    bind(SamlSoapProxyProxy.class);
    bind(ResponseFromHubFactory.class);
    bind(AssertionRestrictionsFactory.class);
    bind(MatchingServiceConfigProxy.class);
    bind(Cycle3Service.class);
    bind(MatchingServiceResponseService.class);
    bind(ResponseFromIdpHandler.class);
}
Also used : KeyStoreProvider(uk.gov.ida.truststore.KeyStoreProvider) KeyStoreLoader(uk.gov.ida.truststore.KeyStoreLoader) SamlAuthnResponseTranslatorDtoFactory(uk.gov.ida.hub.policy.factories.SamlAuthnResponseTranslatorDtoFactory) DefaultClientProvider(uk.gov.ida.jerseyclient.DefaultClientProvider) EventSinkProxy(uk.gov.ida.eventsink.EventSinkProxy) IdGenerator(uk.gov.ida.common.shared.security.IdGenerator) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 IdGenerator (uk.gov.ida.common.shared.security.IdGenerator)1 EventSinkProxy (uk.gov.ida.eventsink.EventSinkProxy)1 SamlAuthnResponseTranslatorDtoFactory (uk.gov.ida.hub.policy.factories.SamlAuthnResponseTranslatorDtoFactory)1 DefaultClientProvider (uk.gov.ida.jerseyclient.DefaultClientProvider)1 KeyStoreLoader (uk.gov.ida.truststore.KeyStoreLoader)1 KeyStoreProvider (uk.gov.ida.truststore.KeyStoreProvider)1