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

com.payneteasy.superfly.security.authentication.CheckHOTPToken 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.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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy