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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.userSession.MapAuthenticatedClientSessionEntity
MapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl
-
Field Summary
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated
-
Constructor Summary
ConstructorDescriptionNo-argument constructor, used by hibernate to instantiate entities.JpaClientSessionEntity
(DeepCloner cloner) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.getId()
getNotes()
Parent entity that should get its optimistic locking version updated upon changes in the childReturns a point in time (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).int
Version of the JPA entity used for optimistic lockingint
hashCode()
boolean
removeNote
(String name) void
void
setAuthMethod
(String authMethod) void
setClientId
(String clientId) void
setCurrentRefreshToken
(String currentRefreshToken) void
setCurrentRefreshTokenUseCount
(Integer currentRefreshTokenUseCount) void
setEntityVersion
(Integer entityVersion) void
setExpiration
(Long expiration) Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.void
void
void
void
setOffline
(Boolean offline) void
void
setRealmId
(String realmId) void
setRedirectUri
(String redirectUri) void
setTimestamp
(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.Impl
clearUpdatedFlag, isUpdated, markUpdatedFlag
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntity
updateEntityVersion
Methods inherited from interface org.keycloak.models.map.common.UpdatableEntity
clearUpdatedFlag, isUpdated, markUpdatedFlag
-
Constructor Details
-
JpaClientSessionEntity
public JpaClientSessionEntity()No-argument constructor, used by hibernate to instantiate entities. -
JpaClientSessionEntity
-
-
Method Details
-
isMetadataInitialized
public boolean isMetadataInitialized() -
getParent
Description copied from interface:JpaChildEntity
Parent entity that should get its optimistic locking version updated upon changes in the child- Specified by:
getParent
in interfaceJpaChildEntity<JpaUserSessionEntity>
-
setParent
-
getEntityVersion
- Specified by:
getEntityVersion
in interfaceJpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
- Specified by:
setEntityVersion
in interfaceJpaRootEntity
- Parameters:
entityVersion
- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersion
in interfaceJpaRootEntity
-
getVersion
public int getVersion()Description copied from interface:JpaRootVersionedEntity
Version of the JPA entity used for optimistic locking- Specified by:
getVersion
in interfaceJpaRootVersionedEntity
-
getId
- Specified by:
getId
in interfaceAbstractEntity
- Overrides:
getId
in classMapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
-
setId
- Specified by:
setId
in interfaceAbstractEntity
- Overrides:
setId
in classMapAuthenticatedClientSessionEntity.AbstractAuthenticatedClientSessionEntity
-
getRealmId
- Specified by:
getRealmId
in interfaceMapAuthenticatedClientSessionEntity
-
setRealmId
- Specified by:
setRealmId
in interfaceMapAuthenticatedClientSessionEntity
-
getClientId
- Specified by:
getClientId
in interfaceMapAuthenticatedClientSessionEntity
-
setClientId
- Specified by:
setClientId
in interfaceMapAuthenticatedClientSessionEntity
-
getAuthMethod
- Specified by:
getAuthMethod
in interfaceMapAuthenticatedClientSessionEntity
-
setAuthMethod
- Specified by:
setAuthMethod
in interfaceMapAuthenticatedClientSessionEntity
-
getRedirectUri
- Specified by:
getRedirectUri
in interfaceMapAuthenticatedClientSessionEntity
-
setRedirectUri
- Specified by:
setRedirectUri
in interfaceMapAuthenticatedClientSessionEntity
-
getTimestamp
Description copied from interface:MapAuthenticatedClientSessionEntity
Returns a point in time (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).- Specified by:
getTimestamp
in interfaceMapAuthenticatedClientSessionEntity
- Returns:
- a timestamp in milliseconds since The Epoch or
null
when the time is unknown
-
setTimestamp
Description copied from interface:MapAuthenticatedClientSessionEntity
Sets a point in the (timestamp in milliseconds since The Epoch) when the client session entity was created or updated (refreshed).- Specified by:
setTimestamp
in interfaceMapAuthenticatedClientSessionEntity
- Parameters:
timestamp
- a timestamp in milliseconds since The Epoch ornull
when the time is unknown
-
getExpiration
Description copied from interface:ExpirableEntity
Returns a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
getExpiration
in interfaceExpirableEntity
- Returns:
- a timestamp in milliseconds since The Epoch or
null
if this entity never expires or expiration is not known.
-
setExpiration
Description copied from interface:ExpirableEntity
Sets a point in the time (timestamp in milliseconds since The Epoch) when this entity expires.- Specified by:
setExpiration
in interfaceExpirableEntity
- Parameters:
expiration
- a timestamp in milliseconds since The Epoch ornull
if this entity never expires.
-
getAction
- Specified by:
getAction
in interfaceMapAuthenticatedClientSessionEntity
-
setAction
- Specified by:
setAction
in interfaceMapAuthenticatedClientSessionEntity
-
getCurrentRefreshToken
- Specified by:
getCurrentRefreshToken
in interfaceMapAuthenticatedClientSessionEntity
-
setCurrentRefreshToken
- Specified by:
setCurrentRefreshToken
in interfaceMapAuthenticatedClientSessionEntity
-
getCurrentRefreshTokenUseCount
- Specified by:
getCurrentRefreshTokenUseCount
in interfaceMapAuthenticatedClientSessionEntity
-
setCurrentRefreshTokenUseCount
- Specified by:
setCurrentRefreshTokenUseCount
in interfaceMapAuthenticatedClientSessionEntity
-
isOffline
- Specified by:
isOffline
in interfaceMapAuthenticatedClientSessionEntity
-
setOffline
- Specified by:
setOffline
in interfaceMapAuthenticatedClientSessionEntity
-
getNotes
- Specified by:
getNotes
in interfaceMapAuthenticatedClientSessionEntity
-
setNotes
- Specified by:
setNotes
in interfaceMapAuthenticatedClientSessionEntity
-
getNote
- Specified by:
getNote
in interfaceMapAuthenticatedClientSessionEntity
-
removeNote
- Specified by:
removeNote
in interfaceMapAuthenticatedClientSessionEntity
-
setNote
- Specified by:
setNote
in interfaceMapAuthenticatedClientSessionEntity
-
hashCode
public int hashCode() -
equals
-