Class JpaClientSessionEntity
- java.lang.Object
- 
- org.keycloak.models.map.common.UpdatableEntity.Impl
- 
- org.keycloak.models.map.userSession.MapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
- 
- org.keycloak.models.map.storage.jpa.userSession.entity.JpaClientSessionEntity
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- AbstractEntity,- ExpirableEntity,- UpdatableEntity,- JpaChildEntity<JpaUserSessionEntity>,- JpaRootEntity,- JpaRootVersionedEntity,- MapAuthenticatedClientSessionEntity
 
 @Entity public class JpaClientSessionEntity extends MapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity implements JpaRootVersionedEntity, JpaChildEntity<JpaUserSessionEntity> Entity represents authenticated client session.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.models.map.userSession.MapAuthenticatedClientSessionEntityMapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
 - 
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntityUpdatableEntity.Impl
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Implupdated
 
- 
 - 
Constructor SummaryConstructors Constructor Description JpaClientSessionEntity()No-argument constructor, used by hibernate to instantiate entities.JpaClientSessionEntity(DeepCloner cloner)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAction()StringgetAuthMethod()StringgetClientId()StringgetCurrentRefreshToken()IntegergetCurrentRefreshTokenUseCount()IntegergetCurrentSchemaVersion()IntegergetEntityVersion()LonggetExpiration()Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.StringgetId()StringgetNote(String name)Map<String,String>getNotes()JpaUserSessionEntitygetParent()Parent entity that should get its optimistic locking version updated upon changes in the childStringgetRealmId()StringgetRedirectUri()LonggetTimestamp()Returns a point in time (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).intgetVersion()Version of the JPA entity used for optimistic lockinginthashCode()booleanisMetadataInitialized()BooleanisOffline()BooleanremoveNote(String name)voidsetAction(String action)voidsetAuthMethod(String authMethod)voidsetClientId(String clientId)voidsetCurrentRefreshToken(String currentRefreshToken)voidsetCurrentRefreshTokenUseCount(Integer currentRefreshTokenUseCount)voidsetEntityVersion(Integer entityVersion)voidsetExpiration(Long expiration)Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.voidsetId(String id)voidsetNote(String name, String value)voidsetNotes(Map<String,String> notes)voidsetOffline(Boolean offline)voidsetParent(JpaUserSessionEntity root)voidsetRealmId(String realmId)voidsetRedirectUri(String redirectUri)voidsetTimestamp(Long timestamp)Sets a point in the (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).- 
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.ImplclearUpdatedFlag, isUpdated
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntityupdateEntityVersion
 - 
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntityclearUpdatedFlag, isUpdated
 
- 
 
- 
- 
- 
Constructor Detail- 
JpaClientSessionEntitypublic JpaClientSessionEntity() No-argument constructor, used by hibernate to instantiate entities.
 - 
JpaClientSessionEntitypublic JpaClientSessionEntity(DeepCloner cloner) 
 
- 
 - 
Method Detail- 
isMetadataInitializedpublic boolean isMetadataInitialized() 
 - 
getParentpublic JpaUserSessionEntity getParent() Description copied from interface:JpaChildEntityParent entity that should get its optimistic locking version updated upon changes in the child- Specified by:
- getParentin interface- JpaChildEntity<JpaUserSessionEntity>
 
 - 
setParentpublic void setParent(JpaUserSessionEntity root) 
 - 
getEntityVersionpublic Integer getEntityVersion() - Specified by:
- getEntityVersionin interface- JpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
 
 - 
setEntityVersionpublic void setEntityVersion(Integer entityVersion) - Specified by:
- setEntityVersionin interface- JpaRootEntity
- Parameters:
- entityVersion- sets current supported version to JPA entity.
 
 - 
getCurrentSchemaVersionpublic Integer getCurrentSchemaVersion() - Specified by:
- getCurrentSchemaVersionin interface- JpaRootEntity
 
 - 
getVersionpublic int getVersion() Description copied from interface:JpaRootVersionedEntityVersion of the JPA entity used for optimistic locking- Specified by:
- getVersionin interface- JpaRootVersionedEntity
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- AbstractEntity
- Overrides:
- getIdin class- MapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
 
 - 
setIdpublic void setId(String id) - Specified by:
- setIdin interface- AbstractEntity
- Overrides:
- setIdin class- MapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
 
 - 
getRealmIdpublic String getRealmId() - Specified by:
- getRealmIdin interface- MapAuthenticatedClientSessionEntity
 
 - 
