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
FieldsFields inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated -
Constructor Summary
ConstructorsConstructorDescriptionNo-argument constructor, used by hibernate to instantiate entities. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequiredAction(String requiredAction) booleangetId()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.intVersion of the JPA entity used for optimistic lockinginthashCode()booleanvoidremoveAuthNote(String name) voidremoveClientNote(String name) voidremoveRequiredAction(String action) voidvoidsetAuthNote(String name, String value) voidsetAuthNotes(Map<String, String> authNotes) voidsetAuthUserId(String authUserId) voidsetClientNote(String name, String value) voidsetClientNotes(Map<String, String> clientNotes) voidsetClientScopes(Set<String> clientScopes) voidsetClientUUID(String clientUUID) voidsetEntityVersion(Integer version) voidsetExecutionStatus(String authenticator, CommonClientSessionModel.ExecutionStatus status) voidsetExecutionStatuses(Map<String, CommonClientSessionModel.ExecutionStatus> executionStatus) voidvoidvoidsetProtocol(String protocol) voidsetRedirectUri(String redirectUri) voidsetRequiredActions(Set<String> requiredActions) voidvoidsetTimestamp(Long timestamp) Sets a point in the (timestamp in milliseconds since The Epoch) when the authentication session entity was created.voidsetUserSessionNote(String name, String value) voidsetUserSessionNotes(Map<String, String> userSessionNotes) Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated, markUpdatedFlagMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.map.storage.jpa.JpaRootEntity
updateEntityVersionMethods 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:JpaChildEntityParent entity that should get its optimistic locking version updated upon changes in the child- Specified by:
getParentin interfaceJpaChildEntity<JpaRootAuthenticationSessionEntity>
-
setParent
-
getId
- Specified by:
getIdin interfaceAbstractEntity
-
setId
- Specified by:
setIdin interfaceAbstractEntity
-
getEntityVersion
- Specified by:
getEntityVersionin interfaceJpaRootEntity- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
- Specified by:
setEntityVersionin interfaceJpaRootEntity- Parameters:
version- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
- Specified by:
getCurrentSchemaVersionin interfaceJpaRootEntity
-
getVersion
public int getVersion()Description copied from interface:JpaRootVersionedEntityVersion of the JPA entity used for optimistic locking- Specified by:
getVersionin interfaceJpaRootVersionedEntity
-
getTabId
- Specified by:
getTabIdin interfaceMapAuthenticationSessionEntity
-
setTabId
- Specified by:
setTabIdin interfaceMapAuthenticationSessionEntity
-
getUserSessionNotes
- Specified by:
getUserSessionNotesin interfaceMapAuthenticationSessionEntity
-
setUserSessionNotes
- Specified by:
setUserSessionNotesin interfaceMapAuthenticationSessionEntity
-
setUserSessionNote
- Specified by:
setUserSessionNotein interfaceMapAuthenticationSessionEntity
-
getClientUUID
- Specified by:
getClientUUIDin interfaceMapAuthenticationSessionEntity
-
setClientUUID
- Specified by:
setClientUUIDin interfaceMapAuthenticationSessionEntity
-
getAuthUserId
- Specified by:
getAuthUserIdin interfaceMapAuthenticationSessionEntity
-
setAuthUserId
- Specified by:
setAuthUserIdin interfaceMapAuthenticationSessionEntity
-
getTimestamp
Description copied from interface:MapAuthenticationSessionEntityReturns a point in time (timestamp in milliseconds since The Epoch) when the authentication session entity was created.- Specified by:
getTimestampin interfaceMapAuthenticationSessionEntity- Returns:
- a timestamp in milliseconds since The Epoch or
nullwhen the time is unknown
-
setTimestamp
Description copied from interface:MapAuthenticationSessionEntitySets a point in the (timestamp in milliseconds since The Epoch) when the authentication session entity was created.- Specified by:
setTimestampin interfaceMapAuthenticationSessionEntity- Parameters:
timestamp- a timestamp in milliseconds since The Epoch ornullwhen the time is unknown
-
getRedirectUri
- Specified by:
getRedirectUriin interfaceMapAuthenticationSessionEntity
-
setRedirectUri
- Specified by:
setRedirectUriin interfaceMapAuthenticationSessionEntity
-
getAction
- Specified by:
getActionin interfaceMapAuthenticationSessionEntity
-
setAction
- Specified by:
setActionin interfaceMapAuthenticationSessionEntity
-
getClientScopes
- Specified by:
getClientScopesin interfaceMapAuthenticationSessionEntity
-
setClientScopes
- Specified by:
setClientScopesin interfaceMapAuthenticationSessionEntity
-
getRequiredActions
- Specified by:
getRequiredActionsin interfaceMapAuthenticationSessionEntity
-
setRequiredActions
- Specified by:
setRequiredActionsin interfaceMapAuthenticationSessionEntity
-
addRequiredAction
- Specified by:
addRequiredActionin interfaceMapAuthenticationSessionEntity
-
removeRequiredAction
- Specified by:
removeRequiredActionin interfaceMapAuthenticationSessionEntity
-
getProtocol
- Specified by:
getProtocolin interfaceMapAuthenticationSessionEntity
-
setProtocol
- Specified by:
setProtocolin interfaceMapAuthenticationSessionEntity
-
getClientNotes
- Specified by:
getClientNotesin interfaceMapAuthenticationSessionEntity
-
setClientNotes
- Specified by:
setClientNotesin interfaceMapAuthenticationSessionEntity
-
setClientNote
- Specified by:
setClientNotein interfaceMapAuthenticationSessionEntity
-
removeClientNote
- Specified by:
removeClientNotein interfaceMapAuthenticationSessionEntity
-
getAuthNotes
- Specified by:
getAuthNotesin interfaceMapAuthenticationSessionEntity
-
setAuthNotes
- Specified by:
setAuthNotesin interfaceMapAuthenticationSessionEntity
-
setAuthNote
- Specified by:
setAuthNotein interfaceMapAuthenticationSessionEntity
-
removeAuthNote
- Specified by:
removeAuthNotein interfaceMapAuthenticationSessionEntity
-
getExecutionStatuses
- Specified by:
getExecutionStatusesin interfaceMapAuthenticationSessionEntity
-
setExecutionStatuses
public void setExecutionStatuses(Map<String, CommonClientSessionModel.ExecutionStatus> executionStatus) - Specified by:
setExecutionStatusesin interfaceMapAuthenticationSessionEntity
-
setExecutionStatus
public void setExecutionStatus(String authenticator, CommonClientSessionModel.ExecutionStatus status) - Specified by:
setExecutionStatusin interfaceMapAuthenticationSessionEntity
-
hashCode
public int hashCode() -
equals
-