kz.greetgo.security.session.SessionStorageBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo.security Show documentation
Show all versions of greetgo.security Show documentation
Security infrastructure used in greetgo!
package kz.greetgo.security.session;
import com.mongodb.client.MongoCollection;
import kz.greetgo.db.DbType;
import kz.greetgo.db.Jdbc;
import org.bson.Document;
public class SessionStorageBuilder {
private SessionStorageBuilder() {}
public static SessionStorageBuilder newBuilder() {
return new SessionStorageBuilder();
}
public SessionStorageJdbcBuilder setJdbc(DbType dbType, Jdbc jdbc) {
return new SessionStorageJdbcBuilder(dbType, jdbc);
}
public SessionStorageMongoBuilder setMongoCollection(MongoCollection collection) {
return new SessionStorageMongoBuilder(collection);
}
}