Package org.keycloak.models.session
Class PersistentAuthenticatedClientSessionAdapter
java.lang.Object
org.keycloak.models.session.PersistentAuthenticatedClientSessionAdapter
- All Implemented Interfaces:
AuthenticatedClientSessionModel
,CommonClientSessionModel
public class PersistentAuthenticatedClientSessionAdapter
extends Object
implements AuthenticatedClientSessionModel
- Author:
- Marek Posolda
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Nested classes/interfaces inherited from interface org.keycloak.sessions.CommonClientSessionModel
CommonClientSessionModel.Action, CommonClientSessionModel.ExecutionStatus
-
Field Summary
Fields inherited from interface org.keycloak.models.AuthenticatedClientSessionModel
STARTED_AT_NOTE, USER_SESSION_REMEMBER_ME_NOTE, USER_SESSION_STARTED_AT_NOTE
-
Constructor Summary
ConstructorDescriptionPersistentAuthenticatedClientSessionAdapter
(KeycloakSession session, AuthenticatedClientSessionModel clientSession) PersistentAuthenticatedClientSessionAdapter
(KeycloakSession session, PersistentClientSessionModel model, RealmModel realm, ClientModel client, UserSessionModel userSession) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Detaches the client session from its user session.boolean
int
getId()
getNotes()
getRealm()
int
int
hashCode()
void
removeNote
(String name) void
void
setCurrentRefreshToken
(String currentRefreshToken) void
setCurrentRefreshTokenUseCount
(int currentRefreshTokenUseCount) void
void
setProtocol
(String method) void
setRedirectUri
(String uri) void
setTimestamp
(int timestamp) void
setUserSession
(UserSessionModel userSession) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.keycloak.models.AuthenticatedClientSessionModel
getStarted, getUserSessionStarted, isUserSessionRememberMe
-
Constructor Details
-
PersistentAuthenticatedClientSessionAdapter
public PersistentAuthenticatedClientSessionAdapter(KeycloakSession session, AuthenticatedClientSessionModel clientSession) -
PersistentAuthenticatedClientSessionAdapter
public PersistentAuthenticatedClientSessionAdapter(KeycloakSession session, PersistentClientSessionModel model, RealmModel realm, ClientModel client, UserSessionModel userSession)
-
-
Method Details
-
getUpdatedModel
-
getId
- Specified by:
getId
in interfaceAuthenticatedClientSessionModel
-
getRealm
- Specified by:
getRealm
in interfaceCommonClientSessionModel
-
getClient
- Specified by:
getClient
in interfaceCommonClientSessionModel
-
getUserSession
- Specified by:
getUserSession
in interfaceAuthenticatedClientSessionModel
-
detachFromUserSession
public void detachFromUserSession()Description copied from interface:AuthenticatedClientSessionModel
Detaches the client session from its user session.- Specified by:
detachFromUserSession
in interfaceAuthenticatedClientSessionModel
-
setUserSession
-
getRedirectUri
- Specified by:
getRedirectUri
in interfaceCommonClientSessionModel
-
setRedirectUri
- Specified by:
setRedirectUri
in interfaceCommonClientSessionModel
-
getTimestamp
public int getTimestamp()- Specified by:
getTimestamp
in interfaceAuthenticatedClientSessionModel
-
setTimestamp
public void setTimestamp(int timestamp) - Specified by:
setTimestamp
in interfaceAuthenticatedClientSessionModel
-
getCurrentRefreshToken
- Specified by:
getCurrentRefreshToken
in interfaceAuthenticatedClientSessionModel
-
setCurrentRefreshToken
- Specified by:
setCurrentRefreshToken
in interfaceAuthenticatedClientSessionModel
-
getCurrentRefreshTokenUseCount
public int getCurrentRefreshTokenUseCount()- Specified by:
getCurrentRefreshTokenUseCount
in interfaceAuthenticatedClientSessionModel
-
setCurrentRefreshTokenUseCount
public void setCurrentRefreshTokenUseCount(int currentRefreshTokenUseCount) - Specified by:
setCurrentRefreshTokenUseCount
in interfaceAuthenticatedClientSessionModel
-
getAction
- Specified by:
getAction
in interfaceCommonClientSessionModel
-
setAction
- Specified by:
setAction
in interfaceCommonClientSessionModel
-
getProtocol
- Specified by:
getProtocol
in interfaceCommonClientSessionModel
-
setProtocol
- Specified by:
setProtocol
in interfaceCommonClientSessionModel
-
getNote
- Specified by:
getNote
in interfaceAuthenticatedClientSessionModel
-
setNote
- Specified by:
setNote
in interfaceAuthenticatedClientSessionModel
-
removeNote
- Specified by:
removeNote
in interfaceAuthenticatedClientSessionModel
-
getNotes
- Specified by:
getNotes
in interfaceAuthenticatedClientSessionModel
-
equals
-
hashCode
public int hashCode() -
toString
-