org.keycloak.models.map.userSession

## Class MapAuthenticatedClientSessionAdapter<K>

- java.lang.Object
- - org.keycloak.models.map.userSession.AbstractAuthenticatedClientSessionModel<K>
  - - org.keycloak.models.map.userSession.MapAuthenticatedClientSessionAdapter<K>

- All Implemented Interfaces:
    AuthenticatedClientSessionModel, CommonClientSessionModel

      public abstract class MapAuthenticatedClientSessionAdapter<K>
      extends AbstractAuthenticatedClientSessionModel<K>

  Author:
    Martin Kanis

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.keycloak.models.AuthenticatedClientSessionModel

      `AuthenticatedClientSessionModel.SearchableFields`

    - ### Nested classes/interfaces inherited from interface org.keycloak.sessions.CommonClientSessionModel

      `CommonClientSessionModel.Action, CommonClientSessionModel.ExecutionStatus`

  - ### Field Summary

    - ### Fields inherited from class org.keycloak.models.map.userSession.AbstractAuthenticatedClientSessionModel

      `client, entity, realm, session, userSession`

    - ### Fields inherited from interface org.keycloak.models.AuthenticatedClientSessionModel

      `STARTED_AT_NOTE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MapAuthenticatedClientSessionAdapter(KeycloakSession session, RealmModel realm, ClientModel client, UserSessionModel userSession, MapAuthenticatedClientSessionEntity<K> entity)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getAction()`
    `ClientModel` | `getClient()`
    `String` | `getCurrentRefreshToken()`
    `int` | `getCurrentRefreshTokenUseCount()`
    `String` | `getNote(String name)`
    `Map<String,String>` | `getNotes()`
    `String` | `getProtocol()`
    `RealmModel` | `getRealm()`
    `String` | `getRedirectUri()`
    `int` | `getTimestamp()`
    `UserSessionModel` | `getUserSession()`
    `void` | `removeNote(String name)`
    `void` | `setAction(String action)`
    `void` | `setCurrentRefreshToken(String currentRefreshToken)`
    `void` | `setCurrentRefreshTokenUseCount(int currentRefreshTokenUseCount)`
    `void` | `setNote(String name, String value)`
    `void` | `setProtocol(String method)`
    `void` | `setRedirectUri(String uri)`
    `void` | `setTimestamp(int timestamp)`
    `String` | `toString()`

    - ### Methods inherited from class org.keycloak.models.map.userSession.AbstractAuthenticatedClientSessionModel

      `equals, hashCode`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.keycloak.models.AuthenticatedClientSessionModel

      `detachFromUserSession, getId, getStarted`

- - ### Constructor Detail

    - #### MapAuthenticatedClientSessionAdapter

          public MapAuthenticatedClientSessionAdapter(KeycloakSession session,
                                                      RealmModel realm,
                                                      ClientModel client,
                                                      UserSessionModel userSession,
                                                      MapAuthenticatedClientSessionEntity<K> entity)

  - ### Method Detail

    - #### getTimestamp

          public int getTimestamp()

    - #### setTimestamp

          public void setTimestamp(int timestamp)

    - #### getUserSession

          public UserSessionModel getUserSession()

    - #### getCurrentRefreshToken

          public String getCurrentRefreshToken()

    - #### setCurrentRefreshToken

          public void setCurrentRefreshToken(String currentRefreshToken)

    - #### getCurrentRefreshTokenUseCount

          public int getCurrentRefreshTokenUseCount()

    - #### setCurrentRefreshTokenUseCount

          public void setCurrentRefreshTokenUseCount(int currentRefreshTokenUseCount)

    - #### getNote

          public String getNote(String name)

    - #### setNote

          public void setNote(String name,
                              String value)

    - #### removeNote

          public void removeNote(String name)

    - #### getNotes

          public Map<String,String> getNotes()

    - #### getRedirectUri

          public String getRedirectUri()

    - #### setRedirectUri

          public void setRedirectUri(String uri)

    - #### getRealm

          public RealmModel getRealm()

    - #### getClient

          public ClientModel getClient()

    - #### getAction

          public String getAction()

    - #### setAction

          public void setAction(String action)

    - #### getProtocol

          public String getProtocol()

    - #### setProtocol

          public void setProtocol(String method)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2021 JBoss by Red Hat. All rights reserved.