Codota Logo
UserSessionAdapter.setLastSessionRefresh
Code IndexAdd Codota to your IDE (free)

How to use
setLastSessionRefresh
method
in
org.keycloak.models.sessions.infinispan.UserSessionAdapter

Best Java code snippets using org.keycloak.models.sessions.infinispan.UserSessionAdapter.setLastSessionRefresh (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.keycloak/keycloak-model-sessions-infinispan

@Override
public UserSessionModel createOfflineUserSession(UserSessionModel userSession) {
  UserSessionAdapter offlineUserSession = importUserSession(userSession, true);
  // started and lastSessionRefresh set to current time
  int currentTime = Time.currentTime();
  offlineUserSession.getEntity().setStarted(currentTime);
  offlineUserSession.setLastSessionRefresh(currentTime);
  return offlineUserSession;
}
origin: org.keycloak/keycloak-model-infinispan

@Override
public UserSessionModel createOfflineUserSession(UserSessionModel userSession) {
  UserSessionAdapter offlineUserSession = importUserSession(userSession, true);
  // started and lastSessionRefresh set to current time
  int currentTime = Time.currentTime();
  offlineUserSession.getEntity().setStarted(currentTime);
  offlineUserSession.setLastSessionRefresh(currentTime);
  return offlineUserSession;
}
org.keycloak.models.sessions.infinispanUserSessionAdaptersetLastSessionRefresh

Popular methods of UserSessionAdapter

  • <init>
  • getEntity
  • getId
  • update
  • getRealm
  • getUser
  • removeAuthenticatedClientSessions
  • removeNote

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now