use of uk.gov.ida.hub.samlproxy.exceptions.SamlProxySamlTransformationErrorExceptionMapper in project verify-hub by alphagov.
the class SamlProxyModule method configure.
@Override
protected void configure() {
bind(TrustStoreConfiguration.class).to(SamlProxyConfiguration.class);
bind(RestfulClientConfiguration.class).to(SamlProxyConfiguration.class);
bind(PublicKeyInputStreamFactory.class).toInstance(new PublicKeyFileInputStreamFactory());
bind(SigningKeyStore.class).to(AuthnRequestKeyStore.class);
bind(Client.class).toProvider(DefaultClientProvider.class).in(Scopes.SINGLETON);
bind(EventSinkProxy.class).to(EventSinkHttpProxy.class);
bind(KeyStore.class).toProvider(KeyStoreProvider.class).in(Scopes.SINGLETON);
bind(ConfigServiceKeyStore.class).asEagerSingleton();
bind(KeyStoreLoader.class).toInstance(new KeyStoreLoader());
bind(ResponseMaxSizeValidator.class);
bind(ExpiredCertificateMetadataFilter.class).toInstance(new ExpiredCertificateMetadataFilter());
bind(X509CertificateFactory.class).toInstance(new X509CertificateFactory());
bind(CertificateChainValidator.class);
bind(CertificatesConfigProxy.class);
bind(TrustStoreForCertificateProvider.class);
bind(StringSizeValidator.class).toInstance(new StringSizeValidator());
bind(JsonResponseProcessor.class);
bind(ObjectMapper.class).toInstance(new ObjectMapper());
bind(PKIXParametersProvider.class).toInstance(new PKIXParametersProvider());
bind(RelayStateValidator.class).toInstance(new RelayStateValidator());
bind(ProtectiveMonitoringLogFormatter.class).toInstance(new ProtectiveMonitoringLogFormatter());
bind(KeyStoreCache.class);
bind(EventSinkMessageSender.class);
bind(ExceptionAuditor.class);
bind(ProtectiveMonitoringLogger.class);
bind(SessionProxy.class);
bind(new TypeLiteral<LevelLoggerFactory<SamlProxySamlTransformationErrorExceptionMapper>>() {
}).toInstance(new LevelLoggerFactory<>());
bind(new TypeLiteral<LevelLoggerFactory<NoKeyConfiguredForEntityExceptionMapper>>() {
}).toInstance(new LevelLoggerFactory<>());
bind(new TypeLiteral<LevelLoggerFactory<SamlProxyApplicationExceptionMapper>>() {
}).toInstance(new LevelLoggerFactory<>());
bind(new TypeLiteral<LevelLoggerFactory<SamlProxyExceptionMapper>>() {
}).toInstance(new LevelLoggerFactory<>());
bind(SamlMessageSenderHandler.class);
bind(ExternalCommunicationEventLogger.class);
bind(IpAddressResolver.class).toInstance(new IpAddressResolver());
}
Aggregations