use of uk.gov.ida.saml.hub.validators.StringSizeValidator 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(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(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<SamlProxyDuplicateRequestExceptionMapper>>() {
}).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