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 Classes Modifier and Type Class Description protected static class
PersistentAuthenticatedClientSessionAdapter.PersistentClientSessionData
-
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 PersistentAuthenticatedClientSessionAdapter(KeycloakSession session, AuthenticatedClientSessionModel clientSession)
PersistentAuthenticatedClientSessionAdapter(KeycloakSession session, PersistentClientSessionModel model, RealmModel realm, ClientModel client, UserSessionModel userSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detachFromUserSession()
Detaches the client session from its user session.boolean
equals(Object o)
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()
PersistentClientSessionModel
getUpdatedModel()
UserSessionModel
getUserSession()
int
hashCode()
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)
void
setUserSession(UserSessionModel userSession)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.AuthenticatedClientSessionModel
getStarted
-
-
-
-
Constructor Detail
-
PersistentAuthenticatedClientSessionAdapter
public PersistentAuthenticatedClientSessionAdapter(KeycloakSession session, AuthenticatedClientSessionModel clientSession)
-
PersistentAuthenticatedClientSessionAdapter
public PersistentAuthenticatedClientSessionAdapter(KeycloakSession session, PersistentClientSessionModel model, RealmModel realm, ClientModel client, UserSessionModel userSession)
-
-
Method Detail
-
getUpdatedModel
public PersistentClientSessionModel getUpdatedModel()
-
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
-
getUserSession
public UserSessionModel 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
public void setUserSession(UserSessionModel userSession)
-
getRedirectUri
public String getRedirectUri()
- Specified by:
getRedirectUri
in interfaceCommonClientSessionModel
-
setRedirectUri
public void setRedirectUri(String uri)
- 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
public String getCurrentRefreshToken()
- Specified by:
getCurrentRefreshToken
in interfaceAuthenticatedClientSessionModel
-
setCurrentRefreshToken
public void setCurrentRefreshToken(String currentRefreshToken)
- 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
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
-
-