Search in sources :

Example 1 with IdGenerator

use of uk.gov.ida.common.shared.security.IdGenerator in project verify-hub by alphagov.

the class HubIdentityProviderMetadataDtoToEntityDescriptorTransformerTest method setUp.

@BeforeAll
public static void setUp() {
    OpenSamlXmlObjectFactory openSamlXmlObjectFactory = new OpenSamlXmlObjectFactory();
    transformer = new HubIdentityProviderMetadataDtoToEntityDescriptorTransformer(openSamlXmlObjectFactory, new KeyDescriptorsUnmarshaller(openSamlXmlObjectFactory), new IdGenerator());
}
Also used : OpenSamlXmlObjectFactory(uk.gov.ida.saml.core.OpenSamlXmlObjectFactory) IdGenerator(uk.gov.ida.common.shared.security.IdGenerator) BeforeAll(org.junit.jupiter.api.BeforeAll)

Example 2 with IdGenerator

use of uk.gov.ida.common.shared.security.IdGenerator 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(SessionStoreStartupTasks.class).asEagerSingleton();
    bind(JsonResponseProcessor.class);
    bind(HubEventLogger.class);
    bind(SessionService.class);
    bind(AuthnRequestFromTransactionHandler.class);
    bind(SessionRepository.class);
    bind(StateControllerFactory.class);
    bind(SamlEngineProxy.class);
    bind(TransactionsConfigProxy.class);
    bind(IdentityProvidersConfigProxy.class);
    bind(AuthnResponseFromIdpService.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) PolicyConfiguration(uk.gov.ida.hub.policy.configuration.PolicyConfiguration) IdGenerator(uk.gov.ida.common.shared.security.IdGenerator)

Aggregations

IdGenerator (uk.gov.ida.common.shared.security.IdGenerator)2 BeforeAll (org.junit.jupiter.api.BeforeAll)1 PolicyConfiguration (uk.gov.ida.hub.policy.configuration.PolicyConfiguration)1 SamlAuthnResponseTranslatorDtoFactory (uk.gov.ida.hub.policy.factories.SamlAuthnResponseTranslatorDtoFactory)1 DefaultClientProvider (uk.gov.ida.jerseyclient.DefaultClientProvider)1 OpenSamlXmlObjectFactory (uk.gov.ida.saml.core.OpenSamlXmlObjectFactory)1 KeyStoreLoader (uk.gov.ida.truststore.KeyStoreLoader)1 KeyStoreProvider (uk.gov.ida.truststore.KeyStoreProvider)1