Package org.keycloak.models
Interface AuthenticatedClientSessionModel
- All Superinterfaces:
CommonClientSessionModel
- All Known Implementing Classes:
AuthenticatedClientSessionAdapter
,PersistentAuthenticatedClientSessionAdapter
- Author:
- Marek Posolda
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.sessions.CommonClientSessionModel
CommonClientSessionModel.Action, CommonClientSessionModel.ExecutionStatus
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Detaches the client session from its user session.default String
Deprecated.default int
Deprecated.getId()
getNotes()
default String
getRefreshToken
(String reuseId) default int
getRefreshTokenLastRefresh
(String reuseId) default int
getRefreshTokenUseCount
(String reuseId) default int
int
default int
default boolean
void
removeNote
(String name) default void
default void
setCurrentRefreshToken
(String currentRefreshToken) Deprecated.default void
setCurrentRefreshTokenUseCount
(int currentRefreshTokenUseCount) Deprecated.void
default void
setRefreshToken
(String reuseId, String refreshTokenId) default void
setRefreshTokenLastRefresh
(String reuseId, int refreshTokenLastRefresh) default void
setRefreshTokenUseCount
(String reuseId, int refreshTokenUseCount) void
setTimestamp
(int timestamp) Set the timestamp for the client session.Methods inherited from interface org.keycloak.sessions.CommonClientSessionModel
getAction, getClient, getProtocol, getRealm, getRedirectUri, setAction, setProtocol, setRedirectUri
-
Field Details
-
STARTED_AT_NOTE
- See Also:
-
USER_SESSION_STARTED_AT_NOTE
- See Also:
-
USER_SESSION_REMEMBER_ME_NOTE
- See Also:
-
REFRESH_TOKEN_PREFIX
- See Also:
-
REFRESH_TOKEN_USE_PREFIX
- See Also:
-
REFRESH_TOKEN_LAST_REFRESH_PREFIX
- See Also:
-
-
Method Details
-
getId
String getId() -
getStarted
default int getStarted() -
getUserSessionStarted
default int getUserSessionStarted() -
isUserSessionRememberMe
default boolean isUserSessionRememberMe() -
getTimestamp
int getTimestamp() -
setTimestamp
void setTimestamp(int timestamp) Set the timestamp for the client session. If the timestamp is smaller or equal than the current timestamp, the operation is ignored. -
detachFromUserSession
void detachFromUserSession()Detaches the client session from its user session. -
getUserSession
UserSessionModel getUserSession() -
getCurrentRefreshToken
Deprecated. -
setCurrentRefreshToken
Deprecated. -
getCurrentRefreshTokenUseCount
Deprecated. -
setCurrentRefreshTokenUseCount
Deprecated.deprecated usesetRefreshTokenUseCount(String, int)
-
getRefreshToken
-
setRefreshToken
-
getRefreshTokenUseCount
-
setRefreshTokenUseCount
-
getRefreshTokenLastRefresh
-
setRefreshTokenLastRefresh
-
getNote
-
setNote
-
removeNote
-
getNotes
-
restartClientSession
default void restartClientSession()
-
getRefreshToken(String)