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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.models.map.common.UpdatableEntity
UpdatableEntity.Impl
-
-
Field Summary
Fields Modifier and Type Field Description static String
TABLE_NAME
-
Fields inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
updated
-
-
Constructor Summary
Constructors Constructor Description JpaAuthenticationSessionEntity()
No-argument constructor, used by hibernate to instantiate entities.JpaAuthenticationSessionEntity(DeepCloner cloner)
-
Method Summary
-
Methods inherited from class org.keycloak.models.map.common.UpdatableEntity.Impl
clearUpdatedFlag, isUpdated
-
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
-
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JpaAuthenticationSessionEntity
public JpaAuthenticationSessionEntity()
No-argument constructor, used by hibernate to instantiate entities.
-
JpaAuthenticationSessionEntity
public JpaAuthenticationSessionEntity(DeepCloner cloner)
-
-
Method Detail
-
isMetadataInitialized
public boolean isMetadataInitialized()
-
getParent
public JpaRootAuthenticationSessionEntity 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
public void setParent(JpaRootAuthenticationSessionEntity root)
-
getId
public String getId()
- Specified by:
getId
in interfaceAbstractEntity
-
setId
public void setId(String id)
- Specified by:
setId
in interfaceAbstractEntity
-
getEntityVersion
public Integer getEntityVersion()
- Specified by:
getEntityVersion
in interfaceJpaRootEntity
- Returns:
- current supported version of the JPA entity used for schema versioning.
-
setEntityVersion
public void setEntityVersion(Integer version)
- Specified by:
setEntityVersion
in interfaceJpaRootEntity
- Parameters:
version
- sets current supported version to JPA entity.
-
getCurrentSchemaVersion
public Integer 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
public String getTabId()
- Specified by:
getTabId
in interfaceMapAuthenticationSessionEntity
-
setTabId
public void setTabId(String tabId)
- Specified by:
setTabId
in interfaceMapAuthenticationSessionEntity
-
getUserSessionNotes
public Map<String,String> getUserSessionNotes()
- Specified by:
getUserSessionNotes
in interfaceMapAuthenticationSessionEntity
-
setUserSessionNotes
public void setUserSessionNotes(Map<String,String> userSessionNotes)
- Specified by:
setUserSessionNotes
in interfaceMapAuthenticationSessionEntity
-
setUserSessionNote
public void setUserSessionNote(String name, String value)
- Specified by:
setUserSessionNote
in interfaceMapAuthenticationSessionEntity
-
getClientUUID
public String getClientUUID()
- Specified by:
getClientUUID
in interfaceMapAuthenticationSessionEntity
-
setClientUUID
public void setClientUUID(String clientUUID)
- Specified by:
setClientUUID
in interfaceMapAuthenticationSessionEntity
-
getAuthUserId
public String getAuthUserId()
- Specified by:
getAuthUserId
in interfaceMapAuthenticationSessionEntity
-
setAuthUserId
public void setAuthUserId(String authUserId)
- Specified by:
setAuthUserId
in interfaceMapAuthenticationSessionEntity
-
getTimestamp
public Long 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
public void setTimestamp(Long timestamp)
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
public String getRedirectUri()
- Specified by:
getRedirectUri
in interfaceMapAuthenticationSessionEntity
-
setRedirectUri
public void setRedirectUri(String redirectUri)
- Specified by:
setRedirectUri
in interfaceMapAuthenticationSessionEntity
-
getAction
public String getAction()
- Specified by:
getAction
in interfaceMapAuthenticationSessionEntity
-
setAction
public void setAction(String action)
- Specified by:
setAction
in interfaceMapAuthenticationSessionEntity
-
getClientScopes
public Set<String> getClientScopes()
- Specified by:
getClientScopes
in interfaceMapAuthenticationSessionEntity
-
setClientScopes
public void setClientScopes(Set<String> clientScopes)
- Specified by:
setClientScopes
in interfaceMapAuthenticationSessionEntity
-
getRequiredActions
public Set<String> getRequiredActions()
- Specified by:
getRequiredActions
in interfaceMapAuthenticationSessionEntity
-
setRequiredActions
public void setRequiredActions(Set<String> requiredActions)
- Specified by:
setRequiredActions
in interfaceMapAuthenticationSessionEntity
-
addRequiredAction
public void addRequiredAction(String requiredAction)
- Specified by:
addRequiredAction
in interfaceMapAuthenticationSessionEntity
-
removeRequiredAction
public void removeRequiredAction(String action)
- Specified by:
removeRequiredAction
in interfaceMapAuthenticationSessionEntity
-
getProtocol
public String getProtocol()
- Specified by:
getProtocol
in interfaceMapAuthenticationSessionEntity
-
setProtocol
public void setProtocol(String protocol)
- Specified by:
setProtocol
in interfaceMapAuthenticationSessionEntity
-
getClientNotes
public Map<String,String> getClientNotes()
- Specified by:
getClientNotes
in interfaceMapAuthenticationSessionEntity
-
setClientNotes
public void setClientNotes(Map<String,String> clientNotes)
- Specified by:
setClientNotes
in interfaceMapAuthenticationSessionEntity
-
setClientNote
public void setClientNote(String name, String value)
- Specified by:
setClientNote
in interfaceMapAuthenticationSessionEntity
-
removeClientNote
public void removeClientNote(String name)
- Specified by:
removeClientNote
in interfaceMapAuthenticationSessionEntity
-
getAuthNotes
public Map<String,String> getAuthNotes()
- Specified by:
getAuthNotes
in interfaceMapAuthenticationSessionEntity
-
setAuthNotes
public void setAuthNotes(Map<String,String> authNotes)
- Specified by:
setAuthNotes
in interfaceMapAuthenticationSessionEntity
-
setAuthNote
public void setAuthNote(String name, String value)
- Specified by:
setAuthNote
in interfaceMapAuthenticationSessionEntity
-
removeAuthNote
public void removeAuthNote(String name)
- Specified by:
removeAuthNote
in interfaceMapAuthenticationSessionEntity
-
getExecutionStatuses
public Map<String,CommonClientSessionModel.ExecutionStatus> 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
-
-