Search in sources :

Example 1 with EzySessionTokenGenerator

use of com.tvd12.ezyfoxserver.service.EzySessionTokenGenerator in project ezyfox-server by youngmonkeys.

the class EzyLoader method newSessionManagers.

@SuppressWarnings("rawtypes")
protected EzySessionManager newSessionManagers(EzySettings settings) {
    EzySimpleSessionManager.Builder builder = createSessionManagerBuilder(settings);
    EzySessionTokenGenerator tokenGenerator = new EzySimpleSessionTokenGenerator(settings.getNodeName());
    builder.tokenGenerator(tokenGenerator).maxSessions(settings.getMaxSessions());
    return builder.build();
}
Also used : EzySimpleSessionManager(com.tvd12.ezyfoxserver.wrapper.EzySimpleSessionManager) EzySessionTokenGenerator(com.tvd12.ezyfoxserver.service.EzySessionTokenGenerator) EzySimpleSessionTokenGenerator(com.tvd12.ezyfoxserver.service.impl.EzySimpleSessionTokenGenerator)

Aggregations

EzySessionTokenGenerator (com.tvd12.ezyfoxserver.service.EzySessionTokenGenerator)1 EzySimpleSessionTokenGenerator (com.tvd12.ezyfoxserver.service.impl.EzySimpleSessionTokenGenerator)1 EzySimpleSessionManager (com.tvd12.ezyfoxserver.wrapper.EzySimpleSessionManager)1