public class SessionOptions extends Object
Constructor and Description |
---|
SessionOptions(SessionId... sessionId)
Creates a session options.
|
SessionOptions(String secret,
SessionId... sessionId)
Creates a session options.
|
Modifier and Type | Method and Description |
---|---|
String |
generateId()
Generates a Session ID.
|
SessionId |
getSessionId() |
SessionStore |
getStore()
Session store (defaults uses memory).
|
SessionOptions |
setStore(SessionStore store)
Set session store.
|
public SessionOptions(@Nonnull String secret, @Nonnull SessionId... sessionId)
sessionId
- session ID.public SessionId getSessionId()
@Nonnull public SessionStore getStore()
@Nonnull public SessionOptions setStore(@Nonnull SessionStore store)
store
- Session store.Copyright © 2019. All rights reserved.