Class AuthenticatedClientSessionAdapter
- java.lang.Object
-
- org.keycloak.models.sessions.infinispan.AuthenticatedClientSessionAdapter
-
- All Implemented Interfaces:
AuthenticatedClientSessionModel
,CommonClientSessionModel
public class AuthenticatedClientSessionAdapter extends Object implements AuthenticatedClientSessionModel
- Author:
- Marek Posolda
-
-
Nested Class Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description AuthenticatedClientSessionAdapter(KeycloakSession kcSession, InfinispanUserSessionProvider provider, AuthenticatedClientSessionEntity entity, ClientModel client, UserSessionModel userSession, InfinispanChangelogBasedTransaction<UUID,AuthenticatedClientSessionEntity> clientSessionUpdateTx, boolean offline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detachFromUserSession()
Detaches the client session from its user session.String
getAction()
ClientModel
getClient()
String
getCurrentRefreshToken()
int
getCurrentRefreshTokenUseCount()
String
getId()
String
getNote(String name)
Map<String,String>
getNotes()
String
getProtocol()
RealmModel
getRealm()
String
getRedirectUri()
int
getTimestamp()
UserSessionModel
getUserSession()
void
removeNote(String name)
void
setAction(String action)
void
setCurrentRefreshToken(String currentRefreshToken)
void
setCurrentRefreshTokenUseCount(int currentRefreshTokenUseCount)
void
setNote(String name, String value)
void
setProtocol(String method)
void
setRedirectUri(String uri)
void
setTimestamp(int timestamp)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.AuthenticatedClientSessionModel
getStarted
-
-
-
-
Constructor Detail
-
AuthenticatedClientSessionAdapter
public AuthenticatedClientSessionAdapter(KeycloakSession kcSession, InfinispanUserSessionProvider provider, AuthenticatedClientSessionEntity entity, ClientModel client, UserSessionModel userSession, InfinispanChangelogBasedTransaction<UUID,AuthenticatedClientSessionEntity> clientSessionUpdateTx, boolean offline)
-
-
Method Detail
-
detachFromUserSession
public void detachFromUserSession()
Detaches the client session from its user session.This method does not delete the client session from user session records, it only removes the client session. The list of client sessions within user session is updated lazily for performance reasons.
- Specified by:
detachFromUserSession
in interfaceAuthenticatedClientSessionModel
-
getUserSession
public UserSessionModel getUserSession()
- Specified by:
getUserSession
in interfaceAuthenticatedClientSessionModel
-
getRedirectUri
public String getRedirectUri()
- Specified by:
getRedirectUri
in interfaceCommonClientSessionModel
-
setRedirectUri
public void setRedirectUri(String uri)
- Specified by:
setRedirectUri
in interfaceCommonClientSessionModel
-
getId
public String getId()
- Specified by:
getId
in interfaceAuthenticatedClientSessionModel
-
getRealm
public RealmModel getRealm()
- Specified by:
getRealm
in interfaceCommonClientSessionModel
-
getClient
public ClientModel getClient()
- Specified by:
getClient
in interfaceCommonClientSessionModel
-
getTimestamp
public int getTimestamp()
- Specified by:
getTimestamp
in interfaceAuthenticatedClientSessionModel
-
setTimestamp
public void setTimestamp(int timestamp)
- Specified by:
setTimestamp
in interfaceAuthenticatedClientSessionModel
-
getCurrentRefreshTokenUseCount
public int getCurrentRefreshTokenUseCount()
- Specified by:
getCurrentRefreshTokenUseCount
in interfaceAuthenticatedClientSessionModel
-
setCurrentRefreshTokenUseCount
public void setCurrentRefreshTokenUseCount(int currentRefreshTokenUseCount)
- Specified by:
setCurrentRefreshTokenUseCount
in interfaceAuthenticatedClientSessionModel
-
getCurrentRefreshToken
public String getCurrentRefreshToken()
- Specified by:
getCurrentRefreshToken
in interfaceAuthenticatedClientSessionModel
-
setCurrentRefreshToken
public void setCurrentRefreshToken(String currentRefreshToken)
- Specified by:
setCurrentRefreshToken
in interfaceAuthenticatedClientSessionModel
-
getAction
public String getAction()
- Specified by:
getAction
in interfaceCommonClientSessionModel
-
setAction
public void setAction(String action)
- Specified by:
setAction
in interfaceCommonClientSessionModel
-
getProtocol
public String getProtocol()
- Specified by:
getProtocol
in interfaceCommonClientSessionModel
-
setProtocol
public void setProtocol(String method)
- Specified by:
setProtocol
in interfaceCommonClientSessionModel
-
getNote
public String getNote(String name)
- Specified by:
getNote
in interfaceAuthenticatedClientSessionModel
-
setNote
public void setNote(String name, String value)
- Specified by:
setNote
in interfaceAuthenticatedClientSessionModel
-
removeNote
public void removeNote(String name)
- Specified by:
removeNote
in interfaceAuthenticatedClientSessionModel
-
getNotes
public Map<String,String> getNotes()
- Specified by:
getNotes
in interfaceAuthenticatedClientSessionModel
-
-