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

com.payneteasy.superfly.security.authentication.SSOUserTransportAuthenticationToken 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.SSOUser;
import com.payneteasy.superfly.security.TwoStepAuthenticationProcessingFilter;

/**
 * Authentication implementation which is actually used to transport SSOUser
 * only.
 * This is used to store SSOUser temporarily in a SecurityContext between
 * steps of two-step authentication process.
 * 
 * @author Roman Puchkovskiy
 * @see TwoStepAuthenticationProcessingFilter
 */
public class SSOUserTransportAuthenticationToken extends EmptyAuthenticationToken {
	private static final long serialVersionUID = -5726837452086192434L;

	public static final String SESSION_KEY = "superfly-sso-user-transport-token";
	
	private SSOUser ssoUser;

	public SSOUserTransportAuthenticationToken(SSOUser ssoUser) {
		this.ssoUser = ssoUser;
	}

	public SSOUser getSsoUser() {
		return ssoUser;
	}

	@Override
	public String getName() {
		return getSsoUser().getName();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy