com.payneteasy.superfly.security.authentication.CheckHOTPToken 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 org.springframework.security.core.Authentication;
import com.payneteasy.superfly.api.SSOUser;
/**
* {@link Authentication} which is a request to check an HOTP.
*
* @author Roman Puchkovskiy
*/
public class CheckHOTPToken extends SSOUserTransportAuthenticationToken {
private static final long serialVersionUID = 2290145086843797962L;
private String hotp;
public CheckHOTPToken(SSOUser ssoUser, String hotp) {
super(ssoUser);
this.hotp = hotp;
}
@Override
public Object getCredentials() {
return hotp;
}
}