All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.payneteasy.superfly.security.authentication.SSOUserAndSelectedRoleAuthenticationToken Maven / Gradle / Ivy

Go to download

Module for Spring Security which enables application to use Superfly authentication/authorization declaratively through Spring Security

There is a newer version: 1.7-32
Show newest version
package com.payneteasy.superfly.security.authentication;

import com.payneteasy.superfly.api.SSORole;
import com.payneteasy.superfly.api.SSOUser;
import com.payneteasy.superfly.security.SuperflyAuthenticationProvider;

/**
 * Authentication implementation which is used as an authentication request to
 * SuperflyAuthenticationProvider on the final stage of authentication.
 * 
 * @author Roman Puchkovskiy
 * @see SuperflyAuthenticationProvider
 */
public class SSOUserAndSelectedRoleAuthenticationToken extends EmptyAuthenticationToken {
    private static final long serialVersionUID = -3043969728081312772L;

    private SSOUser ssoUser;
    private SSORole ssoRole;

    public SSOUserAndSelectedRoleAuthenticationToken(SSOUser ssoUser,
            SSORole ssoRole) {
        super();
        this.ssoUser = ssoUser;
        this.ssoRole = ssoRole;
    }

    public SSOUser getSsoUser() {
        return ssoUser;
    }

    public SSORole getSsoRole() {
        return ssoRole;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy