Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.keycloak.models.sessions.mem;
 
 

Author(s):
Stian Thorgersen
public class ClientSessionAdapter implements ClientSessionModel {
    private KeycloakSession session;
    private RealmModel realm;
    private ClientSessionEntity entity;
    public ClientSessionAdapter(KeycloakSession sessionMemUserSessionProvider providerRealmModel realmClientSessionEntity entity) {
        this. = session;
        this. = provider;
        this. = realm;
        this. = entity;
    }
    @Override
    public String getId() {
        return .getId();
    }
    @Override
    public ClientModel getClient() {
        return .findClientById(.getClientId());
    }
    @Override
    public String getState() {
        return .getState();
    }
    @Override
    public UserSessionModel getUserSession() {
        return new UserSessionAdapter(.getSession());
    }
    @Override
    public String getRedirectUri() {
        return .getRedirectUri();
    }
    @Override
    public int getTimestamp() {
        return .getTimestamp();
    }
    @Override
    public void setTimestamp(int timestamp) {
        .setTimestamp(timestamp);
    }
    @Override
    public ClientSessionModel.Action getAction() {
        return .getAction();
    }
    @Override
    public void setAction(ClientSessionModel.Action action) {
        .setAction(action);
    }
    @Override
    public Set<StringgetRoles() {
        return .getRoles();
    }
New to GrepCode? Check out our FAQ X