Search in sources :

Example 1 with KeyPairProvider

use of org.forgerock.openam.shared.security.crypto.KeyPairProvider in project OpenAM by OpenRock.

the class SelfServiceFactoryImpl method getService.

@Override
public RequestHandler getService(String realm, ProcessInstanceConfig serviceConfig) {
    KeyPairProvider keyPairProvider = keyPairProviderFactory.getProvider(realm);
    SnapshotTokenHandlerFactory tokenHandlerFactory = keyPairInjector.getInjectedWith(keyPairProvider);
    ClassLoader classLoader = getClass().getClassLoader();
    return new AnonymousProcessService(serviceConfig, stageProvider, tokenHandlerFactory, processStore, classLoader);
}
Also used : KeyPairProvider(org.forgerock.openam.shared.security.crypto.KeyPairProvider) SnapshotTokenHandlerFactory(org.forgerock.selfservice.core.snapshot.SnapshotTokenHandlerFactory) AnonymousProcessService(org.forgerock.selfservice.core.AnonymousProcessService)

Aggregations

KeyPairProvider (org.forgerock.openam.shared.security.crypto.KeyPairProvider)1 AnonymousProcessService (org.forgerock.selfservice.core.AnonymousProcessService)1 SnapshotTokenHandlerFactory (org.forgerock.selfservice.core.snapshot.SnapshotTokenHandlerFactory)1