Search in sources :

Example 1 with SamlEngineExceptionMapper

use of uk.gov.ida.hub.samlengine.exceptions.SamlEngineExceptionMapper in project verify-hub by alphagov.

the class SamlEngineModule method configure.

@Override
protected void configure() {
    bind(TrustStoreConfiguration.class).to(SamlEngineConfiguration.class);
    bind(RestfulClientConfiguration.class).to(SamlEngineConfiguration.class);
    bind(SamlDuplicateRequestValidationConfiguration.class).to(SamlEngineConfiguration.class);
    bind(SamlAuthnRequestValidityDurationConfiguration.class).to(SamlEngineConfiguration.class);
    bind(Client.class).toProvider(DefaultClientProvider.class).asEagerSingleton();
    bind(EntityToEncryptForLocator.class).to(AssignableEntityToEncryptForLocator.class);
    bind(AssignableEntityToEncryptForLocator.class).asEagerSingleton();
    bind(InfinispanStartupTasks.class).asEagerSingleton();
    bind(ConfigServiceKeyStore.class).asEagerSingleton();
    bind(JsonResponseProcessor.class);
    bind(RpErrorResponseGeneratorService.class);
    bind(TransactionsConfigProxy.class);
    bind(MatchingServiceHealthcheckRequestGeneratorService.class);
    bind(ObjectMapper.class).toInstance(new ObjectMapper());
    bind(ExpiredCertificateMetadataFilter.class).toInstance(new ExpiredCertificateMetadataFilter());
    bind(new TypeLiteral<LevelLoggerFactory<SamlEngineExceptionMapper>>() {
    }).toInstance(new LevelLoggerFactory<>());
    bind(OutboundResponseFromHubToResponseTransformerFactory.class);
    bind(SimpleProfileOutboundResponseFromHubToResponseTransformerProvider.class);
    bind(SimpleProfileOutboundResponseFromHubToSamlResponseTransformer.class);
    bind(ResponseToUnsignedStringTransformer.class);
    bind(ResponseAssertionSigner.class);
    bind(SimpleProfileTransactionIdaStatusMarshaller.class);
    bind(IdpAuthnResponseTranslatorService.class);
    bind(InboundResponseFromIdpDataGenerator.class);
    bind(MatchingServiceRequestGeneratorService.class);
    bind(HubAttributeQueryRequestBuilder.class);
    bind(MatchingServiceResponseTranslatorService.class);
    bind(RpAuthnRequestTranslatorService.class);
    bind(RpAuthnResponseGeneratorService.class);
    bind(IdpAuthnRequestGeneratorService.class);
    bind(CountrySingleSignOnServiceHelper.class);
    bind(IdaAuthnRequestTranslator.class);
    bind(EidasAuthnRequestTranslator.class);
    bind(MatchingServiceHealthcheckResponseTranslatorService.class);
}
Also used : SamlDuplicateRequestValidationConfiguration(uk.gov.ida.saml.hub.configuration.SamlDuplicateRequestValidationConfiguration) RestfulClientConfiguration(uk.gov.ida.restclient.RestfulClientConfiguration) TrustStoreConfiguration(uk.gov.ida.truststore.TrustStoreConfiguration) ClientTrustStoreConfiguration(uk.gov.ida.truststore.ClientTrustStoreConfiguration) ExpiredCertificateMetadataFilter(uk.gov.ida.saml.metadata.ExpiredCertificateMetadataFilter) DefaultClientProvider(uk.gov.ida.jerseyclient.DefaultClientProvider) SamlAuthnRequestValidityDurationConfiguration(uk.gov.ida.saml.hub.configuration.SamlAuthnRequestValidityDurationConfiguration) EntityToEncryptForLocator(uk.gov.ida.saml.security.EntityToEncryptForLocator) AssignableEntityToEncryptForLocator(uk.gov.ida.hub.samlengine.locators.AssignableEntityToEncryptForLocator) TypeLiteral(com.google.inject.TypeLiteral) AssignableEntityToEncryptForLocator(uk.gov.ida.hub.samlengine.locators.AssignableEntityToEncryptForLocator) ConfigServiceKeyStore(uk.gov.ida.hub.samlengine.config.ConfigServiceKeyStore) SamlEngineExceptionMapper(uk.gov.ida.hub.samlengine.exceptions.SamlEngineExceptionMapper) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 TypeLiteral (com.google.inject.TypeLiteral)1 ConfigServiceKeyStore (uk.gov.ida.hub.samlengine.config.ConfigServiceKeyStore)1 SamlEngineExceptionMapper (uk.gov.ida.hub.samlengine.exceptions.SamlEngineExceptionMapper)1 AssignableEntityToEncryptForLocator (uk.gov.ida.hub.samlengine.locators.AssignableEntityToEncryptForLocator)1 DefaultClientProvider (uk.gov.ida.jerseyclient.DefaultClientProvider)1 RestfulClientConfiguration (uk.gov.ida.restclient.RestfulClientConfiguration)1 SamlAuthnRequestValidityDurationConfiguration (uk.gov.ida.saml.hub.configuration.SamlAuthnRequestValidityDurationConfiguration)1 SamlDuplicateRequestValidationConfiguration (uk.gov.ida.saml.hub.configuration.SamlDuplicateRequestValidationConfiguration)1 ExpiredCertificateMetadataFilter (uk.gov.ida.saml.metadata.ExpiredCertificateMetadataFilter)1 EntityToEncryptForLocator (uk.gov.ida.saml.security.EntityToEncryptForLocator)1 ClientTrustStoreConfiguration (uk.gov.ida.truststore.ClientTrustStoreConfiguration)1 TrustStoreConfiguration (uk.gov.ida.truststore.TrustStoreConfiguration)1