setRealmIdpublic void setRealmId(String realmId) - Specified by:
- setRealmIdin interface- MapAuthenticatedClientSessionEntity
 
 - 
getClientIdpublic String getClientId() - Specified by:
- getClientIdin interface- MapAuthenticatedClientSessionEntity
 
 - 
setClientIdpublic void setClientId(String clientId) - Specified by:
- setClientIdin interface- MapAuthenticatedClientSessionEntity
 
 - 
getAuthMethodpublic String getAuthMethod() - Specified by:
- getAuthMethodin interface- MapAuthenticatedClientSessionEntity
 
 - 
setAuthMethodpublic void setAuthMethod(String authMethod) - Specified by:
- setAuthMethodin interface- MapAuthenticatedClientSessionEntity
 
 - 
getRedirectUripublic String getRedirectUri() - Specified by:
- getRedirectUriin interface- MapAuthenticatedClientSessionEntity
 
 - 
setRedirectUripublic void setRedirectUri(String redirectUri) - Specified by:
- setRedirectUriin interface- MapAuthenticatedClientSessionEntity
 
 - 
getTimestamppublic Long getTimestamp() Description copied from interface:MapAuthenticatedClientSessionEntityReturns a point in time (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).- Specified by:
- getTimestampin interface- MapAuthenticatedClientSessionEntity
- Returns:
- a timestamp in milliseconds since The Epoch or nullwhen the time is unknown
 
 - 
setTimestamppublic void setTimestamp(Long timestamp) Description copied from interface:MapAuthenticatedClientSessionEntitySets a point in the (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).- Specified by:
- setTimestampin interface- MapAuthenticatedClientSessionEntity
- Parameters:
- timestamp- a timestamp in milliseconds since The Epoch or- nullwhen the time is unknown
 
 - 
getExpirationpublic Long getExpiration() Description copied from interface:ExpirableEntityReturns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
- getExpirationin interface- ExpirableEntity
- Returns:
- a timestamp in milliseconds since The Epoch or nullif this entity never expires or expiration is not known.
 
 - 
setExpirationpublic void setExpiration(Long expiration) Description copied from interface:ExpirableEntitySets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
- setExpirationin interface- ExpirableEntity
- Parameters:
- expiration- a timestamp in milliseconds since The Epoch or- nullif this entity never expires.
 
 - 
getActionpublic String getAction() - Specified by:
- getActionin interface- MapAuthenticatedClientSessionEntity
 
 - 
setActionpublic void setAction(String action) - Specified by:
- setActionin interface- MapAuthenticatedClientSessionEntity
 
 - 
getCurrentRefreshTokenpublic String getCurrentRefreshToken() - Specified by:
- getCurrentRefreshTokenin interface- MapAuthenticatedClientSessionEntity
 
 - 
setCurrentRefreshTokenpublic void setCurrentRefreshToken(String currentRefreshToken) - Specified by:
- setCurrentRefreshTokenin interface- MapAuthenticatedClientSessionEntity
 
 - 
getCurrentRefreshTokenUseCountpublic Integer getCurrentRefreshTokenUseCount() - Specified by:
- getCurrentRefreshTokenUseCountin interface- MapAuthenticatedClientSessionEntity
 
 - 
setCurrentRefreshTokenUseCountpublic void setCurrentRefreshTokenUseCount(Integer currentRefreshTokenUseCount) - Specified by:
- setCurrentRefreshTokenUseCountin interface- MapAuthenticatedClientSessionEntity
 
 - 
isOfflinepublic Boolean isOffline() - Specified by:
- isOfflinein interface- MapAuthenticatedClientSessionEntity
 
 - 
setOfflinepublic void setOffline(Boolean offline) - Specified by:
- setOfflinein interface- MapAuthenticatedClientSessionEntity
 
 - 
getNotespublic Map<String,String> getNotes() - Specified by:
- getNotesin interface- MapAuthenticatedClientSessionEntity
 
 - 
setNotespublic void setNotes(Map<String,String> notes) - Specified by:
- setNotesin interface- MapAuthenticatedClientSessionEntity
 
 - 
getNotepublic String getNote(String name) - Specified by:
- getNotein interface- MapAuthenticatedClientSessionEntity
 
 - 
removeNotepublic Boolean removeNote(String name) - Specified by:
- removeNotein interface- MapAuthenticatedClientSessionEntity
 
 - 
setNotepublic void setNote(String name, String value) - Specified by:
- setNotein interface- MapAuthenticatedClientSessionEntity
 
 
- 
 
-