/*
 * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
 *
 * Copyright (c) 2014, Gluu
 */

package org.gluu.oxauth.security;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

import org.gluu.oxauth.model.common.SessionId;
import org.gluu.oxauth.model.session.SessionClient;
import org.gluu.oxauth.model.common.User;

/**
 * @version August 9, 2017
 */
@RequestScoped
@Named
public class Identity extends org.gluu.model.security.Identity {

    private static final long serialVersionUID = 2751659008033189259L;

    private SessionId sessionId;

    private User user;
    private SessionClient sessionClient;

    public SessionId getSessionId() {
        return sessionId;
    }

    public void setSessionId(SessionId sessionId) {
        this.sessionId = sessionId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public void setSessionClient(SessionClient sessionClient) {
        this.sessionClient = sessionClient;
    }

	public SessionClient getSessionClient() {
		return sessionClient;
	}

}

@@ -178,24 +178,59 @@
 ecurity;%0D%0A%0D%0A
+import javax.annotation.Priority;%0D%0A
 import javax
@@ -282,20 +282,104 @@
 vax.
-inject.Named
+enterprise.inject.Alternative;%0D%0Aimport javax.inject.Named;%0D%0Aimport javax.interceptor.Interceptor
 ;%0D%0A%0D
@@ -563,16 +563,80 @@
 7%0D%0A */%0D%0A
+@Alternative%0D%0A@Priority(Interceptor.Priority.APPLICATION + 20)%0D%0A
 @Request

Add Alternative and Priority to Identity