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

com.payneteasy.superfly.security.authentication.UsernamePasswordAuthRequestInfoAuthenticationToken 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 org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

import com.payneteasy.superfly.api.AuthenticationRequestInfo;

/**
 * Extension of UsernamePasswordAuthenticationToken which also allows to
 * transfer AuthenticationRequestInfo instance.
 * 
 * @author Roman Puchkovskiy
 */
public class UsernamePasswordAuthRequestInfoAuthenticationToken extends
		UsernamePasswordAuthenticationToken {
	private static final long serialVersionUID = 9204822041434318662L;
	
	private AuthenticationRequestInfo authRequestInfo;

	public UsernamePasswordAuthRequestInfoAuthenticationToken(Object principal,
			Object credentials, AuthenticationRequestInfo authRequestInfo) {
		super(principal, credentials);
		this.authRequestInfo = authRequestInfo;
	}
	
	public AuthenticationRequestInfo getAuthRequestInfo() {
		return authRequestInfo;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy