/** * Manage session with MongoDB in the specified collection and 30 minutes * idle time. * * @param database MongoDB database object * @param collection name of collection to manage the session * @see #MongoDBSessionDataStorage(com.mongodb.client.MongoDatabase, * java.lang.String, long, ro.pippo.session.mongodb.SessionDataTranscoder) */ public MongoDBSessionDataStorage(MongoDatabase database, String collection) { this(database, collection, IDLE_TIME, new SerializationSessionDataTranscoder()); }
/** * Manage session with Jedis and 30 minutes idle time. * * @param jedisPool Jedis pool */ public JedisSessionDataStorage(JedisPool jedisPool) { this(jedisPool, IDLE_TIME, new SerializationSessionDataTranscoder()); }
/** * Manage session with Jedis in the specified idle time. * * @param jedisPool Jedis pool * @param idleTime idle time of the session in seconds */ public JedisSessionDataStorage(JedisPool jedisPool, int idleTime) { this(jedisPool, idleTime, new SerializationSessionDataTranscoder()); }
/** * Manage session with MongoDB in the collection named "session" and idle * time indicated. * * @param database MongoDB database object * @param idleTime idle time of the session in seconds * @see #MongoDBSessionDataStorage(com.mongodb.client.MongoDatabase, * java.lang.String, long, ro.pippo.session.mongodb.SessionDataTranscoder) */ public MongoDBSessionDataStorage(MongoDatabase database, int idleTime) { this(database, SESSION_NAME, idleTime, new SerializationSessionDataTranscoder()); }
/** * Manage session with MongoDB in the collection named "session" and 30 * minutes idle time. * * @param database MongoDB database object * @see #MongoDBSessionDataStorage(com.mongodb.client.MongoDatabase, * java.lang.String, long, ro.pippo.session.mongodb.SessionDataTranscoder) */ public MongoDBSessionDataStorage(MongoDatabase database) { this(database, SESSION_NAME, IDLE_TIME, new SerializationSessionDataTranscoder()); }
public JDBCSessionDataStorage(DataSource dataSource) { this(dataSource, SELECT, INSERT, UPDATE, DELETE, new SerializationSessionDataTranscoder()); }
public CookieSessionDataStorage(PippoSettings pippoSettings) { this(pippoSettings, new SerializationSessionDataTranscoder()); }
public JDBCSessionDataStorage(DataSource dataSource, String select, String insert, String update, String delete) { this(dataSource, select, insert, update, delete, new SerializationSessionDataTranscoder()); }
public EncryptedSessionDataTranscoder build() { if (secretKey == null) { throw new PippoRuntimeException("secretKey is required"); } if (hmacSHA1Key == null) { hmacSHA1Key = secretKey; } if (encryptor == null) { encryptor = new DefaultEncryptor(); } if (transcoder == null) { transcoder = new SerializationSessionDataTranscoder(); } return new EncryptedSessionDataTranscoder(secretKey, hmacSHA1Key, transcoder, encryptor); }
public CookieSessionDataStorage(PippoSettings pippoSettings) { this(pippoSettings, new SerializationSessionDataTranscoder()); }