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
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from interface org.keycloak.sessions.CommonClientSessionModel
CommonClientSessionModel.Action, CommonClientSessionModel.ExecutionStatus -
Field Summary
Fields inherited from interface org.keycloak.models.AuthenticatedClientSessionModel
REFRESH_TOKEN_LAST_REFRESH_PREFIX, REFRESH_TOKEN_PREFIX, REFRESH_TOKEN_USE_PREFIX, STARTED_AT_NOTE, USER_SESSION_REMEMBER_ME_NOTE, USER_SESSION_STARTED_AT_NOTE -
Constructor Summary
ConstructorsConstructorDescriptionPersistentAuthenticatedClientSessionAdapter(KeycloakSession session, AuthenticatedClientSessionModel clientSession) PersistentAuthenticatedClientSessionAdapter(KeycloakSession session, PersistentClientSessionModel model, RealmModel realm, ClientModel client, UserSessionModel userSession) -
Method Summary
Modifier and TypeMethodDescriptionvoidDetaches the client session from its user session.booleangetId()getNotes()getRealm()intinthashCode()voidremoveNote(String name) voidvoidvoidsetProtocol(String method) voidsetRedirectUri(String uri) voidsetTimestamp(int timestamp) Set the timestamp for the client session.voidsetUserSession(UserSessionModel userSession) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.keycloak.models.AuthenticatedClientSessionModel
getCurrentRefreshToken, getCurrentRefreshTokenUseCount, getRefreshToken, getRefreshTokenLastRefresh, getRefreshTokenUseCount, getStarted, getUserSessionStarted, isUserSessionRememberMe, restartClientSession, setCurrentRefreshToken, setCurrentRefreshTokenUseCount, setRefreshToken, setRefreshTokenLastRefresh, setRefreshTokenUseCount
-
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:
getIdin interfaceAuthenticatedClientSessionModel
-
getRealm
- Specified by:
getRealmin interfaceCommonClientSessionModel
-
getClient
- Specified by:
getClientin interfaceCommonClientSessionModel
-
getUserSession
- Specified by:
getUserSessionin interfaceAuthenticatedClientSessionModel
-
detachFromUserSession
public void detachFromUserSession()Description copied from interface:AuthenticatedClientSessionModelDetaches the client session from its user session.- Specified by:
detachFromUserSessionin interfaceAuthenticatedClientSessionModel
-
setUserSession
-
getRedirectUri
- Specified by:
getRedirectUriin interfaceCommonClientSessionModel
-
setRedirectUri
- Specified by:
setRedirectUriin interfaceCommonClientSessionModel
-
getTimestamp
public int getTimestamp()- Specified by:
getTimestampin interfaceAuthenticatedClientSessionModel
-
setTimestamp
public void setTimestamp(int timestamp) Description copied from interface:AuthenticatedClientSessionModelSet the timestamp for the client session. If the timestamp is smaller or equal than the current timestamp, the operation is ignored.- Specified by:
setTimestampin interfaceAuthenticatedClientSessionModel
-
getAction
- Specified by:
getActionin interfaceCommonClientSessionModel
-
setAction
- Specified by:
setActionin interfaceCommonClientSessionModel
-
getProtocol
- Specified by:
getProtocolin interfaceCommonClientSessionModel
-
setProtocol
- Specified by:
setProtocolin interfaceCommonClientSessionModel
-
getNote
- Specified by:
getNotein interfaceAuthenticatedClientSessionModel
-
setNote
- Specified by:
setNotein interfaceAuthenticatedClientSessionModel
-
removeNote
- Specified by:
removeNotein interfaceAuthenticatedClientSessionModel
-
getNotes
- Specified by:
getNotesin interfaceAuthenticatedClientSessionModel
-
equals
-
hashCode
public int hashCode() -
toString
-