com.payneteasy.superfly.security.authentication.SSOUserAndSelectedRoleAuthenticationToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of superfly-spring-security Show documentation
Show all versions of superfly-spring-security Show documentation
Module for Spring Security which enables application to use Superfly authentication/authorization declaratively through Spring Security
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;
}
}