Class JpaAuthenticationSessionEntity
java.lang.Object
org.keycloak.models.map.common.UpdatableEntity.Impl
org.keycloak.models.map.storage.jpa.authSession.entity.JpaAuthenticationSessionEntity
- All Implemented Interfaces:
Serializable
,MapAuthenticationSessionEntity
,AbstractEntity
,UpdatableEntity
,JpaChildEntity<JpaRootAuthenticationSessionEntity>
,JpaRootEntity
,JpaRootVersionedEntity
@Entity
public class JpaAuthenticationSessionEntity
extends UpdatableEntity.Impl
implements MapAuthenticationSessionEntity, JpaRootVersionedEntity, JpaChildEntity<JpaRootAuthenticationSessionEntity>
Entity represents individual authentication session.
- See Also:
-
Nested Class Summary
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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequiredAction
(String requiredAction) boolean
getId()
Parent entity that should get its optimistic locking version updated upon changes in the childgetTabId()
Returns a point in time (timestamp in milliseconds since The Epoch) when the authentication session entity was created.int
Version of the JPA entity used for optimistic lockingint
hashCode()
boolean
void
removeAuthNote
(String name) void
removeClientNote
(String name) void
removeRequiredAction
(String action) void
void
setAuthNote
(String name, String value) void
setAuthNotes
(Map<String, String> authNotes) void
setAuthUserId
(String authUserId) void
setClientNote
(String name, String value) void
setClientNotes
(Map<String, String> clientNotes) void
setClientScopes
(Set<String> clientScopes) void
setClientUUID
(String clientUUID) void
setEntityVersion
(Integer version) void
setExecutionStatus
(String authenticator, CommonClientSessionModel.ExecutionStatus status) void
setExecutionStatuses
(Map<String, CommonClientSessionModel.ExecutionStatus> executionStatus) void
void
void
setProtocol
(String protocol) void
setRedirectUri
(String redirectUri) void
setRequiredActions
(Set<String> requiredActions) void
void
setTimestamp
(Long timestamp) Sets a point in the (timestamp in milliseconds since The Epoch) when the authentication session entity was created.void
setUserSessionNote
(String name, String value) void
setUserSessionNotes
(Map<String, String> userSessionNotes) 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
-
Field Details
-
TABLE_NAME
- See Also:
-
-
Constructor Details
-
JpaAuthenticationSessionEntity
public JpaAuthenticationSessionEntity()No-argument constructor, used by hibernate to instantiate entities. -
JpaAuthenticationSessionEntity
-
-
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<JpaRootAuthenticationSessionEntity>
-
setParent
-
getId
- Specified by:
getId
in interfaceAbstractEntity
-
setId
- Specified by:
setId
in interfaceAbstractEntity
-
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:
version
- 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
-
getTabId
- Specified by:
getTabId
in interfaceMapAuthenticationSessionEntity
-
setTabId
- Specified by:
setTabId
in interfaceMapAuthenticationSessionEntity
-
getUserSessionNotes
- Specified by:
getUserSessionNotes
in interfaceMapAuthenticationSessionEntity
-
setUserSessionNotes
- Specified by:
setUserSessionNotes
in interfaceMapAuthenticationSessionEntity
-
setUserSessionNote
- Specified by:
setUserSessionNote
in interfaceMapAuthenticationSessionEntity
-
getClientUUID
- Specified by:
getClientUUID
in interfaceMapAuthenticationSessionEntity
-
setClientUUID
- Specified by:
setClientUUID
in interfaceMapAuthenticationSessionEntity
-
getAuthUserId
- Specified by:
getAuthUserId
in interfaceMapAuthenticationSessionEntity
-
setAuthUserId
- Specified by:
setAuthUserId
in interfaceMapAuthenticationSessionEntity
-
getTimestamp
Description copied from interface:MapAuthenticationSessionEntity
Returns a point in time (timestamp in milliseconds since The Epoch) when the authentication session entity was created.- Specified by:
getTimestamp
in interfaceMapAuthenticationSessionEntity
- Returns:
- a timestamp in milliseconds since The Epoch or
null
when the time is unknown
-
setTimestamp
Description copied from interface:MapAuthenticationSessionEntity
Sets a point in the (timestamp in milliseconds since The Epoch) when the authentication session entity was created.- Specified by:
setTimestamp
in interfaceMapAuthenticationSessionEntity
- Parameters:
timestamp
- a timestamp in milliseconds since The Epoch ornull
when the time is unknown
-
getRedirectUri
- Specified by:
getRedirectUri
in interfaceMapAuthenticationSessionEntity
-
setRedirectUri
- Specified by:
setRedirectUri
in interfaceMapAuthenticationSessionEntity
-
getAction
- Specified by:
getAction
in interfaceMapAuthenticationSessionEntity
-
setAction
- Specified by:
setAction
in interfaceMapAuthenticationSessionEntity
-
getClientScopes
- Specified by:
getClientScopes
in interfaceMapAuthenticationSessionEntity
-
setClientScopes
- Specified by:
setClientScopes
in interfaceMapAuthenticationSessionEntity
-
getRequiredActions
- Specified by:
getRequiredActions
in interfaceMapAuthenticationSessionEntity
-
setRequiredActions
- Specified by:
setRequiredActions
in interfaceMapAuthenticationSessionEntity
-
addRequiredAction
- Specified by:
addRequiredAction
in interfaceMapAuthenticationSessionEntity
-
removeRequiredAction
- Specified by:
removeRequiredAction
in interfaceMapAuthenticationSessionEntity
-
getProtocol
- Specified by:
getProtocol
in interfaceMapAuthenticationSessionEntity
-
setProtocol
- Specified by:
setProtocol
in interfaceMapAuthenticationSessionEntity
-
getClientNotes
- Specified by:
getClientNotes
in interfaceMapAuthenticationSessionEntity
-
setClientNotes
- Specified by:
setClientNotes
in interfaceMapAuthenticationSessionEntity
-
setClientNote
- Specified by:
setClientNote
in interfaceMapAuthenticationSessionEntity
-
removeClientNote
- Specified by:
removeClientNote
in interfaceMapAuthenticationSessionEntity
-
getAuthNotes
- Specified by:
getAuthNotes
in interfaceMapAuthenticationSessionEntity
-
setAuthNotes
- Specified by:
setAuthNotes
in interfaceMapAuthenticationSessionEntity
-
setAuthNote
- Specified by:
setAuthNote
in interfaceMapAuthenticationSessionEntity
-
removeAuthNote
- Specified by:
removeAuthNote
in interfaceMapAuthenticationSessionEntity
-
getExecutionStatuses
- Specified by:
getExecutionStatuses
in interfaceMapAuthenticationSessionEntity
-
setExecutionStatuses
public void setExecutionStatuses(Map<String, CommonClientSessionModel.ExecutionStatus> executionStatus) - Specified by:
setExecutionStatuses
in interfaceMapAuthenticationSessionEntity
-
setExecutionStatus
public void setExecutionStatus(String authenticator, CommonClientSessionModel.ExecutionStatus status) - Specified by:
setExecutionStatus
in interfaceMapAuthenticationSessionEntity
-
hashCode
public int hashCode() -
equals
-